[2025-03-06 00:00:05] Production.INFO: next invoice date [2025-03-06 00:00:05] Production.INFO: 2025-04-06 [2025-03-06 00:00:05] Production.INFO: getdaysdiff [2025-03-06 00:00:05] Production.INFO: +31 [2025-03-06 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (154,11,1,31,31,'RMScheduler',2025-03-06 00:00:05,1,0,,,0) [2025-03-06 00:00:06] Production.INFO: next invoice date [2025-03-06 00:00:06] Production.INFO: 2025-04-06 [2025-03-06 00:00:06] Production.INFO: getdaysdiff [2025-03-06 00:00:06] Production.INFO: +31 [2025-03-06 00:00:06] Production.INFO: call prc_setAccountDiscountPlan (207,11,1,31,31,'RMScheduler',2025-03-06 00:00:05,0,0,,,0) [2025-03-06 00:00:06] Production.INFO: next invoice date [2025-03-06 00:00:06] Production.INFO: 2025-04-06 [2025-03-06 00:00:06] Production.INFO: getdaysdiff [2025-03-06 00:00:06] Production.INFO: +31 [2025-03-06 00:00:06] Production.INFO: call prc_setAccountDiscountPlan (207,13,2,31,31,'RMScheduler',2025-03-06 00:00:05,0,0,,,0) [2025-03-06 00:00:06] Production.INFO: next invoice date [2025-03-06 00:00:06] Production.INFO: 2025-04-06 [2025-03-06 00:00:06] Production.INFO: getdaysdiff [2025-03-06 00:00:06] Production.INFO: +31 [2025-03-06 00:00:06] Production.INFO: call prc_setAccountDiscountPlan (206,11,1,31,31,'RMScheduler',2025-03-06 00:00:05,0,0,,,0) [2025-03-06 00:00:06] Production.INFO: next invoice date [2025-03-06 00:00:06] Production.INFO: 2025-04-06 [2025-03-06 00:00:06] Production.INFO: getdaysdiff [2025-03-06 00:00:06] Production.INFO: +31 [2025-03-06 00:00:06] Production.INFO: call prc_setAccountDiscountPlan (206,13,2,31,31,'RMScheduler',2025-03-06 00:00:05,0,0,,,0) [2025-03-06 00:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 21:00:07 [end_date_ymd] => 2025-03-06 00:00:07 [RateCDR] => 1 ) [2025-03-06 00:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-05 21:00:07' and `end` < '2025-03-06 00:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 00:00:19] Production.INFO: count ==695 [2025-03-06 00:00:19] Production.ERROR: pbx CDR StartTime 2025-03-05 21:00:07 - End Time 2025-03-06 00:00:07 [2025-03-06 00:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 00:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616664', 'tblTempUsageDetail_20' ) start [2025-03-06 00:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616664', 'tblTempUsageDetail_20' ) end [2025-03-06 00:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616664', 'tblTempVendorCDR_20' ) start [2025-03-06 00:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616664', 'tblTempVendorCDR_20' ) end [2025-03-06 00:00:20] Production.INFO: ProcessCDR(1,14616664,1,1,2) [2025-03-06 00:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14616664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 00:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14616664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 00:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14616664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 00:00:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14616664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 00:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616664', 'tblTempUsageDetail_20' ) start [2025-03-06 00:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616664', 'tblTempUsageDetail_20' ) end [2025-03-06 00:00:26] Production.ERROR: pbx prc_insertCDR start [2025-03-06 00:00:26] Production.ERROR: pbx prc_insertCDR end [2025-03-06 00:00:27] Production.INFO: ==29352== Releasing lock... [2025-03-06 00:00:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 00:00:27] Production.INFO: 34.5 MB #Memory Used# [2025-03-06 00:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 21:01:05 [end_date_ymd] => 2025-03-06 00:01:05 [RateCDR] => 1 ) [2025-03-06 00:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-05 21:01:05' and `end` < '2025-03-06 00:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 00:01:17] Production.INFO: count ==701 [2025-03-06 00:01:17] Production.ERROR: pbx CDR StartTime 2025-03-05 21:01:05 - End Time 2025-03-06 00:01:05 [2025-03-06 00:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 00:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616669', 'tblTempUsageDetail_20' ) start [2025-03-06 00:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616669', 'tblTempUsageDetail_20' ) end [2025-03-06 00:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616669', 'tblTempVendorCDR_20' ) start [2025-03-06 00:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616669', 'tblTempVendorCDR_20' ) end [2025-03-06 00:01:17] Production.INFO: ProcessCDR(1,14616669,1,1,2) [2025-03-06 00:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14616669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 00:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14616669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 00:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14616669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 00:01:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14616669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 00:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616669', 'tblTempUsageDetail_20' ) start [2025-03-06 00:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616669', 'tblTempUsageDetail_20' ) end [2025-03-06 00:01:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 00:01:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 00:01:21] Production.INFO: ==29441== Releasing lock... [2025-03-06 00:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 00:01:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-06 00:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 21:02:06 [end_date_ymd] => 2025-03-06 00:02:06 [RateCDR] => 1 ) [2025-03-06 00: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-03-05 21:02:06' and `end` < '2025-03-06 00: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-03-06 00:02:30] Production.INFO: count ==202 [2025-03-06 00:02:30] Production.ERROR: pbx CDR StartTime 2025-03-05 21:02:06 - End Time 2025-03-06 00:02:06 [2025-03-06 00:02:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 00:02:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616674', 'tblTempUsageDetail_20' ) start [2025-03-06 00:02:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616674', 'tblTempUsageDetail_20' ) end [2025-03-06 00:02:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616674', 'tblTempVendorCDR_20' ) start [2025-03-06 00:02:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616674', 'tblTempVendorCDR_20' ) end [2025-03-06 00:02:30] Production.INFO: ProcessCDR(1,14616674,1,1,2) [2025-03-06 00:02:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14616674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 00:02:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14616674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 00:02:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14616674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 00:02:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14616674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 00:02:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616674', 'tblTempUsageDetail_20' ) start [2025-03-06 00:02:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616674', 'tblTempUsageDetail_20' ) end [2025-03-06 00:02:33] Production.ERROR: pbx prc_insertCDR start [2025-03-06 00:02:33] Production.ERROR: pbx prc_insertCDR end [2025-03-06 00:02:33] Production.INFO: ==29514== Releasing lock... [2025-03-06 00:02:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 00:02:33] Production.INFO: 30 MB #Memory Used# [2025-03-06 00:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 21:03:05 [end_date_ymd] => 2025-03-06 00:03:05 [RateCDR] => 1 ) [2025-03-06 00:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-05 21:03:05' and `end` < '2025-03-06 00:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 00:03:18] Production.INFO: count ==201 [2025-03-06 00:03:18] Production.ERROR: pbx CDR StartTime 2025-03-05 21:03:05 - End Time 2025-03-06 00:03:05 [2025-03-06 00:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 00:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616679', 'tblTempUsageDetail_20' ) start [2025-03-06 00:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616679', 'tblTempUsageDetail_20' ) end [2025-03-06 00:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616679', 'tblTempVendorCDR_20' ) start [2025-03-06 00:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616679', 'tblTempVendorCDR_20' ) end [2025-03-06 00:03:18] Production.INFO: ProcessCDR(1,14616679,1,1,2) [2025-03-06 00:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14616679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 00:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14616679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 00:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14616679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 00:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14616679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 00:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616679', 'tblTempUsageDetail_20' ) start [2025-03-06 00:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616679', 'tblTempUsageDetail_20' ) end [2025-03-06 00:03:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 00:03:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 00:03:21] Production.INFO: ==29591== Releasing lock... [2025-03-06 00:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 00:03:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-06 00:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 21:04:06 [end_date_ymd] => 2025-03-06 00:04:06 [RateCDR] => 1 ) [2025-03-06 00: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-03-05 21:04:06' and `end` < '2025-03-06 00: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-03-06 00:04:18] Production.INFO: count ==198 [2025-03-06 00:04:18] Production.ERROR: pbx CDR StartTime 2025-03-05 21:04:06 - End Time 2025-03-06 00:04:06 [2025-03-06 00:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 00:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616684', 'tblTempUsageDetail_20' ) start [2025-03-06 00:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616684', 'tblTempUsageDetail_20' ) end [2025-03-06 00:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616684', 'tblTempVendorCDR_20' ) start [2025-03-06 00:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616684', 'tblTempVendorCDR_20' ) end [2025-03-06 00:04:18] Production.INFO: ProcessCDR(1,14616684,1,1,2) [2025-03-06 00:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14616684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 00:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14616684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 00:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14616684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 00:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14616684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 00:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616684', 'tblTempUsageDetail_20' ) start [2025-03-06 00:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616684', 'tblTempUsageDetail_20' ) end [2025-03-06 00:04:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 00:04:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 00:04:21] Production.INFO: ==29664== Releasing lock... [2025-03-06 00:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 00:04:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-06 00:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 21:05:05 [end_date_ymd] => 2025-03-06 00:05:05 [RateCDR] => 1 ) [2025-03-06 00:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-05 21:05:05' and `end` < '2025-03-06 00:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 00:05:17] Production.INFO: count ==204 [2025-03-06 00:05:17] Production.ERROR: pbx CDR StartTime 2025-03-05 21:05:05 - End Time 2025-03-06 00:05:05 [2025-03-06 00:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 00:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616689', 'tblTempUsageDetail_20' ) start [2025-03-06 00:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616689', 'tblTempUsageDetail_20' ) end [2025-03-06 00:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616689', 'tblTempVendorCDR_20' ) start [2025-03-06 00:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616689', 'tblTempVendorCDR_20' ) end [2025-03-06 00:05:17] Production.INFO: ProcessCDR(1,14616689,1,1,2) [2025-03-06 00:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14616689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 00:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14616689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 00:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14616689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 00:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14616689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 00:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616689', 'tblTempUsageDetail_20' ) start [2025-03-06 00:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616689', 'tblTempUsageDetail_20' ) end [2025-03-06 00:05:20] Production.ERROR: pbx prc_insertCDR start [2025-03-06 00:05:20] Production.ERROR: pbx prc_insertCDR end [2025-03-06 00:05:20] Production.INFO: ==29734== Releasing lock... [2025-03-06 00:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 00:05:20] Production.INFO: 30 MB #Memory Used# [2025-03-06 00:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 21:06:05 [end_date_ymd] => 2025-03-06 00:06:05 [RateCDR] => 1 ) [2025-03-06 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-03-05 21:06:05' and `end` < '2025-03-06 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-03-06 00:06:17] Production.INFO: count ==204 [2025-03-06 00:06:18] Production.ERROR: pbx CDR StartTime 2025-03-05 21:06:05 - End Time 2025-03-06 00:06:05 [2025-03-06 00:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 00:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616694', 'tblTempUsageDetail_20' ) start [2025-03-06 00:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616694', 'tblTempUsageDetail_20' ) end [2025-03-06 00:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616694', 'tblTempVendorCDR_20' ) start [2025-03-06 00:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616694', 'tblTempVendorCDR_20' ) end [2025-03-06 00:06:18] Production.INFO: ProcessCDR(1,14616694,1,1,2) [2025-03-06 00:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14616694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 00:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14616694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 00:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14616694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 00:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14616694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 00:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616694', 'tblTempUsageDetail_20' ) start [2025-03-06 00:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616694', 'tblTempUsageDetail_20' ) end [2025-03-06 00:06:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 00:06:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 00:06:21] Production.INFO: ==29809== Releasing lock... [2025-03-06 00:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 00:06:21] Production.INFO: 30 MB #Memory Used# [2025-03-06 00:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 21:07:05 [end_date_ymd] => 2025-03-06 00:07:05 [RateCDR] => 1 ) [2025-03-06 00:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-05 21:07:05' and `end` < '2025-03-06 00:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 00:07:17] Production.INFO: count ==204 [2025-03-06 00:07:17] Production.ERROR: pbx CDR StartTime 2025-03-05 21:07:05 - End Time 2025-03-06 00:07:05 [2025-03-06 00:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 00:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616699', 'tblTempUsageDetail_20' ) start [2025-03-06 00:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616699', 'tblTempUsageDetail_20' ) end [2025-03-06 00:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616699', 'tblTempVendorCDR_20' ) start [2025-03-06 00:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616699', 'tblTempVendorCDR_20' ) end [2025-03-06 00:07:17] Production.INFO: ProcessCDR(1,14616699,1,1,2) [2025-03-06 00:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14616699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 00:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14616699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 00:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14616699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 00:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14616699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 00:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616699', 'tblTempUsageDetail_20' ) start [2025-03-06 00:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616699', 'tblTempUsageDetail_20' ) end [2025-03-06 00:07:20] Production.ERROR: pbx prc_insertCDR start [2025-03-06 00:07:20] Production.ERROR: pbx prc_insertCDR end [2025-03-06 00:07:20] Production.INFO: ==29884== Releasing lock... [2025-03-06 00:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 00:07:20] Production.INFO: 30 MB #Memory Used# [2025-03-06 00:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 21:08:06 [end_date_ymd] => 2025-03-06 00:08:06 [RateCDR] => 1 ) [2025-03-06 00: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-03-05 21:08:06' and `end` < '2025-03-06 00: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-03-06 00:08:18] Production.INFO: count ==204 [2025-03-06 00:08:18] Production.ERROR: pbx CDR StartTime 2025-03-05 21:08:06 - End Time 2025-03-06 00:08:06 [2025-03-06 00:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 00:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616704', 'tblTempUsageDetail_20' ) start [2025-03-06 00:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616704', 'tblTempUsageDetail_20' ) end [2025-03-06 00:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616704', 'tblTempVendorCDR_20' ) start [2025-03-06 00:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616704', 'tblTempVendorCDR_20' ) end [2025-03-06 00:08:18] Production.INFO: ProcessCDR(1,14616704,1,1,2) [2025-03-06 00:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14616704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 00:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14616704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 00:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14616704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 00:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14616704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 00:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616704', 'tblTempUsageDetail_20' ) start [2025-03-06 00:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616704', 'tblTempUsageDetail_20' ) end [2025-03-06 00:08:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 00:08:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 00:08:21] Production.INFO: ==29957== Releasing lock... [2025-03-06 00:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 00:08:21] Production.INFO: 30 MB #Memory Used# [2025-03-06 00:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 21:09:05 [end_date_ymd] => 2025-03-06 00:09:05 [RateCDR] => 1 ) [2025-03-06 00:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-05 21:09:05' and `end` < '2025-03-06 00:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 00:09:17] Production.INFO: count ==204 [2025-03-06 00:09:17] Production.ERROR: pbx CDR StartTime 2025-03-05 21:09:05 - End Time 2025-03-06 00:09:05 [2025-03-06 00:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 00:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616709', 'tblTempUsageDetail_20' ) start [2025-03-06 00:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616709', 'tblTempUsageDetail_20' ) end [2025-03-06 00:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616709', 'tblTempVendorCDR_20' ) start [2025-03-06 00:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616709', 'tblTempVendorCDR_20' ) end [2025-03-06 00:09:17] Production.INFO: ProcessCDR(1,14616709,1,1,2) [2025-03-06 00:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14616709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 00:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14616709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 00:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14616709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 00:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14616709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 00:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616709', 'tblTempUsageDetail_20' ) start [2025-03-06 00:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616709', 'tblTempUsageDetail_20' ) end [2025-03-06 00:09:20] Production.ERROR: pbx prc_insertCDR start [2025-03-06 00:09:20] Production.ERROR: pbx prc_insertCDR end [2025-03-06 00:09:20] Production.INFO: ==30027== Releasing lock... [2025-03-06 00:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 00:09:20] Production.INFO: 30 MB #Memory Used# [2025-03-06 00:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 21:10:06 [end_date_ymd] => 2025-03-06 00:10:06 [RateCDR] => 1 ) [2025-03-06 00:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-05 21:10:06' and `end` < '2025-03-06 00:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 00:10:18] Production.INFO: count ==212 [2025-03-06 00:10:18] Production.ERROR: pbx CDR StartTime 2025-03-05 21:10:06 - End Time 2025-03-06 00:10:06 [2025-03-06 00:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 00:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616715', 'tblTempUsageDetail_20' ) start [2025-03-06 00:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616715', 'tblTempUsageDetail_20' ) end [2025-03-06 00:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616715', 'tblTempVendorCDR_20' ) start [2025-03-06 00:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616715', 'tblTempVendorCDR_20' ) end [2025-03-06 00:10:18] Production.INFO: ProcessCDR(1,14616715,1,1,2) [2025-03-06 00:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14616715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 00:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14616715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 00:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14616715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 00:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14616715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 00:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616715', 'tblTempUsageDetail_20' ) start [2025-03-06 00:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616715', 'tblTempUsageDetail_20' ) end [2025-03-06 00:10:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 00:10:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 00:10:22] Production.INFO: ==30105== Releasing lock... [2025-03-06 00:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 00:10:22] Production.INFO: 29.75 MB #Memory Used# [2025-03-06 00:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 21:11:05 [end_date_ymd] => 2025-03-06 00:11:05 [RateCDR] => 1 ) [2025-03-06 00:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-05 21:11:05' and `end` < '2025-03-06 00:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 00:11:17] Production.INFO: count ==214 [2025-03-06 00:11:17] Production.ERROR: pbx CDR StartTime 2025-03-05 21:11:05 - End Time 2025-03-06 00:11:05 [2025-03-06 00:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 00:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616720', 'tblTempUsageDetail_20' ) start [2025-03-06 00:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616720', 'tblTempUsageDetail_20' ) end [2025-03-06 00:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616720', 'tblTempVendorCDR_20' ) start [2025-03-06 00:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616720', 'tblTempVendorCDR_20' ) end [2025-03-06 00:11:17] Production.INFO: ProcessCDR(1,14616720,1,1,2) [2025-03-06 00:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14616720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 00:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14616720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 00:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14616720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 00:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14616720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 00:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616720', 'tblTempUsageDetail_20' ) start [2025-03-06 00:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616720', 'tblTempUsageDetail_20' ) end [2025-03-06 00:11:20] Production.ERROR: pbx prc_insertCDR start [2025-03-06 00:11:20] Production.ERROR: pbx prc_insertCDR end [2025-03-06 00:11:20] Production.INFO: ==30183== Releasing lock... [2025-03-06 00:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 00:11:20] Production.INFO: 29.75 MB #Memory Used# [2025-03-06 00:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 21:12:05 [end_date_ymd] => 2025-03-06 00:12:05 [RateCDR] => 1 ) [2025-03-06 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-03-05 21:12:05' and `end` < '2025-03-06 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-03-06 00:12:17] Production.INFO: count ==214 [2025-03-06 00:12:17] Production.ERROR: pbx CDR StartTime 2025-03-05 21:12:05 - End Time 2025-03-06 00:12:05 [2025-03-06 00:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 00:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616725', 'tblTempUsageDetail_20' ) start [2025-03-06 00:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616725', 'tblTempUsageDetail_20' ) end [2025-03-06 00:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616725', 'tblTempVendorCDR_20' ) start [2025-03-06 00:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616725', 'tblTempVendorCDR_20' ) end [2025-03-06 00:12:17] Production.INFO: ProcessCDR(1,14616725,1,1,2) [2025-03-06 00:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14616725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 00:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14616725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 00:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14616725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 00:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14616725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 00:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616725', 'tblTempUsageDetail_20' ) start [2025-03-06 00:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616725', 'tblTempUsageDetail_20' ) end [2025-03-06 00:12:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 00:12:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 00:12:21] Production.INFO: ==30256== Releasing lock... [2025-03-06 00:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 00:12:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-06 00:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 21:13:06 [end_date_ymd] => 2025-03-06 00:13:06 [RateCDR] => 1 ) [2025-03-06 00: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-03-05 21:13:06' and `end` < '2025-03-06 00: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-03-06 00:13:18] Production.INFO: count ==214 [2025-03-06 00:13:18] Production.ERROR: pbx CDR StartTime 2025-03-05 21:13:06 - End Time 2025-03-06 00:13:06 [2025-03-06 00:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 00:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616730', 'tblTempUsageDetail_20' ) start [2025-03-06 00:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616730', 'tblTempUsageDetail_20' ) end [2025-03-06 00:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616730', 'tblTempVendorCDR_20' ) start [2025-03-06 00:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616730', 'tblTempVendorCDR_20' ) end [2025-03-06 00:13:18] Production.INFO: ProcessCDR(1,14616730,1,1,2) [2025-03-06 00:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14616730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 00:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14616730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 00:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14616730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 00:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14616730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 00:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616730', 'tblTempUsageDetail_20' ) start [2025-03-06 00:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616730', 'tblTempUsageDetail_20' ) end [2025-03-06 00:13:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 00:13:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 00:13:22] Production.INFO: ==30328== Releasing lock... [2025-03-06 00:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 00:13:22] Production.INFO: 29.75 MB #Memory Used# [2025-03-06 00:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 21:14:05 [end_date_ymd] => 2025-03-06 00:14:05 [RateCDR] => 1 ) [2025-03-06 00:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-05 21:14:05' and `end` < '2025-03-06 00:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 00:14:18] Production.INFO: count ==214 [2025-03-06 00:14:18] Production.ERROR: pbx CDR StartTime 2025-03-05 21:14:05 - End Time 2025-03-06 00:14:05 [2025-03-06 00:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 00:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616735', 'tblTempUsageDetail_20' ) start [2025-03-06 00:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616735', 'tblTempUsageDetail_20' ) end [2025-03-06 00:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616735', 'tblTempVendorCDR_20' ) start [2025-03-06 00:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616735', 'tblTempVendorCDR_20' ) end [2025-03-06 00:14:18] Production.INFO: ProcessCDR(1,14616735,1,1,2) [2025-03-06 00:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14616735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 00:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14616735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 00:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14616735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 00:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14616735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 00:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616735', 'tblTempUsageDetail_20' ) start [2025-03-06 00:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616735', 'tblTempUsageDetail_20' ) end [2025-03-06 00:14:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 00:14:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 00:14:21] Production.INFO: ==30400== Releasing lock... [2025-03-06 00:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 00:14:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-06 00:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 21:15:05 [end_date_ymd] => 2025-03-06 00:15:05 [RateCDR] => 1 ) [2025-03-06 00:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-05 21:15:05' and `end` < '2025-03-06 00:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 00:15:17] Production.INFO: count ==216 [2025-03-06 00:15:17] Production.ERROR: pbx CDR StartTime 2025-03-05 21:15:05 - End Time 2025-03-06 00:15:05 [2025-03-06 00:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 00:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616740', 'tblTempUsageDetail_20' ) start [2025-03-06 00:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616740', 'tblTempUsageDetail_20' ) end [2025-03-06 00:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616740', 'tblTempVendorCDR_20' ) start [2025-03-06 00:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616740', 'tblTempVendorCDR_20' ) end [2025-03-06 00:15:17] Production.INFO: ProcessCDR(1,14616740,1,1,2) [2025-03-06 00:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14616740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 00:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14616740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 00:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14616740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 00:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14616740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 00:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616740', 'tblTempUsageDetail_20' ) start [2025-03-06 00:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616740', 'tblTempUsageDetail_20' ) end [2025-03-06 00:15:20] Production.ERROR: pbx prc_insertCDR start [2025-03-06 00:15:20] Production.ERROR: pbx prc_insertCDR end [2025-03-06 00:15:20] Production.INFO: ==30477== Releasing lock... [2025-03-06 00:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 00:15:20] Production.INFO: 29.5 MB #Memory Used# [2025-03-06 00:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 21:16:05 [end_date_ymd] => 2025-03-06 00:16:05 [RateCDR] => 1 ) [2025-03-06 00:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-05 21:16:05' and `end` < '2025-03-06 00:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 00:16:17] Production.INFO: count ==216 [2025-03-06 00:16:18] Production.ERROR: pbx CDR StartTime 2025-03-05 21:16:05 - End Time 2025-03-06 00:16:05 [2025-03-06 00:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 00:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616745', 'tblTempUsageDetail_20' ) start [2025-03-06 00:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616745', 'tblTempUsageDetail_20' ) end [2025-03-06 00:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616745', 'tblTempVendorCDR_20' ) start [2025-03-06 00:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616745', 'tblTempVendorCDR_20' ) end [2025-03-06 00:16:18] Production.INFO: ProcessCDR(1,14616745,1,1,2) [2025-03-06 00:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14616745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 00:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14616745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 00:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14616745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 00:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14616745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 00:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616745', 'tblTempUsageDetail_20' ) start [2025-03-06 00:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616745', 'tblTempUsageDetail_20' ) end [2025-03-06 00:16:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 00:16:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 00:16:22] Production.INFO: ==30589== Releasing lock... [2025-03-06 00:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 00:16:22] Production.INFO: 29.5 MB #Memory Used# [2025-03-06 00:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 21:17:05 [end_date_ymd] => 2025-03-06 00:17:05 [RateCDR] => 1 ) [2025-03-06 00:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-05 21:17:05' and `end` < '2025-03-06 00:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 00:17:17] Production.INFO: count ==216 [2025-03-06 00:17:17] Production.ERROR: pbx CDR StartTime 2025-03-05 21:17:05 - End Time 2025-03-06 00:17:05 [2025-03-06 00:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 00:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616750', 'tblTempUsageDetail_20' ) start [2025-03-06 00:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616750', 'tblTempUsageDetail_20' ) end [2025-03-06 00:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616750', 'tblTempVendorCDR_20' ) start [2025-03-06 00:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616750', 'tblTempVendorCDR_20' ) end [2025-03-06 00:17:17] Production.INFO: ProcessCDR(1,14616750,1,1,2) [2025-03-06 00:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14616750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 00:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14616750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 00:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14616750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 00:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14616750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 00:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616750', 'tblTempUsageDetail_20' ) start [2025-03-06 00:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616750', 'tblTempUsageDetail_20' ) end [2025-03-06 00:17:20] Production.ERROR: pbx prc_insertCDR start [2025-03-06 00:17:20] Production.ERROR: pbx prc_insertCDR end [2025-03-06 00:17:20] Production.INFO: ==30667== Releasing lock... [2025-03-06 00:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 00:17:20] Production.INFO: 29.5 MB #Memory Used# [2025-03-06 00:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 21:18:05 [end_date_ymd] => 2025-03-06 00:18:05 [RateCDR] => 1 ) [2025-03-06 00:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-05 21:18:05' and `end` < '2025-03-06 00:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 00:18:17] Production.INFO: count ==216 [2025-03-06 00:18:17] Production.ERROR: pbx CDR StartTime 2025-03-05 21:18:05 - End Time 2025-03-06 00:18:05 [2025-03-06 00:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 00:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616755', 'tblTempUsageDetail_20' ) start [2025-03-06 00:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616755', 'tblTempUsageDetail_20' ) end [2025-03-06 00:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616755', 'tblTempVendorCDR_20' ) start [2025-03-06 00:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616755', 'tblTempVendorCDR_20' ) end [2025-03-06 00:18:17] Production.INFO: ProcessCDR(1,14616755,1,1,2) [2025-03-06 00:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14616755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 00:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14616755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 00:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14616755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 00:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14616755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 00:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616755', 'tblTempUsageDetail_20' ) start [2025-03-06 00:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616755', 'tblTempUsageDetail_20' ) end [2025-03-06 00:18:20] Production.ERROR: pbx prc_insertCDR start [2025-03-06 00:18:20] Production.ERROR: pbx prc_insertCDR end [2025-03-06 00:18:20] Production.INFO: ==30752== Releasing lock... [2025-03-06 00:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 00:18:20] Production.INFO: 29.5 MB #Memory Used# [2025-03-06 00:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 21:19:04 [end_date_ymd] => 2025-03-06 00:19:04 [RateCDR] => 1 ) [2025-03-06 00:19:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-05 21:19:04' and `end` < '2025-03-06 00:19:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 00:19:16] Production.INFO: count ==215 [2025-03-06 00:19:17] Production.ERROR: pbx CDR StartTime 2025-03-05 21:19:04 - End Time 2025-03-06 00:19:04 [2025-03-06 00:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 00:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616760', 'tblTempUsageDetail_20' ) start [2025-03-06 00:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616760', 'tblTempUsageDetail_20' ) end [2025-03-06 00:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616760', 'tblTempVendorCDR_20' ) start [2025-03-06 00:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616760', 'tblTempVendorCDR_20' ) end [2025-03-06 00:19:17] Production.INFO: ProcessCDR(1,14616760,1,1,2) [2025-03-06 00:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14616760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 00:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14616760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 00:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14616760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 00:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14616760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 00:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616760', 'tblTempUsageDetail_20' ) start [2025-03-06 00:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616760', 'tblTempUsageDetail_20' ) end [2025-03-06 00:19:20] Production.ERROR: pbx prc_insertCDR start [2025-03-06 00:19:20] Production.ERROR: pbx prc_insertCDR end [2025-03-06 00:19:20] Production.INFO: ==30825== Releasing lock... [2025-03-06 00:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 00:19:20] Production.INFO: 29.75 MB #Memory Used# [2025-03-06 00:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 21:20:06 [end_date_ymd] => 2025-03-06 00:20:06 [RateCDR] => 1 ) [2025-03-06 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-03-05 21:20:06' and `end` < '2025-03-06 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-03-06 00:20:18] Production.INFO: count ==215 [2025-03-06 00:20:18] Production.ERROR: pbx CDR StartTime 2025-03-05 21:20:06 - End Time 2025-03-06 00:20:06 [2025-03-06 00:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616765', 'tblTempUsageDetail_20' ) start [2025-03-06 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616765', 'tblTempUsageDetail_20' ) end [2025-03-06 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616765', 'tblTempVendorCDR_20' ) start [2025-03-06 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616765', 'tblTempVendorCDR_20' ) end [2025-03-06 00:20:18] Production.INFO: ProcessCDR(1,14616765,1,1,2) [2025-03-06 00:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14616765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 00:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14616765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 00:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14616765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 00:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14616765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 00:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616765', 'tblTempUsageDetail_20' ) start [2025-03-06 00:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616765', 'tblTempUsageDetail_20' ) end [2025-03-06 00:20:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 00:20:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 00:20:22] Production.INFO: ==30918== Releasing lock... [2025-03-06 00:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 00:20:22] Production.INFO: 30 MB #Memory Used# [2025-03-06 00:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 21:21:05 [end_date_ymd] => 2025-03-06 00:21:05 [RateCDR] => 1 ) [2025-03-06 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-03-05 21:21:05' and `end` < '2025-03-06 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-03-06 00:21:17] Production.INFO: count ==253 [2025-03-06 00:21:17] Production.ERROR: pbx CDR StartTime 2025-03-05 21:21:05 - End Time 2025-03-06 00:21:05 [2025-03-06 00:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 00:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616771', 'tblTempUsageDetail_20' ) start [2025-03-06 00:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616771', 'tblTempUsageDetail_20' ) end [2025-03-06 00:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616771', 'tblTempVendorCDR_20' ) start [2025-03-06 00:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616771', 'tblTempVendorCDR_20' ) end [2025-03-06 00:21:17] Production.INFO: ProcessCDR(1,14616771,1,1,2) [2025-03-06 00:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14616771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 00:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14616771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 00:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14616771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 00:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14616771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 00:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616771', 'tblTempUsageDetail_20' ) start [2025-03-06 00:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616771', 'tblTempUsageDetail_20' ) end [2025-03-06 00:21:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 00:21:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 00:21:21] Production.INFO: ==30996== Releasing lock... [2025-03-06 00:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 00:21:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-06 00:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 21:22:05 [end_date_ymd] => 2025-03-06 00:22:05 [RateCDR] => 1 ) [2025-03-06 00:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-05 21:22:05' and `end` < '2025-03-06 00:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 00:22:17] Production.INFO: count ==252 [2025-03-06 00:22:17] Production.ERROR: pbx CDR StartTime 2025-03-05 21:22:05 - End Time 2025-03-06 00:22:05 [2025-03-06 00:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 00:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616776', 'tblTempUsageDetail_20' ) start [2025-03-06 00:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616776', 'tblTempUsageDetail_20' ) end [2025-03-06 00:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616776', 'tblTempVendorCDR_20' ) start [2025-03-06 00:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616776', 'tblTempVendorCDR_20' ) end [2025-03-06 00:22:17] Production.INFO: ProcessCDR(1,14616776,1,1,2) [2025-03-06 00:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14616776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 00:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14616776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 00:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14616776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 00:22:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14616776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 00:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616776', 'tblTempUsageDetail_20' ) start [2025-03-06 00:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616776', 'tblTempUsageDetail_20' ) end [2025-03-06 00:22:20] Production.ERROR: pbx prc_insertCDR start [2025-03-06 00:22:20] Production.ERROR: pbx prc_insertCDR end [2025-03-06 00:22:20] Production.INFO: ==31072== Releasing lock... [2025-03-06 00:22:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 00:22:20] Production.INFO: 30.25 MB #Memory Used# [2025-03-06 00:23:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 21:23:04 [end_date_ymd] => 2025-03-06 00:23:04 [RateCDR] => 1 ) [2025-03-06 00: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-03-05 21:23:04' and `end` < '2025-03-06 00: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-03-06 00:23:16] Production.INFO: count ==252 [2025-03-06 00:23:17] Production.ERROR: pbx CDR StartTime 2025-03-05 21:23:04 - End Time 2025-03-06 00:23:04 [2025-03-06 00:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 00:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616781', 'tblTempUsageDetail_20' ) start [2025-03-06 00:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616781', 'tblTempUsageDetail_20' ) end [2025-03-06 00:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616781', 'tblTempVendorCDR_20' ) start [2025-03-06 00:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616781', 'tblTempVendorCDR_20' ) end [2025-03-06 00:23:17] Production.INFO: ProcessCDR(1,14616781,1,1,2) [2025-03-06 00:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14616781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 00:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14616781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 00:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14616781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 00:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14616781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 00:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616781', 'tblTempUsageDetail_20' ) start [2025-03-06 00:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616781', 'tblTempUsageDetail_20' ) end [2025-03-06 00:23:20] Production.ERROR: pbx prc_insertCDR start [2025-03-06 00:23:20] Production.ERROR: pbx prc_insertCDR end [2025-03-06 00:23:20] Production.INFO: ==31157== Releasing lock... [2025-03-06 00:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 00:23:20] Production.INFO: 30.25 MB #Memory Used# [2025-03-06 00:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 21:24:06 [end_date_ymd] => 2025-03-06 00:24:06 [RateCDR] => 1 ) [2025-03-06 00: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-03-05 21:24:06' and `end` < '2025-03-06 00: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-03-06 00:24:18] Production.INFO: count ==246 [2025-03-06 00:24:18] Production.ERROR: pbx CDR StartTime 2025-03-05 21:24:06 - End Time 2025-03-06 00:24:06 [2025-03-06 00:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616786', 'tblTempUsageDetail_20' ) start [2025-03-06 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616786', 'tblTempUsageDetail_20' ) end [2025-03-06 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616786', 'tblTempVendorCDR_20' ) start [2025-03-06 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616786', 'tblTempVendorCDR_20' ) end [2025-03-06 00:24:18] Production.INFO: ProcessCDR(1,14616786,1,1,2) [2025-03-06 00:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14616786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 00:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14616786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 00:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14616786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 00:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14616786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 00:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616786', 'tblTempUsageDetail_20' ) start [2025-03-06 00:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616786', 'tblTempUsageDetail_20' ) end [2025-03-06 00:24:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 00:24:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 00:24:21] Production.INFO: ==31232== Releasing lock... [2025-03-06 00:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 00:24:21] Production.INFO: 30 MB #Memory Used# [2025-03-06 00:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 21:25:05 [end_date_ymd] => 2025-03-06 00:25:05 [RateCDR] => 1 ) [2025-03-06 00:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-05 21:25:05' and `end` < '2025-03-06 00:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 00:25:17] Production.INFO: count ==243 [2025-03-06 00:25:17] Production.ERROR: pbx CDR StartTime 2025-03-05 21:25:05 - End Time 2025-03-06 00:25:05 [2025-03-06 00:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616791', 'tblTempUsageDetail_20' ) start [2025-03-06 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616791', 'tblTempUsageDetail_20' ) end [2025-03-06 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616791', 'tblTempVendorCDR_20' ) start [2025-03-06 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616791', 'tblTempVendorCDR_20' ) end [2025-03-06 00:25:17] Production.INFO: ProcessCDR(1,14616791,1,1,2) [2025-03-06 00:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14616791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 00:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14616791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 00:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14616791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 00:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14616791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 00:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616791', 'tblTempUsageDetail_20' ) start [2025-03-06 00:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616791', 'tblTempUsageDetail_20' ) end [2025-03-06 00:25:20] Production.ERROR: pbx prc_insertCDR start [2025-03-06 00:25:20] Production.ERROR: pbx prc_insertCDR end [2025-03-06 00:25:20] Production.INFO: ==31306== Releasing lock... [2025-03-06 00:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 00:25:20] Production.INFO: 30 MB #Memory Used# [2025-03-06 00:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 21:26:05 [end_date_ymd] => 2025-03-06 00:26:05 [RateCDR] => 1 ) [2025-03-06 00:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-05 21:26:05' and `end` < '2025-03-06 00:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 00:26:17] Production.INFO: count ==243 [2025-03-06 00:26:17] Production.ERROR: pbx CDR StartTime 2025-03-05 21:26:05 - End Time 2025-03-06 00:26:05 [2025-03-06 00:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 00:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616796', 'tblTempUsageDetail_20' ) start [2025-03-06 00:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616796', 'tblTempUsageDetail_20' ) end [2025-03-06 00:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616796', 'tblTempVendorCDR_20' ) start [2025-03-06 00:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616796', 'tblTempVendorCDR_20' ) end [2025-03-06 00:26:17] Production.INFO: ProcessCDR(1,14616796,1,1,2) [2025-03-06 00:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14616796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 00:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14616796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 00:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14616796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 00:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14616796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 00:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616796', 'tblTempUsageDetail_20' ) start [2025-03-06 00:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616796', 'tblTempUsageDetail_20' ) end [2025-03-06 00:26:20] Production.ERROR: pbx prc_insertCDR start [2025-03-06 00:26:20] Production.ERROR: pbx prc_insertCDR end [2025-03-06 00:26:20] Production.INFO: ==31382== Releasing lock... [2025-03-06 00:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 00:26:20] Production.INFO: 30 MB #Memory Used# [2025-03-06 00:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 21:27:06 [end_date_ymd] => 2025-03-06 00:27:06 [RateCDR] => 1 ) [2025-03-06 00:27:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-05 21:27:06' and `end` < '2025-03-06 00:27:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 00:27:18] Production.INFO: count ==242 [2025-03-06 00:27:18] Production.ERROR: pbx CDR StartTime 2025-03-05 21:27:06 - End Time 2025-03-06 00:27:06 [2025-03-06 00:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616801', 'tblTempUsageDetail_20' ) start [2025-03-06 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616801', 'tblTempUsageDetail_20' ) end [2025-03-06 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616801', 'tblTempVendorCDR_20' ) start [2025-03-06 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616801', 'tblTempVendorCDR_20' ) end [2025-03-06 00:27:18] Production.INFO: ProcessCDR(1,14616801,1,1,2) [2025-03-06 00:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14616801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 00:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14616801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 00:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14616801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 00:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14616801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 00:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616801', 'tblTempUsageDetail_20' ) start [2025-03-06 00:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616801', 'tblTempUsageDetail_20' ) end [2025-03-06 00:27:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 00:27:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 00:27:21] Production.INFO: ==31458== Releasing lock... [2025-03-06 00:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 00:27:21] Production.INFO: 30 MB #Memory Used# [2025-03-06 00:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 21:28:05 [end_date_ymd] => 2025-03-06 00:28:05 [RateCDR] => 1 ) [2025-03-06 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-03-05 21:28:05' and `end` < '2025-03-06 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-03-06 00:28:17] Production.INFO: count ==242 [2025-03-06 00:28:17] Production.ERROR: pbx CDR StartTime 2025-03-05 21:28:05 - End Time 2025-03-06 00:28:05 [2025-03-06 00:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 00:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616806', 'tblTempUsageDetail_20' ) start [2025-03-06 00:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616806', 'tblTempUsageDetail_20' ) end [2025-03-06 00:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616806', 'tblTempVendorCDR_20' ) start [2025-03-06 00:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616806', 'tblTempVendorCDR_20' ) end [2025-03-06 00:28:17] Production.INFO: ProcessCDR(1,14616806,1,1,2) [2025-03-06 00:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14616806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 00:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14616806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 00:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14616806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 00:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14616806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 00:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616806', 'tblTempUsageDetail_20' ) start [2025-03-06 00:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616806', 'tblTempUsageDetail_20' ) end [2025-03-06 00:28:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 00:28:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 00:28:21] Production.INFO: ==31531== Releasing lock... [2025-03-06 00:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 00:28:21] Production.INFO: 30 MB #Memory Used# [2025-03-06 00:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 21:29:06 [end_date_ymd] => 2025-03-06 00:29:06 [RateCDR] => 1 ) [2025-03-06 00:29:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-05 21:29:06' and `end` < '2025-03-06 00:29:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 00:29:18] Production.INFO: count ==241 [2025-03-06 00:29:18] Production.ERROR: pbx CDR StartTime 2025-03-05 21:29:06 - End Time 2025-03-06 00:29:06 [2025-03-06 00:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616811', 'tblTempUsageDetail_20' ) start [2025-03-06 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616811', 'tblTempUsageDetail_20' ) end [2025-03-06 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616811', 'tblTempVendorCDR_20' ) start [2025-03-06 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616811', 'tblTempVendorCDR_20' ) end [2025-03-06 00:29:18] Production.INFO: ProcessCDR(1,14616811,1,1,2) [2025-03-06 00:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14616811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 00:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14616811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 00:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14616811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 00:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14616811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 00:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616811', 'tblTempUsageDetail_20' ) start [2025-03-06 00:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616811', 'tblTempUsageDetail_20' ) end [2025-03-06 00:29:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 00:29:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 00:29:21] Production.INFO: ==31606== Releasing lock... [2025-03-06 00:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 00:29:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-06 00:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 21:30:06 [end_date_ymd] => 2025-03-06 00:30:06 [RateCDR] => 1 ) [2025-03-06 00:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-05 21:30:06' and `end` < '2025-03-06 00:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 00:30:18] Production.INFO: count ==246 [2025-03-06 00:30:18] Production.ERROR: pbx CDR StartTime 2025-03-05 21:30:06 - End Time 2025-03-06 00:30:06 [2025-03-06 00:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 00:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616817', 'tblTempUsageDetail_20' ) start [2025-03-06 00:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616817', 'tblTempUsageDetail_20' ) end [2025-03-06 00:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616817', 'tblTempVendorCDR_20' ) start [2025-03-06 00:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616817', 'tblTempVendorCDR_20' ) end [2025-03-06 00:30:18] Production.INFO: ProcessCDR(1,14616817,1,1,2) [2025-03-06 00:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14616817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 00:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14616817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 00:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14616817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 00:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14616817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 00:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616817', 'tblTempUsageDetail_20' ) start [2025-03-06 00:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616817', 'tblTempUsageDetail_20' ) end [2025-03-06 00:30:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 00:30:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 00:30:21] Production.INFO: ==31683== Releasing lock... [2025-03-06 00:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 00:30:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-06 00:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 21:31:05 [end_date_ymd] => 2025-03-06 00:31:05 [RateCDR] => 1 ) [2025-03-06 00:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-05 21:31:05' and `end` < '2025-03-06 00:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 00:31:17] Production.INFO: count ==256 [2025-03-06 00:31:17] Production.ERROR: pbx CDR StartTime 2025-03-05 21:31:05 - End Time 2025-03-06 00:31:05 [2025-03-06 00:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 00:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616822', 'tblTempUsageDetail_20' ) start [2025-03-06 00:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616822', 'tblTempUsageDetail_20' ) end [2025-03-06 00:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616822', 'tblTempVendorCDR_20' ) start [2025-03-06 00:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616822', 'tblTempVendorCDR_20' ) end [2025-03-06 00:31:17] Production.INFO: ProcessCDR(1,14616822,1,1,2) [2025-03-06 00:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14616822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 00:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14616822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 00:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14616822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 00:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14616822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 00:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616822', 'tblTempUsageDetail_20' ) start [2025-03-06 00:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616822', 'tblTempUsageDetail_20' ) end [2025-03-06 00:31:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 00:31:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 00:31:21] Production.INFO: ==31800== Releasing lock... [2025-03-06 00:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 00:31:21] Production.INFO: 30 MB #Memory Used# [2025-03-06 00:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 21:32:05 [end_date_ymd] => 2025-03-06 00:32:05 [RateCDR] => 1 ) [2025-03-06 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-03-05 21:32:05' and `end` < '2025-03-06 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-03-06 00:32:17] Production.INFO: count ==255 [2025-03-06 00:32:17] Production.ERROR: pbx CDR StartTime 2025-03-05 21:32:05 - End Time 2025-03-06 00:32:05 [2025-03-06 00:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 00:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616827', 'tblTempUsageDetail_20' ) start [2025-03-06 00:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616827', 'tblTempUsageDetail_20' ) end [2025-03-06 00:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616827', 'tblTempVendorCDR_20' ) start [2025-03-06 00:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616827', 'tblTempVendorCDR_20' ) end [2025-03-06 00:32:17] Production.INFO: ProcessCDR(1,14616827,1,1,2) [2025-03-06 00:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14616827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 00:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14616827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 00:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14616827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 00:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14616827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 00:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616827', 'tblTempUsageDetail_20' ) start [2025-03-06 00:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616827', 'tblTempUsageDetail_20' ) end [2025-03-06 00:32:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 00:32:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 00:32:21] Production.INFO: ==31872== Releasing lock... [2025-03-06 00:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 00:32:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-06 00:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 21:33:05 [end_date_ymd] => 2025-03-06 00:33:05 [RateCDR] => 1 ) [2025-03-06 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-03-05 21:33:05' and `end` < '2025-03-06 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-03-06 00:33:17] Production.INFO: count ==258 [2025-03-06 00:33:18] Production.ERROR: pbx CDR StartTime 2025-03-05 21:33:05 - End Time 2025-03-06 00:33:05 [2025-03-06 00:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616832', 'tblTempUsageDetail_20' ) start [2025-03-06 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616832', 'tblTempUsageDetail_20' ) end [2025-03-06 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616832', 'tblTempVendorCDR_20' ) start [2025-03-06 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616832', 'tblTempVendorCDR_20' ) end [2025-03-06 00:33:18] Production.INFO: ProcessCDR(1,14616832,1,1,2) [2025-03-06 00:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14616832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 00:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14616832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 00:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14616832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 00:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14616832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 00:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616832', 'tblTempUsageDetail_20' ) start [2025-03-06 00:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616832', 'tblTempUsageDetail_20' ) end [2025-03-06 00:33:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 00:33:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 00:33:21] Production.INFO: ==31948== Releasing lock... [2025-03-06 00:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 00:33:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-06 00:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 21:34:05 [end_date_ymd] => 2025-03-06 00:34:05 [RateCDR] => 1 ) [2025-03-06 00:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-05 21:34:05' and `end` < '2025-03-06 00:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 00:34:17] Production.INFO: count ==254 [2025-03-06 00:34:17] Production.ERROR: pbx CDR StartTime 2025-03-05 21:34:05 - End Time 2025-03-06 00:34:05 [2025-03-06 00:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 00:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616837', 'tblTempUsageDetail_20' ) start [2025-03-06 00:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616837', 'tblTempUsageDetail_20' ) end [2025-03-06 00:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616837', 'tblTempVendorCDR_20' ) start [2025-03-06 00:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616837', 'tblTempVendorCDR_20' ) end [2025-03-06 00:34:17] Production.INFO: ProcessCDR(1,14616837,1,1,2) [2025-03-06 00:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14616837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 00:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14616837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 00:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14616837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 00:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14616837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 00:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616837', 'tblTempUsageDetail_20' ) start [2025-03-06 00:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616837', 'tblTempUsageDetail_20' ) end [2025-03-06 00:34:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 00:34:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 00:34:21] Production.INFO: ==32025== Releasing lock... [2025-03-06 00:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 00:34:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-06 00:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 21:35:05 [end_date_ymd] => 2025-03-06 00:35:05 [RateCDR] => 1 ) [2025-03-06 00: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-03-05 21:35:05' and `end` < '2025-03-06 00: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-03-06 00:35:17] Production.INFO: count ==251 [2025-03-06 00:35:17] Production.ERROR: pbx CDR StartTime 2025-03-05 21:35:05 - End Time 2025-03-06 00:35:05 [2025-03-06 00:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 00:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616842', 'tblTempUsageDetail_20' ) start [2025-03-06 00:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616842', 'tblTempUsageDetail_20' ) end [2025-03-06 00:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616842', 'tblTempVendorCDR_20' ) start [2025-03-06 00:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616842', 'tblTempVendorCDR_20' ) end [2025-03-06 00:35:17] Production.INFO: ProcessCDR(1,14616842,1,1,2) [2025-03-06 00:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14616842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 00:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14616842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 00:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14616842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 00:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14616842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 00:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616842', 'tblTempUsageDetail_20' ) start [2025-03-06 00:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616842', 'tblTempUsageDetail_20' ) end [2025-03-06 00:35:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 00:35:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 00:35:21] Production.INFO: ==32100== Releasing lock... [2025-03-06 00:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 00:35:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-06 00:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 21:36:05 [end_date_ymd] => 2025-03-06 00:36:05 [RateCDR] => 1 ) [2025-03-06 00:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-05 21:36:05' and `end` < '2025-03-06 00:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 00:36:17] Production.INFO: count ==247 [2025-03-06 00:36:17] Production.ERROR: pbx CDR StartTime 2025-03-05 21:36:05 - End Time 2025-03-06 00:36:05 [2025-03-06 00:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 00:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616847', 'tblTempUsageDetail_20' ) start [2025-03-06 00:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616847', 'tblTempUsageDetail_20' ) end [2025-03-06 00:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616847', 'tblTempVendorCDR_20' ) start [2025-03-06 00:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616847', 'tblTempVendorCDR_20' ) end [2025-03-06 00:36:17] Production.INFO: ProcessCDR(1,14616847,1,1,2) [2025-03-06 00:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14616847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 00:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14616847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 00:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14616847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 00:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14616847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 00:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616847', 'tblTempUsageDetail_20' ) start [2025-03-06 00:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616847', 'tblTempUsageDetail_20' ) end [2025-03-06 00:36:20] Production.ERROR: pbx prc_insertCDR start [2025-03-06 00:36:20] Production.ERROR: pbx prc_insertCDR end [2025-03-06 00:36:20] Production.INFO: ==32175== Releasing lock... [2025-03-06 00:36:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 00:36:20] Production.INFO: 30.5 MB #Memory Used# [2025-03-06 00:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 21:37:05 [end_date_ymd] => 2025-03-06 00:37:05 [RateCDR] => 1 ) [2025-03-06 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-03-05 21:37:05' and `end` < '2025-03-06 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-03-06 00:37:17] Production.INFO: count ==245 [2025-03-06 00:37:17] Production.ERROR: pbx CDR StartTime 2025-03-05 21:37:05 - End Time 2025-03-06 00:37:05 [2025-03-06 00:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 00:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616852', 'tblTempUsageDetail_20' ) start [2025-03-06 00:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616852', 'tblTempUsageDetail_20' ) end [2025-03-06 00:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616852', 'tblTempVendorCDR_20' ) start [2025-03-06 00:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616852', 'tblTempVendorCDR_20' ) end [2025-03-06 00:37:17] Production.INFO: ProcessCDR(1,14616852,1,1,2) [2025-03-06 00:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14616852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 00:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14616852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 00:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14616852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 00:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14616852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 00:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616852', 'tblTempUsageDetail_20' ) start [2025-03-06 00:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616852', 'tblTempUsageDetail_20' ) end [2025-03-06 00:37:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 00:37:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 00:37:21] Production.INFO: ==32249== Releasing lock... [2025-03-06 00:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 00:37:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-06 00:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 21:38:05 [end_date_ymd] => 2025-03-06 00:38:05 [RateCDR] => 1 ) [2025-03-06 00:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-05 21:38:05' and `end` < '2025-03-06 00:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 00:38:17] Production.INFO: count ==243 [2025-03-06 00:38:17] Production.ERROR: pbx CDR StartTime 2025-03-05 21:38:05 - End Time 2025-03-06 00:38:05 [2025-03-06 00:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 00:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616857', 'tblTempUsageDetail_20' ) start [2025-03-06 00:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616857', 'tblTempUsageDetail_20' ) end [2025-03-06 00:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616857', 'tblTempVendorCDR_20' ) start [2025-03-06 00:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616857', 'tblTempVendorCDR_20' ) end [2025-03-06 00:38:17] Production.INFO: ProcessCDR(1,14616857,1,1,2) [2025-03-06 00:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14616857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 00:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14616857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 00:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14616857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 00:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14616857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 00:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616857', 'tblTempUsageDetail_20' ) start [2025-03-06 00:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616857', 'tblTempUsageDetail_20' ) end [2025-03-06 00:38:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 00:38:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 00:38:21] Production.INFO: ==32323== Releasing lock... [2025-03-06 00:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 00:38:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-06 00:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 21:39:05 [end_date_ymd] => 2025-03-06 00:39:05 [RateCDR] => 1 ) [2025-03-06 00:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-05 21:39:05' and `end` < '2025-03-06 00:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 00:39:18] Production.INFO: count ==242 [2025-03-06 00:39:18] Production.ERROR: pbx CDR StartTime 2025-03-05 21:39:05 - End Time 2025-03-06 00:39:05 [2025-03-06 00:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616862', 'tblTempUsageDetail_20' ) start [2025-03-06 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616862', 'tblTempUsageDetail_20' ) end [2025-03-06 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616862', 'tblTempVendorCDR_20' ) start [2025-03-06 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616862', 'tblTempVendorCDR_20' ) end [2025-03-06 00:39:18] Production.INFO: ProcessCDR(1,14616862,1,1,2) [2025-03-06 00:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14616862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 00:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14616862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 00:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14616862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 00:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14616862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 00:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616862', 'tblTempUsageDetail_20' ) start [2025-03-06 00:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616862', 'tblTempUsageDetail_20' ) end [2025-03-06 00:39:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 00:39:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 00:39:21] Production.INFO: ==32398== Releasing lock... [2025-03-06 00:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 00:39:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-06 00:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 21:40:06 [end_date_ymd] => 2025-03-06 00:40:06 [RateCDR] => 1 ) [2025-03-06 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-03-05 21:40:06' and `end` < '2025-03-06 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-03-06 00:40:18] Production.INFO: count ==251 [2025-03-06 00:40:18] Production.ERROR: pbx CDR StartTime 2025-03-05 21:40:06 - End Time 2025-03-06 00:40:06 [2025-03-06 00:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616868', 'tblTempUsageDetail_20' ) start [2025-03-06 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616868', 'tblTempUsageDetail_20' ) end [2025-03-06 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616868', 'tblTempVendorCDR_20' ) start [2025-03-06 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616868', 'tblTempVendorCDR_20' ) end [2025-03-06 00:40:18] Production.INFO: ProcessCDR(1,14616868,1,1,2) [2025-03-06 00:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14616868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 00:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14616868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 00:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14616868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 00:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14616868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 00:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616868', 'tblTempUsageDetail_20' ) start [2025-03-06 00:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616868', 'tblTempUsageDetail_20' ) end [2025-03-06 00:40:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 00:40:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 00:40:21] Production.INFO: ==32476== Releasing lock... [2025-03-06 00:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 00:40:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-06 00:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 21:41:05 [end_date_ymd] => 2025-03-06 00:41:05 [RateCDR] => 1 ) [2025-03-06 00:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-05 21:41:05' and `end` < '2025-03-06 00:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 00:41:17] Production.INFO: count ==273 [2025-03-06 00:41:17] Production.ERROR: pbx CDR StartTime 2025-03-05 21:41:05 - End Time 2025-03-06 00:41:05 [2025-03-06 00:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 00:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616873', 'tblTempUsageDetail_20' ) start [2025-03-06 00:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616873', 'tblTempUsageDetail_20' ) end [2025-03-06 00:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616873', 'tblTempVendorCDR_20' ) start [2025-03-06 00:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616873', 'tblTempVendorCDR_20' ) end [2025-03-06 00:41:17] Production.INFO: ProcessCDR(1,14616873,1,1,2) [2025-03-06 00:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14616873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 00:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14616873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 00:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14616873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 00:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14616873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 00:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616873', 'tblTempUsageDetail_20' ) start [2025-03-06 00:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616873', 'tblTempUsageDetail_20' ) end [2025-03-06 00:41:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 00:41:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 00:41:21] Production.INFO: ==32553== Releasing lock... [2025-03-06 00:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 00:41:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-06 00:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 21:42:05 [end_date_ymd] => 2025-03-06 00:42:05 [RateCDR] => 1 ) [2025-03-06 00:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-05 21:42:05' and `end` < '2025-03-06 00:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 00:42:17] Production.INFO: count ==276 [2025-03-06 00:42:17] Production.ERROR: pbx CDR StartTime 2025-03-05 21:42:05 - End Time 2025-03-06 00:42:05 [2025-03-06 00:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 00:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616878', 'tblTempUsageDetail_20' ) start [2025-03-06 00:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616878', 'tblTempUsageDetail_20' ) end [2025-03-06 00:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616878', 'tblTempVendorCDR_20' ) start [2025-03-06 00:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616878', 'tblTempVendorCDR_20' ) end [2025-03-06 00:42:17] Production.INFO: ProcessCDR(1,14616878,1,1,2) [2025-03-06 00:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14616878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 00:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14616878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 00:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14616878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 00:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14616878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 00:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616878', 'tblTempUsageDetail_20' ) start [2025-03-06 00:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616878', 'tblTempUsageDetail_20' ) end [2025-03-06 00:42:20] Production.ERROR: pbx prc_insertCDR start [2025-03-06 00:42:20] Production.ERROR: pbx prc_insertCDR end [2025-03-06 00:42:20] Production.INFO: ==32635== Releasing lock... [2025-03-06 00:42:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 00:42:20] Production.INFO: 30.75 MB #Memory Used# [2025-03-06 00:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 21:43:05 [end_date_ymd] => 2025-03-06 00:43:05 [RateCDR] => 1 ) [2025-03-06 00:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-05 21:43:05' and `end` < '2025-03-06 00:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 00:43:17] Production.INFO: count ==271 [2025-03-06 00:43:18] Production.ERROR: pbx CDR StartTime 2025-03-05 21:43:05 - End Time 2025-03-06 00:43:05 [2025-03-06 00:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 00:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616883', 'tblTempUsageDetail_20' ) start [2025-03-06 00:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616883', 'tblTempUsageDetail_20' ) end [2025-03-06 00:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616883', 'tblTempVendorCDR_20' ) start [2025-03-06 00:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616883', 'tblTempVendorCDR_20' ) end [2025-03-06 00:43:18] Production.INFO: ProcessCDR(1,14616883,1,1,2) [2025-03-06 00:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14616883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 00:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14616883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 00:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14616883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 00:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14616883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 00:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616883', 'tblTempUsageDetail_20' ) start [2025-03-06 00:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616883', 'tblTempUsageDetail_20' ) end [2025-03-06 00:43:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 00:43:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 00:43:21] Production.INFO: ==32707== Releasing lock... [2025-03-06 00:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 00:43:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-06 00:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 21:44:06 [end_date_ymd] => 2025-03-06 00:44:06 [RateCDR] => 1 ) [2025-03-06 00:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-05 21:44:06' and `end` < '2025-03-06 00:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 00:44:18] Production.INFO: count ==270 [2025-03-06 00:44:18] Production.ERROR: pbx CDR StartTime 2025-03-05 21:44:06 - End Time 2025-03-06 00:44:06 [2025-03-06 00:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616888', 'tblTempUsageDetail_20' ) start [2025-03-06 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616888', 'tblTempUsageDetail_20' ) end [2025-03-06 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616888', 'tblTempVendorCDR_20' ) start [2025-03-06 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616888', 'tblTempVendorCDR_20' ) end [2025-03-06 00:44:18] Production.INFO: ProcessCDR(1,14616888,1,1,2) [2025-03-06 00:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14616888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 00:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14616888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 00:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14616888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 00:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14616888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 00:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616888', 'tblTempUsageDetail_20' ) start [2025-03-06 00:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616888', 'tblTempUsageDetail_20' ) end [2025-03-06 00:44:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 00:44:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 00:44:21] Production.INFO: ==323== Releasing lock... [2025-03-06 00:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 00:44:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-06 00:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 21:45:05 [end_date_ymd] => 2025-03-06 00:45:05 [RateCDR] => 1 ) [2025-03-06 00:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-05 21:45:05' and `end` < '2025-03-06 00:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 00:45:17] Production.INFO: count ==267 [2025-03-06 00:45:17] Production.ERROR: pbx CDR StartTime 2025-03-05 21:45:05 - End Time 2025-03-06 00:45:05 [2025-03-06 00:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 00:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616893', 'tblTempUsageDetail_20' ) start [2025-03-06 00:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616893', 'tblTempUsageDetail_20' ) end [2025-03-06 00:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616893', 'tblTempVendorCDR_20' ) start [2025-03-06 00:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616893', 'tblTempVendorCDR_20' ) end [2025-03-06 00:45:17] Production.INFO: ProcessCDR(1,14616893,1,1,2) [2025-03-06 00:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14616893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 00:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14616893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 00:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14616893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 00:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14616893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 00:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616893', 'tblTempUsageDetail_20' ) start [2025-03-06 00:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616893', 'tblTempUsageDetail_20' ) end [2025-03-06 00:45:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 00:45:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 00:45:21] Production.INFO: ==408== Releasing lock... [2025-03-06 00:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 00:45:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-06 00:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 21:46:06 [end_date_ymd] => 2025-03-06 00:46:06 [RateCDR] => 1 ) [2025-03-06 00: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-03-05 21:46:06' and `end` < '2025-03-06 00: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-03-06 00:46:18] Production.INFO: count ==265 [2025-03-06 00:46:18] Production.ERROR: pbx CDR StartTime 2025-03-05 21:46:06 - End Time 2025-03-06 00:46:06 [2025-03-06 00:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616898', 'tblTempUsageDetail_20' ) start [2025-03-06 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616898', 'tblTempUsageDetail_20' ) end [2025-03-06 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616898', 'tblTempVendorCDR_20' ) start [2025-03-06 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616898', 'tblTempVendorCDR_20' ) end [2025-03-06 00:46:18] Production.INFO: ProcessCDR(1,14616898,1,1,2) [2025-03-06 00:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14616898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 00:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14616898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 00:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14616898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 00:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14616898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 00:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616898', 'tblTempUsageDetail_20' ) start [2025-03-06 00:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616898', 'tblTempUsageDetail_20' ) end [2025-03-06 00:46:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 00:46:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 00:46:21] Production.INFO: ==485== Releasing lock... [2025-03-06 00:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 00:46:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-06 00:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 21:47:05 [end_date_ymd] => 2025-03-06 00:47:05 [RateCDR] => 1 ) [2025-03-06 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-03-05 21:47:05' and `end` < '2025-03-06 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-03-06 00:47:17] Production.INFO: count ==264 [2025-03-06 00:47:17] Production.ERROR: pbx CDR StartTime 2025-03-05 21:47:05 - End Time 2025-03-06 00:47:05 [2025-03-06 00:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 00:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616903', 'tblTempUsageDetail_20' ) start [2025-03-06 00:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616903', 'tblTempUsageDetail_20' ) end [2025-03-06 00:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616903', 'tblTempVendorCDR_20' ) start [2025-03-06 00:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616903', 'tblTempVendorCDR_20' ) end [2025-03-06 00:47:17] Production.INFO: ProcessCDR(1,14616903,1,1,2) [2025-03-06 00:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14616903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 00:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14616903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 00:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14616903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 00:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14616903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 00:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616903', 'tblTempUsageDetail_20' ) start [2025-03-06 00:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616903', 'tblTempUsageDetail_20' ) end [2025-03-06 00:47:20] Production.ERROR: pbx prc_insertCDR start [2025-03-06 00:47:20] Production.ERROR: pbx prc_insertCDR end [2025-03-06 00:47:20] Production.INFO: ==602== Releasing lock... [2025-03-06 00:47:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 00:47:20] Production.INFO: 30.25 MB #Memory Used# [2025-03-06 00:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 21:48:06 [end_date_ymd] => 2025-03-06 00:48:06 [RateCDR] => 1 ) [2025-03-06 00: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-03-05 21:48:06' and `end` < '2025-03-06 00: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-03-06 00:48:18] Production.INFO: count ==264 [2025-03-06 00:48:18] Production.ERROR: pbx CDR StartTime 2025-03-05 21:48:06 - End Time 2025-03-06 00:48:06 [2025-03-06 00:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 00:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616908', 'tblTempUsageDetail_20' ) start [2025-03-06 00:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616908', 'tblTempUsageDetail_20' ) end [2025-03-06 00:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616908', 'tblTempVendorCDR_20' ) start [2025-03-06 00:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616908', 'tblTempVendorCDR_20' ) end [2025-03-06 00:48:18] Production.INFO: ProcessCDR(1,14616908,1,1,2) [2025-03-06 00:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14616908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 00:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14616908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 00:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14616908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 00:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14616908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 00:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616908', 'tblTempUsageDetail_20' ) start [2025-03-06 00:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616908', 'tblTempUsageDetail_20' ) end [2025-03-06 00:48:23] Production.ERROR: pbx prc_insertCDR start [2025-03-06 00:48:23] Production.ERROR: pbx prc_insertCDR end [2025-03-06 00:48:23] Production.INFO: ==705== Releasing lock... [2025-03-06 00:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 00:48:23] Production.INFO: 30.25 MB #Memory Used# [2025-03-06 00:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 21:49:05 [end_date_ymd] => 2025-03-06 00:49:05 [RateCDR] => 1 ) [2025-03-06 00:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-05 21:49:05' and `end` < '2025-03-06 00:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 00:49:17] Production.INFO: count ==264 [2025-03-06 00:49:17] Production.ERROR: pbx CDR StartTime 2025-03-05 21:49:05 - End Time 2025-03-06 00:49:05 [2025-03-06 00:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 00:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616913', 'tblTempUsageDetail_20' ) start [2025-03-06 00:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616913', 'tblTempUsageDetail_20' ) end [2025-03-06 00:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616913', 'tblTempVendorCDR_20' ) start [2025-03-06 00:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616913', 'tblTempVendorCDR_20' ) end [2025-03-06 00:49:17] Production.INFO: ProcessCDR(1,14616913,1,1,2) [2025-03-06 00:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14616913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 00:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14616913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 00:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14616913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 00:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14616913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 00:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616913', 'tblTempUsageDetail_20' ) start [2025-03-06 00:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616913', 'tblTempUsageDetail_20' ) end [2025-03-06 00:49:20] Production.ERROR: pbx prc_insertCDR start [2025-03-06 00:49:20] Production.ERROR: pbx prc_insertCDR end [2025-03-06 00:49:20] Production.INFO: ==784== Releasing lock... [2025-03-06 00:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 00:49:20] Production.INFO: 30.25 MB #Memory Used# [2025-03-06 00:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 21:50:07 [end_date_ymd] => 2025-03-06 00:50:07 [RateCDR] => 1 ) [2025-03-06 00:50: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-03-05 21:50:07' and `end` < '2025-03-06 00:50: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-03-06 00:50:19] Production.INFO: count ==274 [2025-03-06 00:50:19] Production.ERROR: pbx CDR StartTime 2025-03-05 21:50:07 - End Time 2025-03-06 00:50:07 [2025-03-06 00:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 00:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616919', 'tblTempUsageDetail_20' ) start [2025-03-06 00:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616919', 'tblTempUsageDetail_20' ) end [2025-03-06 00:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616919', 'tblTempVendorCDR_20' ) start [2025-03-06 00:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616919', 'tblTempVendorCDR_20' ) end [2025-03-06 00:50:19] Production.INFO: ProcessCDR(1,14616919,1,1,2) [2025-03-06 00:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14616919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 00:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14616919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 00:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14616919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 00:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14616919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 00:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616919', 'tblTempUsageDetail_20' ) start [2025-03-06 00:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616919', 'tblTempUsageDetail_20' ) end [2025-03-06 00:50:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 00:50:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 00:50:22] Production.INFO: ==858== Releasing lock... [2025-03-06 00:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 00:50:22] Production.INFO: 30 MB #Memory Used# [2025-03-06 00:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 21:51:05 [end_date_ymd] => 2025-03-06 00:51:05 [RateCDR] => 1 ) [2025-03-06 00:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-05 21:51:05' and `end` < '2025-03-06 00:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 00:51:17] Production.INFO: count ==274 [2025-03-06 00:51:17] Production.ERROR: pbx CDR StartTime 2025-03-05 21:51:05 - End Time 2025-03-06 00:51:05 [2025-03-06 00:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 00:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616924', 'tblTempUsageDetail_20' ) start [2025-03-06 00:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616924', 'tblTempUsageDetail_20' ) end [2025-03-06 00:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616924', 'tblTempVendorCDR_20' ) start [2025-03-06 00:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616924', 'tblTempVendorCDR_20' ) end [2025-03-06 00:51:17] Production.INFO: ProcessCDR(1,14616924,1,1,2) [2025-03-06 00:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14616924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 00:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14616924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 00:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14616924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 00:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14616924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 00:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616924', 'tblTempUsageDetail_20' ) start [2025-03-06 00:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616924', 'tblTempUsageDetail_20' ) end [2025-03-06 00:51:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 00:51:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 00:51:21] Production.INFO: ==936== Releasing lock... [2025-03-06 00:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 00:51:21] Production.INFO: 30 MB #Memory Used# [2025-03-06 00:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 21:52:06 [end_date_ymd] => 2025-03-06 00:52:06 [RateCDR] => 1 ) [2025-03-06 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-03-05 21:52:06' and `end` < '2025-03-06 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-03-06 00:52:18] Production.INFO: count ==274 [2025-03-06 00:52:18] Production.ERROR: pbx CDR StartTime 2025-03-05 21:52:06 - End Time 2025-03-06 00:52:06 [2025-03-06 00:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616929', 'tblTempUsageDetail_20' ) start [2025-03-06 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616929', 'tblTempUsageDetail_20' ) end [2025-03-06 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616929', 'tblTempVendorCDR_20' ) start [2025-03-06 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616929', 'tblTempVendorCDR_20' ) end [2025-03-06 00:52:18] Production.INFO: ProcessCDR(1,14616929,1,1,2) [2025-03-06 00:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14616929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 00:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14616929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 00:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14616929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 00:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14616929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 00:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616929', 'tblTempUsageDetail_20' ) start [2025-03-06 00:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616929', 'tblTempUsageDetail_20' ) end [2025-03-06 00:52:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 00:52:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 00:52:21] Production.INFO: ==1007== Releasing lock... [2025-03-06 00:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 00:52:21] Production.INFO: 30 MB #Memory Used# [2025-03-06 00:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 21:53:05 [end_date_ymd] => 2025-03-06 00:53:05 [RateCDR] => 1 ) [2025-03-06 00:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-05 21:53:05' and `end` < '2025-03-06 00:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 00:53:17] Production.INFO: count ==274 [2025-03-06 00:53:17] Production.ERROR: pbx CDR StartTime 2025-03-05 21:53:05 - End Time 2025-03-06 00:53:05 [2025-03-06 00:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 00:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616934', 'tblTempUsageDetail_20' ) start [2025-03-06 00:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616934', 'tblTempUsageDetail_20' ) end [2025-03-06 00:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616934', 'tblTempVendorCDR_20' ) start [2025-03-06 00:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616934', 'tblTempVendorCDR_20' ) end [2025-03-06 00:53:17] Production.INFO: ProcessCDR(1,14616934,1,1,2) [2025-03-06 00:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14616934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 00:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14616934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 00:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14616934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 00:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14616934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 00:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616934', 'tblTempUsageDetail_20' ) start [2025-03-06 00:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616934', 'tblTempUsageDetail_20' ) end [2025-03-06 00:53:20] Production.ERROR: pbx prc_insertCDR start [2025-03-06 00:53:20] Production.ERROR: pbx prc_insertCDR end [2025-03-06 00:53:20] Production.INFO: ==1078== Releasing lock... [2025-03-06 00:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 00:53:20] Production.INFO: 30 MB #Memory Used# [2025-03-06 00:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 21:54:05 [end_date_ymd] => 2025-03-06 00:54:05 [RateCDR] => 1 ) [2025-03-06 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-03-05 21:54:05' and `end` < '2025-03-06 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-03-06 00:54:17] Production.INFO: count ==275 [2025-03-06 00:54:17] Production.ERROR: pbx CDR StartTime 2025-03-05 21:54:05 - End Time 2025-03-06 00:54:05 [2025-03-06 00:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 00:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616939', 'tblTempUsageDetail_20' ) start [2025-03-06 00:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616939', 'tblTempUsageDetail_20' ) end [2025-03-06 00:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616939', 'tblTempVendorCDR_20' ) start [2025-03-06 00:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616939', 'tblTempVendorCDR_20' ) end [2025-03-06 00:54:17] Production.INFO: ProcessCDR(1,14616939,1,1,2) [2025-03-06 00:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14616939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 00:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14616939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 00:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14616939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 00:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14616939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 00:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616939', 'tblTempUsageDetail_20' ) start [2025-03-06 00:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616939', 'tblTempUsageDetail_20' ) end [2025-03-06 00:54:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 00:54:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 00:54:22] Production.INFO: ==1153== Releasing lock... [2025-03-06 00:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 00:54:22] Production.INFO: 30.5 MB #Memory Used# [2025-03-06 00:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 21:55:05 [end_date_ymd] => 2025-03-06 00:55:05 [RateCDR] => 1 ) [2025-03-06 00: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-03-05 21:55:05' and `end` < '2025-03-06 00: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-03-06 00:55:17] Production.INFO: count ==275 [2025-03-06 00:55:17] Production.ERROR: pbx CDR StartTime 2025-03-05 21:55:05 - End Time 2025-03-06 00:55:05 [2025-03-06 00:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 00:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616944', 'tblTempUsageDetail_20' ) start [2025-03-06 00:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616944', 'tblTempUsageDetail_20' ) end [2025-03-06 00:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616944', 'tblTempVendorCDR_20' ) start [2025-03-06 00:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616944', 'tblTempVendorCDR_20' ) end [2025-03-06 00:55:17] Production.INFO: ProcessCDR(1,14616944,1,1,2) [2025-03-06 00:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14616944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 00:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14616944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 00:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14616944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 00:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14616944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 00:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616944', 'tblTempUsageDetail_20' ) start [2025-03-06 00:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616944', 'tblTempUsageDetail_20' ) end [2025-03-06 00:55:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 00:55:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 00:55:21] Production.INFO: ==1227== Releasing lock... [2025-03-06 00:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 00:55:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-06 00:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 21:56:06 [end_date_ymd] => 2025-03-06 00:56:06 [RateCDR] => 1 ) [2025-03-06 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-03-05 21:56:06' and `end` < '2025-03-06 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-03-06 00:56:18] Production.INFO: count ==275 [2025-03-06 00:56:18] Production.ERROR: pbx CDR StartTime 2025-03-05 21:56:06 - End Time 2025-03-06 00:56:06 [2025-03-06 00:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616949', 'tblTempUsageDetail_20' ) start [2025-03-06 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616949', 'tblTempUsageDetail_20' ) end [2025-03-06 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616949', 'tblTempVendorCDR_20' ) start [2025-03-06 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616949', 'tblTempVendorCDR_20' ) end [2025-03-06 00:56:18] Production.INFO: ProcessCDR(1,14616949,1,1,2) [2025-03-06 00:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14616949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 00:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14616949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 00:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14616949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 00:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14616949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 00:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616949', 'tblTempUsageDetail_20' ) start [2025-03-06 00:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616949', 'tblTempUsageDetail_20' ) end [2025-03-06 00:56:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 00:56:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 00:56:22] Production.INFO: ==1315== Releasing lock... [2025-03-06 00:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 00:56:22] Production.INFO: 30.5 MB #Memory Used# [2025-03-06 00:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 21:57:05 [end_date_ymd] => 2025-03-06 00:57:05 [RateCDR] => 1 ) [2025-03-06 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-03-05 21:57:05' and `end` < '2025-03-06 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-03-06 00:57:17] Production.INFO: count ==276 [2025-03-06 00:57:17] Production.ERROR: pbx CDR StartTime 2025-03-05 21:57:05 - End Time 2025-03-06 00:57:05 [2025-03-06 00:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 00:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616954', 'tblTempUsageDetail_20' ) start [2025-03-06 00:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616954', 'tblTempUsageDetail_20' ) end [2025-03-06 00:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616954', 'tblTempVendorCDR_20' ) start [2025-03-06 00:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616954', 'tblTempVendorCDR_20' ) end [2025-03-06 00:57:17] Production.INFO: ProcessCDR(1,14616954,1,1,2) [2025-03-06 00:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14616954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 00:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14616954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 00:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14616954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 00:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14616954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 00:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616954', 'tblTempUsageDetail_20' ) start [2025-03-06 00:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616954', 'tblTempUsageDetail_20' ) end [2025-03-06 00:57:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 00:57:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 00:57:22] Production.INFO: ==1385== Releasing lock... [2025-03-06 00:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 00:57:22] Production.INFO: 30.25 MB #Memory Used# [2025-03-06 00:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 21:58:06 [end_date_ymd] => 2025-03-06 00:58:06 [RateCDR] => 1 ) [2025-03-06 00: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-03-05 21:58:06' and `end` < '2025-03-06 00: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-03-06 00:58:18] Production.INFO: count ==276 [2025-03-06 00:58:18] Production.ERROR: pbx CDR StartTime 2025-03-05 21:58:06 - End Time 2025-03-06 00:58:06 [2025-03-06 00:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616959', 'tblTempUsageDetail_20' ) start [2025-03-06 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616959', 'tblTempUsageDetail_20' ) end [2025-03-06 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616959', 'tblTempVendorCDR_20' ) start [2025-03-06 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616959', 'tblTempVendorCDR_20' ) end [2025-03-06 00:58:18] Production.INFO: ProcessCDR(1,14616959,1,1,2) [2025-03-06 00:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14616959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 00:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14616959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 00:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14616959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 00:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14616959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 00:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616959', 'tblTempUsageDetail_20' ) start [2025-03-06 00:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616959', 'tblTempUsageDetail_20' ) end [2025-03-06 00:58:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 00:58:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 00:58:21] Production.INFO: ==1456== Releasing lock... [2025-03-06 00:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 00:58:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-06 00:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 21:59:06 [end_date_ymd] => 2025-03-06 00:59:06 [RateCDR] => 1 ) [2025-03-06 00: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-03-05 21:59:06' and `end` < '2025-03-06 00: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-03-06 00:59:17] Production.INFO: count ==276 [2025-03-06 00:59:18] Production.ERROR: pbx CDR StartTime 2025-03-05 21:59:06 - End Time 2025-03-06 00:59:06 [2025-03-06 00:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616964', 'tblTempUsageDetail_20' ) start [2025-03-06 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616964', 'tblTempUsageDetail_20' ) end [2025-03-06 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616964', 'tblTempVendorCDR_20' ) start [2025-03-06 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616964', 'tblTempVendorCDR_20' ) end [2025-03-06 00:59:18] Production.INFO: ProcessCDR(1,14616964,1,1,2) [2025-03-06 00:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14616964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 00:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14616964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 00:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14616964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 00:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14616964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 00:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616964', 'tblTempUsageDetail_20' ) start [2025-03-06 00:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616964', 'tblTempUsageDetail_20' ) end [2025-03-06 00:59:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 00:59:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 00:59:21] Production.INFO: ==1558== Releasing lock... [2025-03-06 00:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 00:59:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-06 01:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 22:00:06 [end_date_ymd] => 2025-03-06 01:00:06 [RateCDR] => 1 ) [2025-03-06 01:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-05 22:00:06' and `end` < '2025-03-06 01:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 01:00:18] Production.INFO: count ==282 [2025-03-06 01:00:18] Production.ERROR: pbx CDR StartTime 2025-03-05 22:00:06 - End Time 2025-03-06 01:00:06 [2025-03-06 01:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616969', 'tblTempUsageDetail_20' ) start [2025-03-06 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616969', 'tblTempUsageDetail_20' ) end [2025-03-06 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616969', 'tblTempVendorCDR_20' ) start [2025-03-06 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616969', 'tblTempVendorCDR_20' ) end [2025-03-06 01:00:18] Production.INFO: ProcessCDR(1,14616969,1,1,2) [2025-03-06 01:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14616969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 01:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14616969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 01:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14616969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 01:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14616969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 01:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616969', 'tblTempUsageDetail_20' ) start [2025-03-06 01:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616969', 'tblTempUsageDetail_20' ) end [2025-03-06 01:00:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 01:00:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 01:00:22] Production.INFO: ==1637== Releasing lock... [2025-03-06 01:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 01:00:22] Production.INFO: 30.5 MB #Memory Used# [2025-03-06 01:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 22:01:05 [end_date_ymd] => 2025-03-06 01:01:05 [RateCDR] => 1 ) [2025-03-06 01:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-05 22:01:05' and `end` < '2025-03-06 01:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 01:01:17] Production.INFO: count ==282 [2025-03-06 01:01:17] Production.ERROR: pbx CDR StartTime 2025-03-05 22:01:05 - End Time 2025-03-06 01:01:05 [2025-03-06 01:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 01:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616975', 'tblTempUsageDetail_20' ) start [2025-03-06 01:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616975', 'tblTempUsageDetail_20' ) end [2025-03-06 01:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616975', 'tblTempVendorCDR_20' ) start [2025-03-06 01:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616975', 'tblTempVendorCDR_20' ) end [2025-03-06 01:01:17] Production.INFO: ProcessCDR(1,14616975,1,1,2) [2025-03-06 01:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14616975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 01:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14616975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 01:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14616975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 01:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14616975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 01:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616975', 'tblTempUsageDetail_20' ) start [2025-03-06 01:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616975', 'tblTempUsageDetail_20' ) end [2025-03-06 01:01:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 01:01:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 01:01:21] Production.INFO: ==1728== Releasing lock... [2025-03-06 01:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 01:01:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-06 01:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 22:02:06 [end_date_ymd] => 2025-03-06 01:02:06 [RateCDR] => 1 ) [2025-03-06 01: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-03-05 22:02:06' and `end` < '2025-03-06 01: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-03-06 01:02:18] Production.INFO: count ==282 [2025-03-06 01:02:18] Production.ERROR: pbx CDR StartTime 2025-03-05 22:02:06 - End Time 2025-03-06 01:02:06 [2025-03-06 01:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 01:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616980', 'tblTempUsageDetail_20' ) start [2025-03-06 01:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616980', 'tblTempUsageDetail_20' ) end [2025-03-06 01:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616980', 'tblTempVendorCDR_20' ) start [2025-03-06 01:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616980', 'tblTempVendorCDR_20' ) end [2025-03-06 01:02:18] Production.INFO: ProcessCDR(1,14616980,1,1,2) [2025-03-06 01:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14616980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 01:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14616980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 01:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14616980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 01:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14616980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 01:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616980', 'tblTempUsageDetail_20' ) start [2025-03-06 01:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616980', 'tblTempUsageDetail_20' ) end [2025-03-06 01:02:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 01:02:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 01:02:21] Production.INFO: ==1844== Releasing lock... [2025-03-06 01:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 01:02:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-06 01:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 22:03:05 [end_date_ymd] => 2025-03-06 01:03:05 [RateCDR] => 1 ) [2025-03-06 01:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-05 22:03:05' and `end` < '2025-03-06 01:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 01:03:17] Production.INFO: count ==275 [2025-03-06 01:03:17] Production.ERROR: pbx CDR StartTime 2025-03-05 22:03:05 - End Time 2025-03-06 01:03:05 [2025-03-06 01:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 01:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616985', 'tblTempUsageDetail_20' ) start [2025-03-06 01:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616985', 'tblTempUsageDetail_20' ) end [2025-03-06 01:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616985', 'tblTempVendorCDR_20' ) start [2025-03-06 01:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616985', 'tblTempVendorCDR_20' ) end [2025-03-06 01:03:17] Production.INFO: ProcessCDR(1,14616985,1,1,2) [2025-03-06 01:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14616985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 01:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14616985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 01:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14616985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 01:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14616985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 01:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616985', 'tblTempUsageDetail_20' ) start [2025-03-06 01:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616985', 'tblTempUsageDetail_20' ) end [2025-03-06 01:03:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 01:03:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 01:03:21] Production.INFO: ==1916== Releasing lock... [2025-03-06 01:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 01:03:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-06 01:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 22:04:06 [end_date_ymd] => 2025-03-06 01:04:06 [RateCDR] => 1 ) [2025-03-06 01: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-03-05 22:04:06' and `end` < '2025-03-06 01: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-03-06 01:04:18] Production.INFO: count ==270 [2025-03-06 01:04:18] Production.ERROR: pbx CDR StartTime 2025-03-05 22:04:06 - End Time 2025-03-06 01:04:06 [2025-03-06 01:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616990', 'tblTempUsageDetail_20' ) start [2025-03-06 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616990', 'tblTempUsageDetail_20' ) end [2025-03-06 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616990', 'tblTempVendorCDR_20' ) start [2025-03-06 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616990', 'tblTempVendorCDR_20' ) end [2025-03-06 01:04:18] Production.INFO: ProcessCDR(1,14616990,1,1,2) [2025-03-06 01:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14616990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 01:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14616990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 01:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14616990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 01:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14616990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 01:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616990', 'tblTempUsageDetail_20' ) start [2025-03-06 01:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616990', 'tblTempUsageDetail_20' ) end [2025-03-06 01:04:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 01:04:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 01:04:21] Production.INFO: ==1989== Releasing lock... [2025-03-06 01:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 01:04:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-06 01:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 22:05:05 [end_date_ymd] => 2025-03-06 01:05:05 [RateCDR] => 1 ) [2025-03-06 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-03-05 22:05:05' and `end` < '2025-03-06 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-03-06 01:05:17] Production.INFO: count ==262 [2025-03-06 01:05:17] Production.ERROR: pbx CDR StartTime 2025-03-05 22:05:05 - End Time 2025-03-06 01:05:05 [2025-03-06 01:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 01:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616995', 'tblTempUsageDetail_20' ) start [2025-03-06 01:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14616995', 'tblTempUsageDetail_20' ) end [2025-03-06 01:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616995', 'tblTempVendorCDR_20' ) start [2025-03-06 01:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14616995', 'tblTempVendorCDR_20' ) end [2025-03-06 01:05:17] Production.INFO: ProcessCDR(1,14616995,1,1,2) [2025-03-06 01:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14616995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 01:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14616995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 01:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14616995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 01:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14616995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 01:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616995', 'tblTempUsageDetail_20' ) start [2025-03-06 01:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14616995', 'tblTempUsageDetail_20' ) end [2025-03-06 01:05:20] Production.ERROR: pbx prc_insertCDR start [2025-03-06 01:05:20] Production.ERROR: pbx prc_insertCDR end [2025-03-06 01:05:20] Production.INFO: ==2062== Releasing lock... [2025-03-06 01:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 01:05:20] Production.INFO: 30.25 MB #Memory Used# [2025-03-06 01:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 22:06:06 [end_date_ymd] => 2025-03-06 01:06:06 [RateCDR] => 1 ) [2025-03-06 01: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-03-05 22:06:06' and `end` < '2025-03-06 01: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-03-06 01:06:18] Production.INFO: count ==261 [2025-03-06 01:06:18] Production.ERROR: pbx CDR StartTime 2025-03-05 22:06:06 - End Time 2025-03-06 01:06:06 [2025-03-06 01:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617000', 'tblTempUsageDetail_20' ) start [2025-03-06 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617000', 'tblTempUsageDetail_20' ) end [2025-03-06 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617000', 'tblTempVendorCDR_20' ) start [2025-03-06 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617000', 'tblTempVendorCDR_20' ) end [2025-03-06 01:06:18] Production.INFO: ProcessCDR(1,14617000,1,1,2) [2025-03-06 01:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14617000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 01:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14617000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 01:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14617000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 01:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14617000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 01:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617000', 'tblTempUsageDetail_20' ) start [2025-03-06 01:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617000', 'tblTempUsageDetail_20' ) end [2025-03-06 01:06:23] Production.ERROR: pbx prc_insertCDR start [2025-03-06 01:06:23] Production.ERROR: pbx prc_insertCDR end [2025-03-06 01:06:23] Production.INFO: ==2133== Releasing lock... [2025-03-06 01:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 01:06:23] Production.INFO: 30.5 MB #Memory Used# [2025-03-06 01:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 22:07:05 [end_date_ymd] => 2025-03-06 01:07:05 [RateCDR] => 1 ) [2025-03-06 01:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-05 22:07:05' and `end` < '2025-03-06 01:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 01:07:17] Production.INFO: count ==261 [2025-03-06 01:07:17] Production.ERROR: pbx CDR StartTime 2025-03-05 22:07:05 - End Time 2025-03-06 01:07:05 [2025-03-06 01:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 01:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617005', 'tblTempUsageDetail_20' ) start [2025-03-06 01:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617005', 'tblTempUsageDetail_20' ) end [2025-03-06 01:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617005', 'tblTempVendorCDR_20' ) start [2025-03-06 01:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617005', 'tblTempVendorCDR_20' ) end [2025-03-06 01:07:17] Production.INFO: ProcessCDR(1,14617005,1,1,2) [2025-03-06 01:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14617005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 01:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14617005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 01:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14617005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 01:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14617005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 01:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617005', 'tblTempUsageDetail_20' ) start [2025-03-06 01:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617005', 'tblTempUsageDetail_20' ) end [2025-03-06 01:07:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 01:07:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 01:07:21] Production.INFO: ==2204== Releasing lock... [2025-03-06 01:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 01:07:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-06 01:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 22:08:05 [end_date_ymd] => 2025-03-06 01:08:05 [RateCDR] => 1 ) [2025-03-06 01:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-05 22:08:05' and `end` < '2025-03-06 01:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 01:08:17] Production.INFO: count ==257 [2025-03-06 01:08:17] Production.ERROR: pbx CDR StartTime 2025-03-05 22:08:05 - End Time 2025-03-06 01:08:05 [2025-03-06 01:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 01:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617010', 'tblTempUsageDetail_20' ) start [2025-03-06 01:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617010', 'tblTempUsageDetail_20' ) end [2025-03-06 01:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617010', 'tblTempVendorCDR_20' ) start [2025-03-06 01:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617010', 'tblTempVendorCDR_20' ) end [2025-03-06 01:08:17] Production.INFO: ProcessCDR(1,14617010,1,1,2) [2025-03-06 01:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14617010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 01:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14617010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 01:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14617010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 01:08:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14617010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 01:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617010', 'tblTempUsageDetail_20' ) start [2025-03-06 01:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617010', 'tblTempUsageDetail_20' ) end [2025-03-06 01:08:20] Production.ERROR: pbx prc_insertCDR start [2025-03-06 01:08:20] Production.ERROR: pbx prc_insertCDR end [2025-03-06 01:08:20] Production.INFO: ==2279== Releasing lock... [2025-03-06 01:08:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 01:08:20] Production.INFO: 30 MB #Memory Used# [2025-03-06 01:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 22:09:05 [end_date_ymd] => 2025-03-06 01:09:05 [RateCDR] => 1 ) [2025-03-06 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-03-05 22:09:05' and `end` < '2025-03-06 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-03-06 01:09:17] Production.INFO: count ==257 [2025-03-06 01:09:17] Production.ERROR: pbx CDR StartTime 2025-03-05 22:09:05 - End Time 2025-03-06 01:09:05 [2025-03-06 01:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 01:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617015', 'tblTempUsageDetail_20' ) start [2025-03-06 01:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617015', 'tblTempUsageDetail_20' ) end [2025-03-06 01:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617015', 'tblTempVendorCDR_20' ) start [2025-03-06 01:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617015', 'tblTempVendorCDR_20' ) end [2025-03-06 01:09:17] Production.INFO: ProcessCDR(1,14617015,1,1,2) [2025-03-06 01:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14617015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 01:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14617015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 01:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14617015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 01:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14617015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 01:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617015', 'tblTempUsageDetail_20' ) start [2025-03-06 01:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617015', 'tblTempUsageDetail_20' ) end [2025-03-06 01:09:20] Production.ERROR: pbx prc_insertCDR start [2025-03-06 01:09:20] Production.ERROR: pbx prc_insertCDR end [2025-03-06 01:09:20] Production.INFO: ==2349== Releasing lock... [2025-03-06 01:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 01:09:20] Production.INFO: 30 MB #Memory Used# [2025-03-06 01:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 22:10:06 [end_date_ymd] => 2025-03-06 01:10:06 [RateCDR] => 1 ) [2025-03-06 01:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-05 22:10:06' and `end` < '2025-03-06 01:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 01:10:18] Production.INFO: count ==265 [2025-03-06 01:10:18] Production.ERROR: pbx CDR StartTime 2025-03-05 22:10:06 - End Time 2025-03-06 01:10:06 [2025-03-06 01:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 01:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617020', 'tblTempUsageDetail_20' ) start [2025-03-06 01:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617020', 'tblTempUsageDetail_20' ) end [2025-03-06 01:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617020', 'tblTempVendorCDR_20' ) start [2025-03-06 01:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617020', 'tblTempVendorCDR_20' ) end [2025-03-06 01:10:18] Production.INFO: ProcessCDR(1,14617020,1,1,2) [2025-03-06 01:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14617020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 01:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14617020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 01:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14617020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 01:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14617020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 01:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617020', 'tblTempUsageDetail_20' ) start [2025-03-06 01:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617020', 'tblTempUsageDetail_20' ) end [2025-03-06 01:10:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 01:10:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 01:10:21] Production.INFO: ==2423== Releasing lock... [2025-03-06 01:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 01:10:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-06 01:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 22:11:05 [end_date_ymd] => 2025-03-06 01:11:05 [RateCDR] => 1 ) [2025-03-06 01:11:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-05 22:11:05' and `end` < '2025-03-06 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-03-06 01:11:17] Production.INFO: count ==271 [2025-03-06 01:11:18] Production.ERROR: pbx CDR StartTime 2025-03-05 22:11:05 - End Time 2025-03-06 01:11:05 [2025-03-06 01:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 01:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617026', 'tblTempUsageDetail_20' ) start [2025-03-06 01:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617026', 'tblTempUsageDetail_20' ) end [2025-03-06 01:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617026', 'tblTempVendorCDR_20' ) start [2025-03-06 01:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617026', 'tblTempVendorCDR_20' ) end [2025-03-06 01:11:18] Production.INFO: ProcessCDR(1,14617026,1,1,2) [2025-03-06 01:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14617026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 01:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14617026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 01:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14617026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 01:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14617026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 01:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617026', 'tblTempUsageDetail_20' ) start [2025-03-06 01:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617026', 'tblTempUsageDetail_20' ) end [2025-03-06 01:11:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 01:11:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 01:11:21] Production.INFO: ==2496== Releasing lock... [2025-03-06 01:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 01:11:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-06 01:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 22:12:06 [end_date_ymd] => 2025-03-06 01:12:06 [RateCDR] => 1 ) [2025-03-06 01: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-03-05 22:12:06' and `end` < '2025-03-06 01: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-03-06 01:12:18] Production.INFO: count ==271 [2025-03-06 01:12:18] Production.ERROR: pbx CDR StartTime 2025-03-05 22:12:06 - End Time 2025-03-06 01:12:06 [2025-03-06 01:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617031', 'tblTempUsageDetail_20' ) start [2025-03-06 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617031', 'tblTempUsageDetail_20' ) end [2025-03-06 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617031', 'tblTempVendorCDR_20' ) start [2025-03-06 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617031', 'tblTempVendorCDR_20' ) end [2025-03-06 01:12:18] Production.INFO: ProcessCDR(1,14617031,1,1,2) [2025-03-06 01:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14617031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 01:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14617031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 01:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14617031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 01:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14617031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 01:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617031', 'tblTempUsageDetail_20' ) start [2025-03-06 01:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617031', 'tblTempUsageDetail_20' ) end [2025-03-06 01:12:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 01:12:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 01:12:22] Production.INFO: ==2573== Releasing lock... [2025-03-06 01:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 01:12:22] Production.INFO: 29.75 MB #Memory Used# [2025-03-06 01:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 22:13:05 [end_date_ymd] => 2025-03-06 01:13:05 [RateCDR] => 1 ) [2025-03-06 01:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-05 22:13:05' and `end` < '2025-03-06 01:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 01:13:17] Production.INFO: count ==271 [2025-03-06 01:13:17] Production.ERROR: pbx CDR StartTime 2025-03-05 22:13:05 - End Time 2025-03-06 01:13:05 [2025-03-06 01:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 01:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617036', 'tblTempUsageDetail_20' ) start [2025-03-06 01:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617036', 'tblTempUsageDetail_20' ) end [2025-03-06 01:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617036', 'tblTempVendorCDR_20' ) start [2025-03-06 01:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617036', 'tblTempVendorCDR_20' ) end [2025-03-06 01:13:17] Production.INFO: ProcessCDR(1,14617036,1,1,2) [2025-03-06 01:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14617036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 01:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14617036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 01:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14617036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 01:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14617036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 01:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617036', 'tblTempUsageDetail_20' ) start [2025-03-06 01:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617036', 'tblTempUsageDetail_20' ) end [2025-03-06 01:13:20] Production.ERROR: pbx prc_insertCDR start [2025-03-06 01:13:20] Production.ERROR: pbx prc_insertCDR end [2025-03-06 01:13:20] Production.INFO: ==2672== Releasing lock... [2025-03-06 01:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 01:13:20] Production.INFO: 29.75 MB #Memory Used# [2025-03-06 01:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 22:14:05 [end_date_ymd] => 2025-03-06 01:14:05 [RateCDR] => 1 ) [2025-03-06 01:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-05 22:14:05' and `end` < '2025-03-06 01:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 01:14:17] Production.INFO: count ==271 [2025-03-06 01:14:17] Production.ERROR: pbx CDR StartTime 2025-03-05 22:14:05 - End Time 2025-03-06 01:14:05 [2025-03-06 01:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 01:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617041', 'tblTempUsageDetail_20' ) start [2025-03-06 01:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617041', 'tblTempUsageDetail_20' ) end [2025-03-06 01:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617041', 'tblTempVendorCDR_20' ) start [2025-03-06 01:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617041', 'tblTempVendorCDR_20' ) end [2025-03-06 01:14:17] Production.INFO: ProcessCDR(1,14617041,1,1,2) [2025-03-06 01:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14617041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 01:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14617041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 01:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14617041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 01:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14617041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 01:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617041', 'tblTempUsageDetail_20' ) start [2025-03-06 01:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617041', 'tblTempUsageDetail_20' ) end [2025-03-06 01:14:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 01:14:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 01:14:21] Production.INFO: ==2750== Releasing lock... [2025-03-06 01:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 01:14:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-06 01:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 22:15:05 [end_date_ymd] => 2025-03-06 01:15:05 [RateCDR] => 1 ) [2025-03-06 01: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-03-05 22:15:05' and `end` < '2025-03-06 01: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-03-06 01:15:17] Production.INFO: count ==268 [2025-03-06 01:15:17] Production.ERROR: pbx CDR StartTime 2025-03-05 22:15:05 - End Time 2025-03-06 01:15:05 [2025-03-06 01:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 01:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617046', 'tblTempUsageDetail_20' ) start [2025-03-06 01:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617046', 'tblTempUsageDetail_20' ) end [2025-03-06 01:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617046', 'tblTempVendorCDR_20' ) start [2025-03-06 01:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617046', 'tblTempVendorCDR_20' ) end [2025-03-06 01:15:17] Production.INFO: ProcessCDR(1,14617046,1,1,2) [2025-03-06 01:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14617046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 01:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14617046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 01:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14617046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 01:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14617046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 01:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617046', 'tblTempUsageDetail_20' ) start [2025-03-06 01:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617046', 'tblTempUsageDetail_20' ) end [2025-03-06 01:15:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 01:15:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 01:15:21] Production.INFO: ==2848== Releasing lock... [2025-03-06 01:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 01:15:21] Production.INFO: 30 MB #Memory Used# [2025-03-06 01:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 22:16:06 [end_date_ymd] => 2025-03-06 01:16:06 [RateCDR] => 1 ) [2025-03-06 01: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-03-05 22:16:06' and `end` < '2025-03-06 01: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-03-06 01:16:18] Production.INFO: count ==264 [2025-03-06 01:16:18] Production.ERROR: pbx CDR StartTime 2025-03-05 22:16:06 - End Time 2025-03-06 01:16:06 [2025-03-06 01:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617051', 'tblTempUsageDetail_20' ) start [2025-03-06 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617051', 'tblTempUsageDetail_20' ) end [2025-03-06 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617051', 'tblTempVendorCDR_20' ) start [2025-03-06 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617051', 'tblTempVendorCDR_20' ) end [2025-03-06 01:16:18] Production.INFO: ProcessCDR(1,14617051,1,1,2) [2025-03-06 01:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14617051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 01:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14617051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 01:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14617051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 01:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14617051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 01:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617051', 'tblTempUsageDetail_20' ) start [2025-03-06 01:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617051', 'tblTempUsageDetail_20' ) end [2025-03-06 01:16:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 01:16:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 01:16:21] Production.INFO: ==2928== Releasing lock... [2025-03-06 01:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 01:16:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-06 01:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 22:17:05 [end_date_ymd] => 2025-03-06 01:17:05 [RateCDR] => 1 ) [2025-03-06 01:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-05 22:17:05' and `end` < '2025-03-06 01:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 01:17:17] Production.INFO: count ==264 [2025-03-06 01:17:17] Production.ERROR: pbx CDR StartTime 2025-03-05 22:17:05 - End Time 2025-03-06 01:17:05 [2025-03-06 01:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 01:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617056', 'tblTempUsageDetail_20' ) start [2025-03-06 01:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617056', 'tblTempUsageDetail_20' ) end [2025-03-06 01:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617056', 'tblTempVendorCDR_20' ) start [2025-03-06 01:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617056', 'tblTempVendorCDR_20' ) end [2025-03-06 01:17:17] Production.INFO: ProcessCDR(1,14617056,1,1,2) [2025-03-06 01:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14617056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 01:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14617056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 01:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14617056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 01:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14617056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 01:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617056', 'tblTempUsageDetail_20' ) start [2025-03-06 01:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617056', 'tblTempUsageDetail_20' ) end [2025-03-06 01:17:20] Production.ERROR: pbx prc_insertCDR start [2025-03-06 01:17:20] Production.ERROR: pbx prc_insertCDR end [2025-03-06 01:17:20] Production.INFO: ==3059== Releasing lock... [2025-03-06 01:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 01:17:20] Production.INFO: 30.25 MB #Memory Used# [2025-03-06 01:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 22:18:05 [end_date_ymd] => 2025-03-06 01:18:05 [RateCDR] => 1 ) [2025-03-06 01:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-05 22:18:05' and `end` < '2025-03-06 01:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 01:18:17] Production.INFO: count ==263 [2025-03-06 01:18:17] Production.ERROR: pbx CDR StartTime 2025-03-05 22:18:05 - End Time 2025-03-06 01:18:05 [2025-03-06 01:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 01:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617061', 'tblTempUsageDetail_20' ) start [2025-03-06 01:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617061', 'tblTempUsageDetail_20' ) end [2025-03-06 01:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617061', 'tblTempVendorCDR_20' ) start [2025-03-06 01:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617061', 'tblTempVendorCDR_20' ) end [2025-03-06 01:18:17] Production.INFO: ProcessCDR(1,14617061,1,1,2) [2025-03-06 01:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14617061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 01:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14617061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 01:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14617061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 01:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14617061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 01:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617061', 'tblTempUsageDetail_20' ) start [2025-03-06 01:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617061', 'tblTempUsageDetail_20' ) end [2025-03-06 01:18:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 01:18:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 01:18:21] Production.INFO: ==3148== Releasing lock... [2025-03-06 01:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 01:18:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-06 01:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 22:19:05 [end_date_ymd] => 2025-03-06 01:19:05 [RateCDR] => 1 ) [2025-03-06 01:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-05 22:19:05' and `end` < '2025-03-06 01:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 01:19:17] Production.INFO: count ==262 [2025-03-06 01:19:17] Production.ERROR: pbx CDR StartTime 2025-03-05 22:19:05 - End Time 2025-03-06 01:19:05 [2025-03-06 01:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 01:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617066', 'tblTempUsageDetail_20' ) start [2025-03-06 01:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617066', 'tblTempUsageDetail_20' ) end [2025-03-06 01:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617066', 'tblTempVendorCDR_20' ) start [2025-03-06 01:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617066', 'tblTempVendorCDR_20' ) end [2025-03-06 01:19:17] Production.INFO: ProcessCDR(1,14617066,1,1,2) [2025-03-06 01:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14617066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 01:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14617066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 01:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14617066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 01:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14617066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 01:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617066', 'tblTempUsageDetail_20' ) start [2025-03-06 01:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617066', 'tblTempUsageDetail_20' ) end [2025-03-06 01:19:20] Production.ERROR: pbx prc_insertCDR start [2025-03-06 01:19:20] Production.ERROR: pbx prc_insertCDR end [2025-03-06 01:19:20] Production.INFO: ==3231== Releasing lock... [2025-03-06 01:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 01:19:20] Production.INFO: 30.25 MB #Memory Used# [2025-03-06 01:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 22:20:06 [end_date_ymd] => 2025-03-06 01:20:06 [RateCDR] => 1 ) [2025-03-06 01:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-05 22:20:06' and `end` < '2025-03-06 01:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 01:20:18] Production.INFO: count ==270 [2025-03-06 01:20:18] Production.ERROR: pbx CDR StartTime 2025-03-05 22:20:06 - End Time 2025-03-06 01:20:06 [2025-03-06 01:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 01:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617072', 'tblTempUsageDetail_20' ) start [2025-03-06 01:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617072', 'tblTempUsageDetail_20' ) end [2025-03-06 01:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617072', 'tblTempVendorCDR_20' ) start [2025-03-06 01:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617072', 'tblTempVendorCDR_20' ) end [2025-03-06 01:20:18] Production.INFO: ProcessCDR(1,14617072,1,1,2) [2025-03-06 01:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14617072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 01:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14617072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 01:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14617072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 01:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14617072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 01:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617072', 'tblTempUsageDetail_20' ) start [2025-03-06 01:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617072', 'tblTempUsageDetail_20' ) end [2025-03-06 01:20:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 01:20:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 01:20:22] Production.INFO: ==3330== Releasing lock... [2025-03-06 01:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 01:20:22] Production.INFO: 30 MB #Memory Used# [2025-03-06 01:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 22:21:06 [end_date_ymd] => 2025-03-06 01:21:06 [RateCDR] => 1 ) [2025-03-06 01: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-03-05 22:21:06' and `end` < '2025-03-06 01: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-03-06 01:21:18] Production.INFO: count ==271 [2025-03-06 01:21:18] Production.ERROR: pbx CDR StartTime 2025-03-05 22:21:06 - End Time 2025-03-06 01:21:06 [2025-03-06 01:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617077', 'tblTempUsageDetail_20' ) start [2025-03-06 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617077', 'tblTempUsageDetail_20' ) end [2025-03-06 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617077', 'tblTempVendorCDR_20' ) start [2025-03-06 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617077', 'tblTempVendorCDR_20' ) end [2025-03-06 01:21:18] Production.INFO: ProcessCDR(1,14617077,1,1,2) [2025-03-06 01:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14617077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 01:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14617077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 01:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14617077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 01:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14617077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 01:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617077', 'tblTempUsageDetail_20' ) start [2025-03-06 01:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617077', 'tblTempUsageDetail_20' ) end [2025-03-06 01:21:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 01:21:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 01:21:21] Production.INFO: ==3430== Releasing lock... [2025-03-06 01:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 01:21:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-06 01:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 22:22:05 [end_date_ymd] => 2025-03-06 01:22:05 [RateCDR] => 1 ) [2025-03-06 01:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-05 22:22:05' and `end` < '2025-03-06 01:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 01:22:17] Production.INFO: count ==269 [2025-03-06 01:22:17] Production.ERROR: pbx CDR StartTime 2025-03-05 22:22:05 - End Time 2025-03-06 01:22:05 [2025-03-06 01:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 01:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617082', 'tblTempUsageDetail_20' ) start [2025-03-06 01:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617082', 'tblTempUsageDetail_20' ) end [2025-03-06 01:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617082', 'tblTempVendorCDR_20' ) start [2025-03-06 01:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617082', 'tblTempVendorCDR_20' ) end [2025-03-06 01:22:17] Production.INFO: ProcessCDR(1,14617082,1,1,2) [2025-03-06 01:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14617082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 01:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14617082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 01:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14617082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 01:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14617082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 01:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617082', 'tblTempUsageDetail_20' ) start [2025-03-06 01:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617082', 'tblTempUsageDetail_20' ) end [2025-03-06 01:22:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 01:22:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 01:22:21] Production.INFO: ==3515== Releasing lock... [2025-03-06 01:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 01:22:21] Production.INFO: 30 MB #Memory Used# [2025-03-06 01:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 22:23:05 [end_date_ymd] => 2025-03-06 01:23:05 [RateCDR] => 1 ) [2025-03-06 01:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-05 22:23:05' and `end` < '2025-03-06 01:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 01:23:17] Production.INFO: count ==269 [2025-03-06 01:23:17] Production.ERROR: pbx CDR StartTime 2025-03-05 22:23:05 - End Time 2025-03-06 01:23:05 [2025-03-06 01:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 01:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617087', 'tblTempUsageDetail_20' ) start [2025-03-06 01:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617087', 'tblTempUsageDetail_20' ) end [2025-03-06 01:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617087', 'tblTempVendorCDR_20' ) start [2025-03-06 01:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617087', 'tblTempVendorCDR_20' ) end [2025-03-06 01:23:17] Production.INFO: ProcessCDR(1,14617087,1,1,2) [2025-03-06 01:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14617087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 01:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14617087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 01:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14617087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 01:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14617087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 01:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617087', 'tblTempUsageDetail_20' ) start [2025-03-06 01:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617087', 'tblTempUsageDetail_20' ) end [2025-03-06 01:23:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 01:23:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 01:23:21] Production.INFO: ==3599== Releasing lock... [2025-03-06 01:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 01:23:21] Production.INFO: 30 MB #Memory Used# [2025-03-06 01:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 22:24:05 [end_date_ymd] => 2025-03-06 01:24:05 [RateCDR] => 1 ) [2025-03-06 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-03-05 22:24:05' and `end` < '2025-03-06 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-03-06 01:24:17] Production.INFO: count ==266 [2025-03-06 01:24:17] Production.ERROR: pbx CDR StartTime 2025-03-05 22:24:05 - End Time 2025-03-06 01:24:05 [2025-03-06 01:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 01:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617092', 'tblTempUsageDetail_20' ) start [2025-03-06 01:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617092', 'tblTempUsageDetail_20' ) end [2025-03-06 01:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617092', 'tblTempVendorCDR_20' ) start [2025-03-06 01:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617092', 'tblTempVendorCDR_20' ) end [2025-03-06 01:24:17] Production.INFO: ProcessCDR(1,14617092,1,1,2) [2025-03-06 01:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14617092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 01:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14617092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 01:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14617092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 01:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14617092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 01:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617092', 'tblTempUsageDetail_20' ) start [2025-03-06 01:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617092', 'tblTempUsageDetail_20' ) end [2025-03-06 01:24:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 01:24:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 01:24:21] Production.INFO: ==3694== Releasing lock... [2025-03-06 01:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 01:24:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-06 01:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 22:25:05 [end_date_ymd] => 2025-03-06 01:25:05 [RateCDR] => 1 ) [2025-03-06 01:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-05 22:25:05' and `end` < '2025-03-06 01:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 01:25:17] Production.INFO: count ==264 [2025-03-06 01:25:17] Production.ERROR: pbx CDR StartTime 2025-03-05 22:25:05 - End Time 2025-03-06 01:25:05 [2025-03-06 01:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617097', 'tblTempUsageDetail_20' ) start [2025-03-06 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617097', 'tblTempUsageDetail_20' ) end [2025-03-06 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617097', 'tblTempVendorCDR_20' ) start [2025-03-06 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617097', 'tblTempVendorCDR_20' ) end [2025-03-06 01:25:17] Production.INFO: ProcessCDR(1,14617097,1,1,2) [2025-03-06 01:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14617097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 01:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14617097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 01:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14617097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 01:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14617097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 01:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617097', 'tblTempUsageDetail_20' ) start [2025-03-06 01:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617097', 'tblTempUsageDetail_20' ) end [2025-03-06 01:25:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 01:25:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 01:25:21] Production.INFO: ==3771== Releasing lock... [2025-03-06 01:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 01:25:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-06 01:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 22:26:05 [end_date_ymd] => 2025-03-06 01:26:05 [RateCDR] => 1 ) [2025-03-06 01: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-03-05 22:26:05' and `end` < '2025-03-06 01: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-03-06 01:26:17] Production.INFO: count ==264 [2025-03-06 01:26:17] Production.ERROR: pbx CDR StartTime 2025-03-05 22:26:05 - End Time 2025-03-06 01:26:05 [2025-03-06 01:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 01:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617102', 'tblTempUsageDetail_20' ) start [2025-03-06 01:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617102', 'tblTempUsageDetail_20' ) end [2025-03-06 01:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617102', 'tblTempVendorCDR_20' ) start [2025-03-06 01:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617102', 'tblTempVendorCDR_20' ) end [2025-03-06 01:26:17] Production.INFO: ProcessCDR(1,14617102,1,1,2) [2025-03-06 01:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14617102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 01:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14617102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 01:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14617102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 01:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14617102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 01:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617102', 'tblTempUsageDetail_20' ) start [2025-03-06 01:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617102', 'tblTempUsageDetail_20' ) end [2025-03-06 01:26:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 01:26:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 01:26:21] Production.INFO: ==3863== Releasing lock... [2025-03-06 01:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 01:26:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-06 01:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 22:27:05 [end_date_ymd] => 2025-03-06 01:27:05 [RateCDR] => 1 ) [2025-03-06 01:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-05 22:27:05' and `end` < '2025-03-06 01:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 01:27:17] Production.INFO: count ==264 [2025-03-06 01:27:17] Production.ERROR: pbx CDR StartTime 2025-03-05 22:27:05 - End Time 2025-03-06 01:27:05 [2025-03-06 01:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 01:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617107', 'tblTempUsageDetail_20' ) start [2025-03-06 01:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617107', 'tblTempUsageDetail_20' ) end [2025-03-06 01:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617107', 'tblTempVendorCDR_20' ) start [2025-03-06 01:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617107', 'tblTempVendorCDR_20' ) end [2025-03-06 01:27:17] Production.INFO: ProcessCDR(1,14617107,1,1,2) [2025-03-06 01:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14617107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 01:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14617107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 01:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14617107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 01:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14617107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 01:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617107', 'tblTempUsageDetail_20' ) start [2025-03-06 01:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617107', 'tblTempUsageDetail_20' ) end [2025-03-06 01:27:20] Production.ERROR: pbx prc_insertCDR start [2025-03-06 01:27:20] Production.ERROR: pbx prc_insertCDR end [2025-03-06 01:27:20] Production.INFO: ==3953== Releasing lock... [2025-03-06 01:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 01:27:20] Production.INFO: 29.75 MB #Memory Used# [2025-03-06 01:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 22:28:05 [end_date_ymd] => 2025-03-06 01:28:05 [RateCDR] => 1 ) [2025-03-06 01: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-03-05 22:28:05' and `end` < '2025-03-06 01: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-03-06 01:28:17] Production.INFO: count ==263 [2025-03-06 01:28:17] Production.ERROR: pbx CDR StartTime 2025-03-05 22:28:05 - End Time 2025-03-06 01:28:05 [2025-03-06 01:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 01:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617112', 'tblTempUsageDetail_20' ) start [2025-03-06 01:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617112', 'tblTempUsageDetail_20' ) end [2025-03-06 01:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617112', 'tblTempVendorCDR_20' ) start [2025-03-06 01:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617112', 'tblTempVendorCDR_20' ) end [2025-03-06 01:28:17] Production.INFO: ProcessCDR(1,14617112,1,1,2) [2025-03-06 01:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14617112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 01:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14617112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 01:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14617112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 01:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14617112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 01:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617112', 'tblTempUsageDetail_20' ) start [2025-03-06 01:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617112', 'tblTempUsageDetail_20' ) end [2025-03-06 01:28:20] Production.ERROR: pbx prc_insertCDR start [2025-03-06 01:28:20] Production.ERROR: pbx prc_insertCDR end [2025-03-06 01:28:20] Production.INFO: ==4057== Releasing lock... [2025-03-06 01:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 01:28:20] Production.INFO: 30 MB #Memory Used# [2025-03-06 01:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 22:29:05 [end_date_ymd] => 2025-03-06 01:29:05 [RateCDR] => 1 ) [2025-03-06 01:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-05 22:29:05' and `end` < '2025-03-06 01:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 01:29:17] Production.INFO: count ==263 [2025-03-06 01:29:17] Production.ERROR: pbx CDR StartTime 2025-03-05 22:29:05 - End Time 2025-03-06 01:29:05 [2025-03-06 01:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 01:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617117', 'tblTempUsageDetail_20' ) start [2025-03-06 01:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617117', 'tblTempUsageDetail_20' ) end [2025-03-06 01:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617117', 'tblTempVendorCDR_20' ) start [2025-03-06 01:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617117', 'tblTempVendorCDR_20' ) end [2025-03-06 01:29:17] Production.INFO: ProcessCDR(1,14617117,1,1,2) [2025-03-06 01:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14617117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 01:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14617117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 01:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14617117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 01:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14617117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 01:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617117', 'tblTempUsageDetail_20' ) start [2025-03-06 01:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617117', 'tblTempUsageDetail_20' ) end [2025-03-06 01:29:20] Production.ERROR: pbx prc_insertCDR start [2025-03-06 01:29:20] Production.ERROR: pbx prc_insertCDR end [2025-03-06 01:29:20] Production.INFO: ==4154== Releasing lock... [2025-03-06 01:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 01:29:20] Production.INFO: 30 MB #Memory Used# [2025-03-06 01:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 22:30:05 [end_date_ymd] => 2025-03-06 01:30:05 [RateCDR] => 1 ) [2025-03-06 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-03-05 22:30:05' and `end` < '2025-03-06 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-03-06 01:30:17] Production.INFO: count ==263 [2025-03-06 01:30:18] Production.ERROR: pbx CDR StartTime 2025-03-05 22:30:05 - End Time 2025-03-06 01:30:05 [2025-03-06 01:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 01:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617122', 'tblTempUsageDetail_20' ) start [2025-03-06 01:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617122', 'tblTempUsageDetail_20' ) end [2025-03-06 01:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617122', 'tblTempVendorCDR_20' ) start [2025-03-06 01:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617122', 'tblTempVendorCDR_20' ) end [2025-03-06 01:30:18] Production.INFO: ProcessCDR(1,14617122,1,1,2) [2025-03-06 01:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14617122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 01:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14617122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 01:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14617122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 01:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14617122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 01:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617122', 'tblTempUsageDetail_20' ) start [2025-03-06 01:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617122', 'tblTempUsageDetail_20' ) end [2025-03-06 01:30:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 01:30:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 01:30:21] Production.INFO: ==4231== Releasing lock... [2025-03-06 01:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 01:30:21] Production.INFO: 30 MB #Memory Used# [2025-03-06 01:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 22:31:05 [end_date_ymd] => 2025-03-06 01:31:05 [RateCDR] => 1 ) [2025-03-06 01:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-05 22:31:05' and `end` < '2025-03-06 01:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 01:31:17] Production.INFO: count ==257 [2025-03-06 01:31:17] Production.ERROR: pbx CDR StartTime 2025-03-05 22:31:05 - End Time 2025-03-06 01:31:05 [2025-03-06 01:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 01:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617128', 'tblTempUsageDetail_20' ) start [2025-03-06 01:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617128', 'tblTempUsageDetail_20' ) end [2025-03-06 01:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617128', 'tblTempVendorCDR_20' ) start [2025-03-06 01:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617128', 'tblTempVendorCDR_20' ) end [2025-03-06 01:31:17] Production.INFO: ProcessCDR(1,14617128,1,1,2) [2025-03-06 01:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14617128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 01:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14617128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 01:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14617128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 01:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14617128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 01:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617128', 'tblTempUsageDetail_20' ) start [2025-03-06 01:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617128', 'tblTempUsageDetail_20' ) end [2025-03-06 01:31:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 01:31:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 01:31:21] Production.INFO: ==4318== Releasing lock... [2025-03-06 01:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 01:31:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-06 01:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 22:32:06 [end_date_ymd] => 2025-03-06 01:32:06 [RateCDR] => 1 ) [2025-03-06 01: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-03-05 22:32:06' and `end` < '2025-03-06 01: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-03-06 01:32:18] Production.INFO: count ==256 [2025-03-06 01:32:18] Production.ERROR: pbx CDR StartTime 2025-03-05 22:32:06 - End Time 2025-03-06 01:32:06 [2025-03-06 01:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617133', 'tblTempUsageDetail_20' ) start [2025-03-06 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617133', 'tblTempUsageDetail_20' ) end [2025-03-06 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617133', 'tblTempVendorCDR_20' ) start [2025-03-06 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617133', 'tblTempVendorCDR_20' ) end [2025-03-06 01:32:18] Production.INFO: ProcessCDR(1,14617133,1,1,2) [2025-03-06 01:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14617133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 01:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14617133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 01:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14617133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 01:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14617133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 01:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617133', 'tblTempUsageDetail_20' ) start [2025-03-06 01:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617133', 'tblTempUsageDetail_20' ) end [2025-03-06 01:32:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 01:32:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 01:32:21] Production.INFO: ==4387== Releasing lock... [2025-03-06 01:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 01:32:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-06 01:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 22:33:05 [end_date_ymd] => 2025-03-06 01:33:05 [RateCDR] => 1 ) [2025-03-06 01:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-05 22:33:05' and `end` < '2025-03-06 01:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 01:33:17] Production.INFO: count ==252 [2025-03-06 01:33:17] Production.ERROR: pbx CDR StartTime 2025-03-05 22:33:05 - End Time 2025-03-06 01:33:05 [2025-03-06 01:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 01:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617138', 'tblTempUsageDetail_20' ) start [2025-03-06 01:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617138', 'tblTempUsageDetail_20' ) end [2025-03-06 01:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617138', 'tblTempVendorCDR_20' ) start [2025-03-06 01:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617138', 'tblTempVendorCDR_20' ) end [2025-03-06 01:33:17] Production.INFO: ProcessCDR(1,14617138,1,1,2) [2025-03-06 01:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14617138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 01:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14617138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 01:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14617138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 01:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14617138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 01:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617138', 'tblTempUsageDetail_20' ) start [2025-03-06 01:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617138', 'tblTempUsageDetail_20' ) end [2025-03-06 01:33:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 01:33:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 01:33:21] Production.INFO: ==4496== Releasing lock... [2025-03-06 01:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 01:33:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-06 01:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 22:34:06 [end_date_ymd] => 2025-03-06 01:34:06 [RateCDR] => 1 ) [2025-03-06 01: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-03-05 22:34:06' and `end` < '2025-03-06 01: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-03-06 01:34:18] Production.INFO: count ==252 [2025-03-06 01:34:18] Production.ERROR: pbx CDR StartTime 2025-03-05 22:34:06 - End Time 2025-03-06 01:34:06 [2025-03-06 01:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617143', 'tblTempUsageDetail_20' ) start [2025-03-06 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617143', 'tblTempUsageDetail_20' ) end [2025-03-06 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617143', 'tblTempVendorCDR_20' ) start [2025-03-06 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617143', 'tblTempVendorCDR_20' ) end [2025-03-06 01:34:18] Production.INFO: ProcessCDR(1,14617143,1,1,2) [2025-03-06 01:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14617143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 01:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14617143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 01:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14617143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 01:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14617143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 01:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617143', 'tblTempUsageDetail_20' ) start [2025-03-06 01:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617143', 'tblTempUsageDetail_20' ) end [2025-03-06 01:34:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 01:34:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 01:34:22] Production.INFO: ==4569== Releasing lock... [2025-03-06 01:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 01:34:22] Production.INFO: 29.5 MB #Memory Used# [2025-03-06 01:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 22:35:05 [end_date_ymd] => 2025-03-06 01:35:05 [RateCDR] => 1 ) [2025-03-06 01:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-05 22:35:05' and `end` < '2025-03-06 01:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 01:35:17] Production.INFO: count ==252 [2025-03-06 01:35:17] Production.ERROR: pbx CDR StartTime 2025-03-05 22:35:05 - End Time 2025-03-06 01:35:05 [2025-03-06 01:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 01:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617148', 'tblTempUsageDetail_20' ) start [2025-03-06 01:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617148', 'tblTempUsageDetail_20' ) end [2025-03-06 01:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617148', 'tblTempVendorCDR_20' ) start [2025-03-06 01:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617148', 'tblTempVendorCDR_20' ) end [2025-03-06 01:35:18] Production.INFO: ProcessCDR(1,14617148,1,1,2) [2025-03-06 01:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14617148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 01:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14617148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 01:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14617148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 01:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14617148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 01:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617148', 'tblTempUsageDetail_20' ) start [2025-03-06 01:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617148', 'tblTempUsageDetail_20' ) end [2025-03-06 01:35:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 01:35:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 01:35:21] Production.INFO: ==4652== Releasing lock... [2025-03-06 01:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 01:35:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-06 01:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 22:36:06 [end_date_ymd] => 2025-03-06 01:36:06 [RateCDR] => 1 ) [2025-03-06 01: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-03-05 22:36:06' and `end` < '2025-03-06 01: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-03-06 01:36:18] Production.INFO: count ==255 [2025-03-06 01:36:18] Production.ERROR: pbx CDR StartTime 2025-03-05 22:36:06 - End Time 2025-03-06 01:36:06 [2025-03-06 01:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617153', 'tblTempUsageDetail_20' ) start [2025-03-06 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617153', 'tblTempUsageDetail_20' ) end [2025-03-06 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617153', 'tblTempVendorCDR_20' ) start [2025-03-06 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617153', 'tblTempVendorCDR_20' ) end [2025-03-06 01:36:18] Production.INFO: ProcessCDR(1,14617153,1,1,2) [2025-03-06 01:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14617153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 01:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14617153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 01:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14617153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 01:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14617153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 01:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617153', 'tblTempUsageDetail_20' ) start [2025-03-06 01:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617153', 'tblTempUsageDetail_20' ) end [2025-03-06 01:36:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 01:36:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 01:36:21] Production.INFO: ==4722== Releasing lock... [2025-03-06 01:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 01:36:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-06 01:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 22:37:06 [end_date_ymd] => 2025-03-06 01:37:06 [RateCDR] => 1 ) [2025-03-06 01:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-05 22:37:06' and `end` < '2025-03-06 01:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 01:37:18] Production.INFO: count ==255 [2025-03-06 01:37:18] Production.ERROR: pbx CDR StartTime 2025-03-05 22:37:06 - End Time 2025-03-06 01:37:06 [2025-03-06 01:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617158', 'tblTempUsageDetail_20' ) start [2025-03-06 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617158', 'tblTempUsageDetail_20' ) end [2025-03-06 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617158', 'tblTempVendorCDR_20' ) start [2025-03-06 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617158', 'tblTempVendorCDR_20' ) end [2025-03-06 01:37:18] Production.INFO: ProcessCDR(1,14617158,1,1,2) [2025-03-06 01:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14617158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 01:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14617158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 01:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14617158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 01:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14617158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 01:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617158', 'tblTempUsageDetail_20' ) start [2025-03-06 01:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617158', 'tblTempUsageDetail_20' ) end [2025-03-06 01:37:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 01:37:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 01:37:22] Production.INFO: ==4793== Releasing lock... [2025-03-06 01:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 01:37:22] Production.INFO: 29.75 MB #Memory Used# [2025-03-06 01:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 22:38:06 [end_date_ymd] => 2025-03-06 01:38:06 [RateCDR] => 1 ) [2025-03-06 01: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-03-05 22:38:06' and `end` < '2025-03-06 01: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-03-06 01:38:18] Production.INFO: count ==251 [2025-03-06 01:38:18] Production.ERROR: pbx CDR StartTime 2025-03-05 22:38:06 - End Time 2025-03-06 01:38:06 [2025-03-06 01:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617163', 'tblTempUsageDetail_20' ) start [2025-03-06 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617163', 'tblTempUsageDetail_20' ) end [2025-03-06 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617163', 'tblTempVendorCDR_20' ) start [2025-03-06 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617163', 'tblTempVendorCDR_20' ) end [2025-03-06 01:38:18] Production.INFO: ProcessCDR(1,14617163,1,1,2) [2025-03-06 01:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14617163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 01:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14617163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 01:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14617163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 01:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14617163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 01:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617163', 'tblTempUsageDetail_20' ) start [2025-03-06 01:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617163', 'tblTempUsageDetail_20' ) end [2025-03-06 01:38:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 01:38:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 01:38:22] Production.INFO: ==4865== Releasing lock... [2025-03-06 01:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 01:38:22] Production.INFO: 29.25 MB #Memory Used# [2025-03-06 01:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 22:39:06 [end_date_ymd] => 2025-03-06 01:39:06 [RateCDR] => 1 ) [2025-03-06 01:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-05 22:39:06' and `end` < '2025-03-06 01:39:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 01:39:18] Production.INFO: count ==251 [2025-03-06 01:39:18] Production.ERROR: pbx CDR StartTime 2025-03-05 22:39:06 - End Time 2025-03-06 01:39:06 [2025-03-06 01:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617168', 'tblTempUsageDetail_20' ) start [2025-03-06 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617168', 'tblTempUsageDetail_20' ) end [2025-03-06 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617168', 'tblTempVendorCDR_20' ) start [2025-03-06 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617168', 'tblTempVendorCDR_20' ) end [2025-03-06 01:39:18] Production.INFO: ProcessCDR(1,14617168,1,1,2) [2025-03-06 01:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14617168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 01:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14617168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 01:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14617168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 01:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14617168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 01:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617168', 'tblTempUsageDetail_20' ) start [2025-03-06 01:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617168', 'tblTempUsageDetail_20' ) end [2025-03-06 01:39:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 01:39:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 01:39:22] Production.INFO: ==4936== Releasing lock... [2025-03-06 01:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 01:39:22] Production.INFO: 29.25 MB #Memory Used# [2025-03-06 01:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 22:40:06 [end_date_ymd] => 2025-03-06 01:40:06 [RateCDR] => 1 ) [2025-03-06 01: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-03-05 22:40:06' and `end` < '2025-03-06 01: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-03-06 01:40:18] Production.INFO: count ==253 [2025-03-06 01:40:18] Production.ERROR: pbx CDR StartTime 2025-03-05 22:40:06 - End Time 2025-03-06 01:40:06 [2025-03-06 01:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 01:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617174', 'tblTempUsageDetail_20' ) start [2025-03-06 01:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617174', 'tblTempUsageDetail_20' ) end [2025-03-06 01:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617174', 'tblTempVendorCDR_20' ) start [2025-03-06 01:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617174', 'tblTempVendorCDR_20' ) end [2025-03-06 01:40:19] Production.INFO: ProcessCDR(1,14617174,1,1,2) [2025-03-06 01:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14617174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 01:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14617174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 01:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14617174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 01:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14617174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 01:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617174', 'tblTempUsageDetail_20' ) start [2025-03-06 01:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617174', 'tblTempUsageDetail_20' ) end [2025-03-06 01:40:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 01:40:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 01:40:22] Production.INFO: ==5016== Releasing lock... [2025-03-06 01:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 01:40:22] Production.INFO: 29.25 MB #Memory Used# [2025-03-06 01:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 22:41:06 [end_date_ymd] => 2025-03-06 01:41:06 [RateCDR] => 1 ) [2025-03-06 01:41:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-05 22:41:06' and `end` < '2025-03-06 01:41:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 01:41:18] Production.INFO: count ==250 [2025-03-06 01:41:18] Production.ERROR: pbx CDR StartTime 2025-03-05 22:41:06 - End Time 2025-03-06 01:41:06 [2025-03-06 01:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617179', 'tblTempUsageDetail_20' ) start [2025-03-06 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617179', 'tblTempUsageDetail_20' ) end [2025-03-06 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617179', 'tblTempVendorCDR_20' ) start [2025-03-06 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617179', 'tblTempVendorCDR_20' ) end [2025-03-06 01:41:18] Production.INFO: ProcessCDR(1,14617179,1,1,2) [2025-03-06 01:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14617179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 01:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14617179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 01:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14617179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 01:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14617179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 01:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617179', 'tblTempUsageDetail_20' ) start [2025-03-06 01:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617179', 'tblTempUsageDetail_20' ) end [2025-03-06 01:41:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 01:41:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 01:41:22] Production.INFO: ==5088== Releasing lock... [2025-03-06 01:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 01:41:22] Production.INFO: 29.5 MB #Memory Used# [2025-03-06 01:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 22:42:05 [end_date_ymd] => 2025-03-06 01:42:05 [RateCDR] => 1 ) [2025-03-06 01:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-05 22:42:05' and `end` < '2025-03-06 01:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 01:42:17] Production.INFO: count ==248 [2025-03-06 01:42:17] Production.ERROR: pbx CDR StartTime 2025-03-05 22:42:05 - End Time 2025-03-06 01:42:05 [2025-03-06 01:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 01:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617184', 'tblTempUsageDetail_20' ) start [2025-03-06 01:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617184', 'tblTempUsageDetail_20' ) end [2025-03-06 01:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617184', 'tblTempVendorCDR_20' ) start [2025-03-06 01:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617184', 'tblTempVendorCDR_20' ) end [2025-03-06 01:42:17] Production.INFO: ProcessCDR(1,14617184,1,1,2) [2025-03-06 01:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14617184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 01:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14617184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 01:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14617184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 01:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14617184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 01:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617184', 'tblTempUsageDetail_20' ) start [2025-03-06 01:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617184', 'tblTempUsageDetail_20' ) end [2025-03-06 01:42:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 01:42:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 01:42:21] Production.INFO: ==5159== Releasing lock... [2025-03-06 01:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 01:42:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-06 01:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 22:43:06 [end_date_ymd] => 2025-03-06 01:43:06 [RateCDR] => 1 ) [2025-03-06 01:43:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-05 22:43:06' and `end` < '2025-03-06 01:43:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 01:43:18] Production.INFO: count ==246 [2025-03-06 01:43:18] Production.ERROR: pbx CDR StartTime 2025-03-05 22:43:06 - End Time 2025-03-06 01:43:06 [2025-03-06 01:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617189', 'tblTempUsageDetail_20' ) start [2025-03-06 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617189', 'tblTempUsageDetail_20' ) end [2025-03-06 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617189', 'tblTempVendorCDR_20' ) start [2025-03-06 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617189', 'tblTempVendorCDR_20' ) end [2025-03-06 01:43:18] Production.INFO: ProcessCDR(1,14617189,1,1,2) [2025-03-06 01:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14617189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 01:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14617189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 01:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14617189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 01:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14617189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 01:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617189', 'tblTempUsageDetail_20' ) start [2025-03-06 01:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617189', 'tblTempUsageDetail_20' ) end [2025-03-06 01:43:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 01:43:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 01:43:22] Production.INFO: ==5230== Releasing lock... [2025-03-06 01:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 01:43:22] Production.INFO: 29.5 MB #Memory Used# [2025-03-06 01:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 22:44:05 [end_date_ymd] => 2025-03-06 01:44:05 [RateCDR] => 1 ) [2025-03-06 01:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-05 22:44:05' and `end` < '2025-03-06 01:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 01:44:17] Production.INFO: count ==246 [2025-03-06 01:44:17] Production.ERROR: pbx CDR StartTime 2025-03-05 22:44:05 - End Time 2025-03-06 01:44:05 [2025-03-06 01:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 01:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617194', 'tblTempUsageDetail_20' ) start [2025-03-06 01:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617194', 'tblTempUsageDetail_20' ) end [2025-03-06 01:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617194', 'tblTempVendorCDR_20' ) start [2025-03-06 01:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617194', 'tblTempVendorCDR_20' ) end [2025-03-06 01:44:17] Production.INFO: ProcessCDR(1,14617194,1,1,2) [2025-03-06 01:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14617194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 01:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14617194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 01:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14617194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 01:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14617194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 01:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617194', 'tblTempUsageDetail_20' ) start [2025-03-06 01:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617194', 'tblTempUsageDetail_20' ) end [2025-03-06 01:44:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 01:44:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 01:44:21] Production.INFO: ==5302== Releasing lock... [2025-03-06 01:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 01:44:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-06 01:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 22:45:06 [end_date_ymd] => 2025-03-06 01:45:06 [RateCDR] => 1 ) [2025-03-06 01:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-05 22:45:06' and `end` < '2025-03-06 01:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 01:45:18] Production.INFO: count ==248 [2025-03-06 01:45:18] Production.ERROR: pbx CDR StartTime 2025-03-05 22:45:06 - End Time 2025-03-06 01:45:06 [2025-03-06 01:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617199', 'tblTempUsageDetail_20' ) start [2025-03-06 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617199', 'tblTempUsageDetail_20' ) end [2025-03-06 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617199', 'tblTempVendorCDR_20' ) start [2025-03-06 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617199', 'tblTempVendorCDR_20' ) end [2025-03-06 01:45:18] Production.INFO: ProcessCDR(1,14617199,1,1,2) [2025-03-06 01:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14617199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 01:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14617199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 01:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14617199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 01:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14617199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 01:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617199', 'tblTempUsageDetail_20' ) start [2025-03-06 01:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617199', 'tblTempUsageDetail_20' ) end [2025-03-06 01:45:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 01:45:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 01:45:22] Production.INFO: ==5374== Releasing lock... [2025-03-06 01:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 01:45:22] Production.INFO: 29.5 MB #Memory Used# [2025-03-06 01:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 22:46:06 [end_date_ymd] => 2025-03-06 01:46:06 [RateCDR] => 1 ) [2025-03-06 01: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-03-05 22:46:06' and `end` < '2025-03-06 01: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-03-06 01:46:18] Production.INFO: count ==247 [2025-03-06 01:46:18] Production.ERROR: pbx CDR StartTime 2025-03-05 22:46:06 - End Time 2025-03-06 01:46:06 [2025-03-06 01:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617204', 'tblTempUsageDetail_20' ) start [2025-03-06 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617204', 'tblTempUsageDetail_20' ) end [2025-03-06 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617204', 'tblTempVendorCDR_20' ) start [2025-03-06 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617204', 'tblTempVendorCDR_20' ) end [2025-03-06 01:46:18] Production.INFO: ProcessCDR(1,14617204,1,1,2) [2025-03-06 01:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14617204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 01:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14617204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 01:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14617204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 01:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14617204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 01:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617204', 'tblTempUsageDetail_20' ) start [2025-03-06 01:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617204', 'tblTempUsageDetail_20' ) end [2025-03-06 01:46:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 01:46:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 01:46:21] Production.INFO: ==5443== Releasing lock... [2025-03-06 01:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 01:46:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-06 01:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 22:47:06 [end_date_ymd] => 2025-03-06 01:47:06 [RateCDR] => 1 ) [2025-03-06 01:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-05 22:47:06' and `end` < '2025-03-06 01:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 01:47:18] Production.INFO: count ==247 [2025-03-06 01:47:18] Production.ERROR: pbx CDR StartTime 2025-03-05 22:47:06 - End Time 2025-03-06 01:47:06 [2025-03-06 01:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617209', 'tblTempUsageDetail_20' ) start [2025-03-06 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617209', 'tblTempUsageDetail_20' ) end [2025-03-06 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617209', 'tblTempVendorCDR_20' ) start [2025-03-06 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617209', 'tblTempVendorCDR_20' ) end [2025-03-06 01:47:18] Production.INFO: ProcessCDR(1,14617209,1,1,2) [2025-03-06 01:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14617209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 01:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14617209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 01:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14617209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 01:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14617209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 01:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617209', 'tblTempUsageDetail_20' ) start [2025-03-06 01:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617209', 'tblTempUsageDetail_20' ) end [2025-03-06 01:47:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 01:47:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 01:47:22] Production.INFO: ==5516== Releasing lock... [2025-03-06 01:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 01:47:22] Production.INFO: 29.5 MB #Memory Used# [2025-03-06 01:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 22:48:06 [end_date_ymd] => 2025-03-06 01:48:06 [RateCDR] => 1 ) [2025-03-06 01: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-03-05 22:48:06' and `end` < '2025-03-06 01: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-03-06 01:48:18] Production.INFO: count ==245 [2025-03-06 01:48:18] Production.ERROR: pbx CDR StartTime 2025-03-05 22:48:06 - End Time 2025-03-06 01:48:06 [2025-03-06 01:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617214', 'tblTempUsageDetail_20' ) start [2025-03-06 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617214', 'tblTempUsageDetail_20' ) end [2025-03-06 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617214', 'tblTempVendorCDR_20' ) start [2025-03-06 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617214', 'tblTempVendorCDR_20' ) end [2025-03-06 01:48:18] Production.INFO: ProcessCDR(1,14617214,1,1,2) [2025-03-06 01:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14617214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 01:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14617214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 01:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14617214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 01:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14617214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 01:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617214', 'tblTempUsageDetail_20' ) start [2025-03-06 01:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617214', 'tblTempUsageDetail_20' ) end [2025-03-06 01:48:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 01:48:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 01:48:21] Production.INFO: ==5625== Releasing lock... [2025-03-06 01:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 01:48:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-06 01:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 22:49:06 [end_date_ymd] => 2025-03-06 01:49:06 [RateCDR] => 1 ) [2025-03-06 01: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-03-05 22:49:06' and `end` < '2025-03-06 01: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-03-06 01:49:18] Production.INFO: count ==245 [2025-03-06 01:49:18] Production.ERROR: pbx CDR StartTime 2025-03-05 22:49:06 - End Time 2025-03-06 01:49:06 [2025-03-06 01:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617219', 'tblTempUsageDetail_20' ) start [2025-03-06 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617219', 'tblTempUsageDetail_20' ) end [2025-03-06 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617219', 'tblTempVendorCDR_20' ) start [2025-03-06 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617219', 'tblTempVendorCDR_20' ) end [2025-03-06 01:49:18] Production.INFO: ProcessCDR(1,14617219,1,1,2) [2025-03-06 01:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14617219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 01:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14617219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 01:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14617219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 01:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14617219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 01:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617219', 'tblTempUsageDetail_20' ) start [2025-03-06 01:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617219', 'tblTempUsageDetail_20' ) end [2025-03-06 01:49:23] Production.ERROR: pbx prc_insertCDR start [2025-03-06 01:49:23] Production.ERROR: pbx prc_insertCDR end [2025-03-06 01:49:23] Production.INFO: ==5697== Releasing lock... [2025-03-06 01:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 01:49:23] Production.INFO: 29.5 MB #Memory Used# [2025-03-06 01:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 22:50:06 [end_date_ymd] => 2025-03-06 01:50:06 [RateCDR] => 1 ) [2025-03-06 01:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-05 22:50:06' and `end` < '2025-03-06 01:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 01:50:18] Production.INFO: count ==245 [2025-03-06 01:50:18] Production.ERROR: pbx CDR StartTime 2025-03-05 22:50:06 - End Time 2025-03-06 01:50:06 [2025-03-06 01:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 01:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617225', 'tblTempUsageDetail_20' ) start [2025-03-06 01:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617225', 'tblTempUsageDetail_20' ) end [2025-03-06 01:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617225', 'tblTempVendorCDR_20' ) start [2025-03-06 01:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617225', 'tblTempVendorCDR_20' ) end [2025-03-06 01:50:18] Production.INFO: ProcessCDR(1,14617225,1,1,2) [2025-03-06 01:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14617225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 01:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14617225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 01:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14617225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 01:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14617225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 01:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617225', 'tblTempUsageDetail_20' ) start [2025-03-06 01:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617225', 'tblTempUsageDetail_20' ) end [2025-03-06 01:50:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 01:50:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 01:50:22] Production.INFO: ==5770== Releasing lock... [2025-03-06 01:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 01:50:22] Production.INFO: 29.25 MB #Memory Used# [2025-03-06 01:51:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 22:51:07 [end_date_ymd] => 2025-03-06 01:51:07 [RateCDR] => 1 ) [2025-03-06 01:51: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-03-05 22:51:07' and `end` < '2025-03-06 01:51: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-03-06 01:51:19] Production.INFO: count ==245 [2025-03-06 01:51:19] Production.ERROR: pbx CDR StartTime 2025-03-05 22:51:07 - End Time 2025-03-06 01:51:07 [2025-03-06 01:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 01:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617230', 'tblTempUsageDetail_20' ) start [2025-03-06 01:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617230', 'tblTempUsageDetail_20' ) end [2025-03-06 01:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617230', 'tblTempVendorCDR_20' ) start [2025-03-06 01:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617230', 'tblTempVendorCDR_20' ) end [2025-03-06 01:51:19] Production.INFO: ProcessCDR(1,14617230,1,1,2) [2025-03-06 01:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14617230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 01:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14617230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 01:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14617230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 01:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14617230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 01:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617230', 'tblTempUsageDetail_20' ) start [2025-03-06 01:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617230', 'tblTempUsageDetail_20' ) end [2025-03-06 01:51:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 01:51:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 01:51:22] Production.INFO: ==5843== Releasing lock... [2025-03-06 01:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 01:51:22] Production.INFO: 29.25 MB #Memory Used# [2025-03-06 01:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 22:52:06 [end_date_ymd] => 2025-03-06 01:52:06 [RateCDR] => 1 ) [2025-03-06 01: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-03-05 22:52:06' and `end` < '2025-03-06 01: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-03-06 01:52:18] Production.INFO: count ==245 [2025-03-06 01:52:18] Production.ERROR: pbx CDR StartTime 2025-03-05 22:52:06 - End Time 2025-03-06 01:52:06 [2025-03-06 01:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617235', 'tblTempUsageDetail_20' ) start [2025-03-06 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617235', 'tblTempUsageDetail_20' ) end [2025-03-06 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617235', 'tblTempVendorCDR_20' ) start [2025-03-06 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617235', 'tblTempVendorCDR_20' ) end [2025-03-06 01:52:18] Production.INFO: ProcessCDR(1,14617235,1,1,2) [2025-03-06 01:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14617235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 01:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14617235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 01:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14617235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 01:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14617235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 01:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617235', 'tblTempUsageDetail_20' ) start [2025-03-06 01:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617235', 'tblTempUsageDetail_20' ) end [2025-03-06 01:52:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 01:52:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 01:52:21] Production.INFO: ==5915== Releasing lock... [2025-03-06 01:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 01:52:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-06 01:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 22:53:05 [end_date_ymd] => 2025-03-06 01:53:05 [RateCDR] => 1 ) [2025-03-06 01:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-05 22:53:05' and `end` < '2025-03-06 01:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 01:53:17] Production.INFO: count ==245 [2025-03-06 01:53:17] Production.ERROR: pbx CDR StartTime 2025-03-05 22:53:05 - End Time 2025-03-06 01:53:05 [2025-03-06 01:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 01:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617240', 'tblTempUsageDetail_20' ) start [2025-03-06 01:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617240', 'tblTempUsageDetail_20' ) end [2025-03-06 01:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617240', 'tblTempVendorCDR_20' ) start [2025-03-06 01:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617240', 'tblTempVendorCDR_20' ) end [2025-03-06 01:53:17] Production.INFO: ProcessCDR(1,14617240,1,1,2) [2025-03-06 01:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14617240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 01:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14617240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 01:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14617240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 01:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14617240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 01:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617240', 'tblTempUsageDetail_20' ) start [2025-03-06 01:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617240', 'tblTempUsageDetail_20' ) end [2025-03-06 01:53:23] Production.ERROR: pbx prc_insertCDR start [2025-03-06 01:53:23] Production.ERROR: pbx prc_insertCDR end [2025-03-06 01:53:23] Production.INFO: ==5989== Releasing lock... [2025-03-06 01:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 01:53:23] Production.INFO: 29.25 MB #Memory Used# [2025-03-06 01:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 22:54:06 [end_date_ymd] => 2025-03-06 01:54:06 [RateCDR] => 1 ) [2025-03-06 01:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-05 22:54:06' and `end` < '2025-03-06 01:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 01:54:18] Production.INFO: count ==244 [2025-03-06 01:54:18] Production.ERROR: pbx CDR StartTime 2025-03-05 22:54:06 - End Time 2025-03-06 01:54:06 [2025-03-06 01:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617245', 'tblTempUsageDetail_20' ) start [2025-03-06 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617245', 'tblTempUsageDetail_20' ) end [2025-03-06 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617245', 'tblTempVendorCDR_20' ) start [2025-03-06 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617245', 'tblTempVendorCDR_20' ) end [2025-03-06 01:54:18] Production.INFO: ProcessCDR(1,14617245,1,1,2) [2025-03-06 01:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14617245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 01:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14617245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 01:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14617245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 01:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14617245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 01:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617245', 'tblTempUsageDetail_20' ) start [2025-03-06 01:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617245', 'tblTempUsageDetail_20' ) end [2025-03-06 01:54:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 01:54:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 01:54:22] Production.INFO: ==6059== Releasing lock... [2025-03-06 01:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 01:54:22] Production.INFO: 29.25 MB #Memory Used# [2025-03-06 01:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 22:55:05 [end_date_ymd] => 2025-03-06 01:55:05 [RateCDR] => 1 ) [2025-03-06 01:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-05 22:55:05' and `end` < '2025-03-06 01:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 01:55:17] Production.INFO: count ==244 [2025-03-06 01:55:17] Production.ERROR: pbx CDR StartTime 2025-03-05 22:55:05 - End Time 2025-03-06 01:55:05 [2025-03-06 01:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 01:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617250', 'tblTempUsageDetail_20' ) start [2025-03-06 01:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617250', 'tblTempUsageDetail_20' ) end [2025-03-06 01:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617250', 'tblTempVendorCDR_20' ) start [2025-03-06 01:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617250', 'tblTempVendorCDR_20' ) end [2025-03-06 01:55:17] Production.INFO: ProcessCDR(1,14617250,1,1,2) [2025-03-06 01:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14617250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 01:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14617250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 01:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14617250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 01:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14617250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 01:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617250', 'tblTempUsageDetail_20' ) start [2025-03-06 01:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617250', 'tblTempUsageDetail_20' ) end [2025-03-06 01:55:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 01:55:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 01:55:21] Production.INFO: ==6129== Releasing lock... [2025-03-06 01:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 01:55:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-06 01:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 22:56:06 [end_date_ymd] => 2025-03-06 01:56:06 [RateCDR] => 1 ) [2025-03-06 01: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-03-05 22:56:06' and `end` < '2025-03-06 01: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-03-06 01:56:18] Production.INFO: count ==244 [2025-03-06 01:56:18] Production.ERROR: pbx CDR StartTime 2025-03-05 22:56:06 - End Time 2025-03-06 01:56:06 [2025-03-06 01:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617255', 'tblTempUsageDetail_20' ) start [2025-03-06 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617255', 'tblTempUsageDetail_20' ) end [2025-03-06 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617255', 'tblTempVendorCDR_20' ) start [2025-03-06 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617255', 'tblTempVendorCDR_20' ) end [2025-03-06 01:56:18] Production.INFO: ProcessCDR(1,14617255,1,1,2) [2025-03-06 01:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14617255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 01:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14617255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 01:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14617255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 01:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14617255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 01:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617255', 'tblTempUsageDetail_20' ) start [2025-03-06 01:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617255', 'tblTempUsageDetail_20' ) end [2025-03-06 01:56:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 01:56:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 01:56:22] Production.INFO: ==6202== Releasing lock... [2025-03-06 01:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 01:56:22] Production.INFO: 29.25 MB #Memory Used# [2025-03-06 01:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 22:57:06 [end_date_ymd] => 2025-03-06 01:57:06 [RateCDR] => 1 ) [2025-03-06 01: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-03-05 22:57:06' and `end` < '2025-03-06 01: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-03-06 01:57:18] Production.INFO: count ==244 [2025-03-06 01:57:18] Production.ERROR: pbx CDR StartTime 2025-03-05 22:57:06 - End Time 2025-03-06 01:57:06 [2025-03-06 01:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617260', 'tblTempUsageDetail_20' ) start [2025-03-06 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617260', 'tblTempUsageDetail_20' ) end [2025-03-06 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617260', 'tblTempVendorCDR_20' ) start [2025-03-06 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617260', 'tblTempVendorCDR_20' ) end [2025-03-06 01:57:18] Production.INFO: ProcessCDR(1,14617260,1,1,2) [2025-03-06 01:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14617260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 01:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14617260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 01:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14617260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 01:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14617260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 01:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617260', 'tblTempUsageDetail_20' ) start [2025-03-06 01:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617260', 'tblTempUsageDetail_20' ) end [2025-03-06 01:57:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 01:57:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 01:57:21] Production.INFO: ==6273== Releasing lock... [2025-03-06 01:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 01:57:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-06 01:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 22:58:06 [end_date_ymd] => 2025-03-06 01:58:06 [RateCDR] => 1 ) [2025-03-06 01: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-03-05 22:58:06' and `end` < '2025-03-06 01: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-03-06 01:58:18] Production.INFO: count ==244 [2025-03-06 01:58:18] Production.ERROR: pbx CDR StartTime 2025-03-05 22:58:06 - End Time 2025-03-06 01:58:06 [2025-03-06 01:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617265', 'tblTempUsageDetail_20' ) start [2025-03-06 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617265', 'tblTempUsageDetail_20' ) end [2025-03-06 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617265', 'tblTempVendorCDR_20' ) start [2025-03-06 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617265', 'tblTempVendorCDR_20' ) end [2025-03-06 01:58:18] Production.INFO: ProcessCDR(1,14617265,1,1,2) [2025-03-06 01:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14617265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 01:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14617265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 01:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14617265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 01:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14617265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 01:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617265', 'tblTempUsageDetail_20' ) start [2025-03-06 01:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617265', 'tblTempUsageDetail_20' ) end [2025-03-06 01:58:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 01:58:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 01:58:22] Production.INFO: ==6345== Releasing lock... [2025-03-06 01:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 01:58:22] Production.INFO: 29.25 MB #Memory Used# [2025-03-06 01:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 22:59:05 [end_date_ymd] => 2025-03-06 01:59:05 [RateCDR] => 1 ) [2025-03-06 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-03-05 22:59:05' and `end` < '2025-03-06 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-03-06 01:59:17] Production.INFO: count ==244 [2025-03-06 01:59:17] Production.ERROR: pbx CDR StartTime 2025-03-05 22:59:05 - End Time 2025-03-06 01:59:05 [2025-03-06 01:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 01:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617270', 'tblTempUsageDetail_20' ) start [2025-03-06 01:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617270', 'tblTempUsageDetail_20' ) end [2025-03-06 01:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617270', 'tblTempVendorCDR_20' ) start [2025-03-06 01:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617270', 'tblTempVendorCDR_20' ) end [2025-03-06 01:59:17] Production.INFO: ProcessCDR(1,14617270,1,1,2) [2025-03-06 01:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14617270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 01:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14617270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 01:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14617270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 01:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14617270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 01:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617270', 'tblTempUsageDetail_20' ) start [2025-03-06 01:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617270', 'tblTempUsageDetail_20' ) end [2025-03-06 01:59:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 01:59:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 01:59:21] Production.INFO: ==6417== Releasing lock... [2025-03-06 01:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 01:59:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-06 02:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 23:00:07 [end_date_ymd] => 2025-03-06 02:00:07 [RateCDR] => 1 ) [2025-03-06 02:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-05 23:00:07' and `end` < '2025-03-06 02:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 02:00:19] Production.INFO: count ==254 [2025-03-06 02:00:19] Production.ERROR: pbx CDR StartTime 2025-03-05 23:00:07 - End Time 2025-03-06 02:00:07 [2025-03-06 02:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617276', 'tblTempUsageDetail_20' ) start [2025-03-06 02:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617276', 'tblTempUsageDetail_20' ) end [2025-03-06 02:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617276', 'tblTempVendorCDR_20' ) start [2025-03-06 02:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617276', 'tblTempVendorCDR_20' ) end [2025-03-06 02:00:20] Production.INFO: ProcessCDR(1,14617276,1,1,2) [2025-03-06 02:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14617276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 02:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14617276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 02:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14617276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 02:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14617276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 02:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617276', 'tblTempUsageDetail_20' ) start [2025-03-06 02:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617276', 'tblTempUsageDetail_20' ) end [2025-03-06 02:00:24] Production.ERROR: pbx prc_insertCDR start [2025-03-06 02:00:24] Production.ERROR: pbx prc_insertCDR end [2025-03-06 02:00:24] Production.INFO: ==6497== Releasing lock... [2025-03-06 02:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 02:00:24] Production.INFO: 29.25 MB #Memory Used# [2025-03-06 02:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 23:01:05 [end_date_ymd] => 2025-03-06 02:01:05 [RateCDR] => 1 ) [2025-03-06 02:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-05 23:01:05' and `end` < '2025-03-06 02:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 02:01:17] Production.INFO: count ==255 [2025-03-06 02:01:17] Production.ERROR: pbx CDR StartTime 2025-03-05 23:01:05 - End Time 2025-03-06 02:01:05 [2025-03-06 02:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 02:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617281', 'tblTempUsageDetail_20' ) start [2025-03-06 02:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617281', 'tblTempUsageDetail_20' ) end [2025-03-06 02:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617281', 'tblTempVendorCDR_20' ) start [2025-03-06 02:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617281', 'tblTempVendorCDR_20' ) end [2025-03-06 02:01:17] Production.INFO: ProcessCDR(1,14617281,1,1,2) [2025-03-06 02:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14617281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 02:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14617281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 02:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14617281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 02:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14617281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 02:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617281', 'tblTempUsageDetail_20' ) start [2025-03-06 02:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617281', 'tblTempUsageDetail_20' ) end [2025-03-06 02:01:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 02:01:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 02:01:21] Production.INFO: ==6667== Releasing lock... [2025-03-06 02:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 02:01:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-06 02:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 23:02:06 [end_date_ymd] => 2025-03-06 02:02:06 [RateCDR] => 1 ) [2025-03-06 02: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-03-05 23:02:06' and `end` < '2025-03-06 02: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-03-06 02:02:18] Production.INFO: count ==258 [2025-03-06 02:02:18] Production.ERROR: pbx CDR StartTime 2025-03-05 23:02:06 - End Time 2025-03-06 02:02:06 [2025-03-06 02:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617286', 'tblTempUsageDetail_20' ) start [2025-03-06 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617286', 'tblTempUsageDetail_20' ) end [2025-03-06 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617286', 'tblTempVendorCDR_20' ) start [2025-03-06 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617286', 'tblTempVendorCDR_20' ) end [2025-03-06 02:02:18] Production.INFO: ProcessCDR(1,14617286,1,1,2) [2025-03-06 02:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14617286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 02:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14617286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 02:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14617286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 02:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14617286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 02:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617286', 'tblTempUsageDetail_20' ) start [2025-03-06 02:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617286', 'tblTempUsageDetail_20' ) end [2025-03-06 02:02:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 02:02:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 02:02:22] Production.INFO: ==6737== Releasing lock... [2025-03-06 02:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 02:02:22] Production.INFO: 29.5 MB #Memory Used# [2025-03-06 02:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 23:03:05 [end_date_ymd] => 2025-03-06 02:03:05 [RateCDR] => 1 ) [2025-03-06 02:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-05 23:03:05' and `end` < '2025-03-06 02:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 02:03:17] Production.INFO: count ==258 [2025-03-06 02:03:17] Production.ERROR: pbx CDR StartTime 2025-03-05 23:03:05 - End Time 2025-03-06 02:03:05 [2025-03-06 02:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 02:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617291', 'tblTempUsageDetail_20' ) start [2025-03-06 02:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617291', 'tblTempUsageDetail_20' ) end [2025-03-06 02:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617291', 'tblTempVendorCDR_20' ) start [2025-03-06 02:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617291', 'tblTempVendorCDR_20' ) end [2025-03-06 02:03:17] Production.INFO: ProcessCDR(1,14617291,1,1,2) [2025-03-06 02:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14617291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 02:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14617291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 02:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14617291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 02:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14617291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 02:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617291', 'tblTempUsageDetail_20' ) start [2025-03-06 02:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617291', 'tblTempUsageDetail_20' ) end [2025-03-06 02:03:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 02:03:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 02:03:21] Production.INFO: ==6806== Releasing lock... [2025-03-06 02:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 02:03:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-06 02:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 23:04:06 [end_date_ymd] => 2025-03-06 02:04:06 [RateCDR] => 1 ) [2025-03-06 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-03-05 23:04:06' and `end` < '2025-03-06 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-03-06 02:04:18] Production.INFO: count ==257 [2025-03-06 02:04:18] Production.ERROR: pbx CDR StartTime 2025-03-05 23:04:06 - End Time 2025-03-06 02:04:06 [2025-03-06 02:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617296', 'tblTempUsageDetail_20' ) start [2025-03-06 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617296', 'tblTempUsageDetail_20' ) end [2025-03-06 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617296', 'tblTempVendorCDR_20' ) start [2025-03-06 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617296', 'tblTempVendorCDR_20' ) end [2025-03-06 02:04:18] Production.INFO: ProcessCDR(1,14617296,1,1,2) [2025-03-06 02:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14617296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 02:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14617296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 02:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14617296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 02:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14617296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 02:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617296', 'tblTempUsageDetail_20' ) start [2025-03-06 02:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617296', 'tblTempUsageDetail_20' ) end [2025-03-06 02:04:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 02:04:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 02:04:22] Production.INFO: ==6917== Releasing lock... [2025-03-06 02:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 02:04:22] Production.INFO: 29.5 MB #Memory Used# [2025-03-06 02:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 23:05:05 [end_date_ymd] => 2025-03-06 02:05:05 [RateCDR] => 1 ) [2025-03-06 02: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-03-05 23:05:05' and `end` < '2025-03-06 02: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-03-06 02:05:17] Production.INFO: count ==256 [2025-03-06 02:05:17] Production.ERROR: pbx CDR StartTime 2025-03-05 23:05:05 - End Time 2025-03-06 02:05:05 [2025-03-06 02:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 02:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617301', 'tblTempUsageDetail_20' ) start [2025-03-06 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617301', 'tblTempUsageDetail_20' ) end [2025-03-06 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617301', 'tblTempVendorCDR_20' ) start [2025-03-06 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617301', 'tblTempVendorCDR_20' ) end [2025-03-06 02:05:18] Production.INFO: ProcessCDR(1,14617301,1,1,2) [2025-03-06 02:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14617301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 02:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14617301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 02:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14617301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 02:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14617301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 02:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617301', 'tblTempUsageDetail_20' ) start [2025-03-06 02:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617301', 'tblTempUsageDetail_20' ) end [2025-03-06 02:05:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 02:05:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 02:05:21] Production.INFO: ==6990== Releasing lock... [2025-03-06 02:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 02:05:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-06 02:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 23:06:06 [end_date_ymd] => 2025-03-06 02:06:06 [RateCDR] => 1 ) [2025-03-06 02: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-03-05 23:06:06' and `end` < '2025-03-06 02: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-03-06 02:06:18] Production.INFO: count ==255 [2025-03-06 02:06:18] Production.ERROR: pbx CDR StartTime 2025-03-05 23:06:06 - End Time 2025-03-06 02:06:06 [2025-03-06 02:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617306', 'tblTempUsageDetail_20' ) start [2025-03-06 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617306', 'tblTempUsageDetail_20' ) end [2025-03-06 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617306', 'tblTempVendorCDR_20' ) start [2025-03-06 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617306', 'tblTempVendorCDR_20' ) end [2025-03-06 02:06:18] Production.INFO: ProcessCDR(1,14617306,1,1,2) [2025-03-06 02:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14617306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 02:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14617306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 02:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14617306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 02:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14617306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 02:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617306', 'tblTempUsageDetail_20' ) start [2025-03-06 02:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617306', 'tblTempUsageDetail_20' ) end [2025-03-06 02:06:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 02:06:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 02:06:22] Production.INFO: ==7064== Releasing lock... [2025-03-06 02:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 02:06:22] Production.INFO: 29.25 MB #Memory Used# [2025-03-06 02:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 23:07:06 [end_date_ymd] => 2025-03-06 02:07:06 [RateCDR] => 1 ) [2025-03-06 02: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-03-05 23:07:06' and `end` < '2025-03-06 02: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-03-06 02:07:18] Production.INFO: count ==252 [2025-03-06 02:07:18] Production.ERROR: pbx CDR StartTime 2025-03-05 23:07:06 - End Time 2025-03-06 02:07:06 [2025-03-06 02:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617311', 'tblTempUsageDetail_20' ) start [2025-03-06 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617311', 'tblTempUsageDetail_20' ) end [2025-03-06 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617311', 'tblTempVendorCDR_20' ) start [2025-03-06 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617311', 'tblTempVendorCDR_20' ) end [2025-03-06 02:07:18] Production.INFO: ProcessCDR(1,14617311,1,1,2) [2025-03-06 02:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14617311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 02:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14617311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 02:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14617311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 02:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14617311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 02:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617311', 'tblTempUsageDetail_20' ) start [2025-03-06 02:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617311', 'tblTempUsageDetail_20' ) end [2025-03-06 02:07:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 02:07:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 02:07:22] Production.INFO: ==7134== Releasing lock... [2025-03-06 02:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 02:07:22] Production.INFO: 29.25 MB #Memory Used# [2025-03-06 02:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 23:08:06 [end_date_ymd] => 2025-03-06 02:08:06 [RateCDR] => 1 ) [2025-03-06 02: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-03-05 23:08:06' and `end` < '2025-03-06 02: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-03-06 02:08:18] Production.INFO: count ==251 [2025-03-06 02:08:18] Production.ERROR: pbx CDR StartTime 2025-03-05 23:08:06 - End Time 2025-03-06 02:08:06 [2025-03-06 02:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617316', 'tblTempUsageDetail_20' ) start [2025-03-06 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617316', 'tblTempUsageDetail_20' ) end [2025-03-06 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617316', 'tblTempVendorCDR_20' ) start [2025-03-06 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617316', 'tblTempVendorCDR_20' ) end [2025-03-06 02:08:18] Production.INFO: ProcessCDR(1,14617316,1,1,2) [2025-03-06 02:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14617316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 02:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14617316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 02:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14617316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 02:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14617316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 02:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617316', 'tblTempUsageDetail_20' ) start [2025-03-06 02:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617316', 'tblTempUsageDetail_20' ) end [2025-03-06 02:08:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 02:08:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 02:08:21] Production.INFO: ==7205== Releasing lock... [2025-03-06 02:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 02:08:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-06 02:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 23:09:05 [end_date_ymd] => 2025-03-06 02:09:05 [RateCDR] => 1 ) [2025-03-06 02:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-05 23:09:05' and `end` < '2025-03-06 02:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 02:09:17] Production.INFO: count ==251 [2025-03-06 02:09:17] Production.ERROR: pbx CDR StartTime 2025-03-05 23:09:05 - End Time 2025-03-06 02:09:05 [2025-03-06 02:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 02:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617321', 'tblTempUsageDetail_20' ) start [2025-03-06 02:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617321', 'tblTempUsageDetail_20' ) end [2025-03-06 02:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617321', 'tblTempVendorCDR_20' ) start [2025-03-06 02:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617321', 'tblTempVendorCDR_20' ) end [2025-03-06 02:09:17] Production.INFO: ProcessCDR(1,14617321,1,1,2) [2025-03-06 02:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14617321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 02:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14617321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 02:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14617321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 02:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14617321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 02:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617321', 'tblTempUsageDetail_20' ) start [2025-03-06 02:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617321', 'tblTempUsageDetail_20' ) end [2025-03-06 02:09:20] Production.ERROR: pbx prc_insertCDR start [2025-03-06 02:09:20] Production.ERROR: pbx prc_insertCDR end [2025-03-06 02:09:20] Production.INFO: ==7275== Releasing lock... [2025-03-06 02:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 02:09:20] Production.INFO: 29.5 MB #Memory Used# [2025-03-06 02:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 23:10:07 [end_date_ymd] => 2025-03-06 02:10:07 [RateCDR] => 1 ) [2025-03-06 02:10: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-03-05 23:10:07' and `end` < '2025-03-06 02:10: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-03-06 02:10:19] Production.INFO: count ==261 [2025-03-06 02:10:19] Production.ERROR: pbx CDR StartTime 2025-03-05 23:10:07 - End Time 2025-03-06 02:10:07 [2025-03-06 02:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 02:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617327', 'tblTempUsageDetail_20' ) start [2025-03-06 02:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617327', 'tblTempUsageDetail_20' ) end [2025-03-06 02:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617327', 'tblTempVendorCDR_20' ) start [2025-03-06 02:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617327', 'tblTempVendorCDR_20' ) end [2025-03-06 02:10:19] Production.INFO: ProcessCDR(1,14617327,1,1,2) [2025-03-06 02:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14617327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 02:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14617327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 02:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14617327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 02:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14617327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 02:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617327', 'tblTempUsageDetail_20' ) start [2025-03-06 02:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617327', 'tblTempUsageDetail_20' ) end [2025-03-06 02:10:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 02:10:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 02:10:22] Production.INFO: ==7350== Releasing lock... [2025-03-06 02:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 02:10:22] Production.INFO: 29.5 MB #Memory Used# [2025-03-06 02:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 23:11:05 [end_date_ymd] => 2025-03-06 02:11:05 [RateCDR] => 1 ) [2025-03-06 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-03-05 23:11:05' and `end` < '2025-03-06 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-03-06 02:11:17] Production.INFO: count ==261 [2025-03-06 02:11:17] Production.ERROR: pbx CDR StartTime 2025-03-05 23:11:05 - End Time 2025-03-06 02:11:05 [2025-03-06 02:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 02:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617332', 'tblTempUsageDetail_20' ) start [2025-03-06 02:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617332', 'tblTempUsageDetail_20' ) end [2025-03-06 02:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617332', 'tblTempVendorCDR_20' ) start [2025-03-06 02:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617332', 'tblTempVendorCDR_20' ) end [2025-03-06 02:11:17] Production.INFO: ProcessCDR(1,14617332,1,1,2) [2025-03-06 02:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14617332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 02:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14617332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 02:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14617332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 02:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14617332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 02:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617332', 'tblTempUsageDetail_20' ) start [2025-03-06 02:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617332', 'tblTempUsageDetail_20' ) end [2025-03-06 02:11:20] Production.ERROR: pbx prc_insertCDR start [2025-03-06 02:11:20] Production.ERROR: pbx prc_insertCDR end [2025-03-06 02:11:20] Production.INFO: ==7423== Releasing lock... [2025-03-06 02:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 02:11:20] Production.INFO: 29.5 MB #Memory Used# [2025-03-06 02:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 23:12:05 [end_date_ymd] => 2025-03-06 02:12:05 [RateCDR] => 1 ) [2025-03-06 02:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-05 23:12:05' and `end` < '2025-03-06 02:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 02:12:17] Production.INFO: count ==261 [2025-03-06 02:12:17] Production.ERROR: pbx CDR StartTime 2025-03-05 23:12:05 - End Time 2025-03-06 02:12:05 [2025-03-06 02:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 02:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617337', 'tblTempUsageDetail_20' ) start [2025-03-06 02:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617337', 'tblTempUsageDetail_20' ) end [2025-03-06 02:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617337', 'tblTempVendorCDR_20' ) start [2025-03-06 02:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617337', 'tblTempVendorCDR_20' ) end [2025-03-06 02:12:17] Production.INFO: ProcessCDR(1,14617337,1,1,2) [2025-03-06 02:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14617337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 02:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14617337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 02:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14617337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 02:12:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14617337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 02:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617337', 'tblTempUsageDetail_20' ) start [2025-03-06 02:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617337', 'tblTempUsageDetail_20' ) end [2025-03-06 02:12:20] Production.ERROR: pbx prc_insertCDR start [2025-03-06 02:12:20] Production.ERROR: pbx prc_insertCDR end [2025-03-06 02:12:20] Production.INFO: ==7496== Releasing lock... [2025-03-06 02:12:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 02:12:20] Production.INFO: 29.5 MB #Memory Used# [2025-03-06 02:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 23:13:05 [end_date_ymd] => 2025-03-06 02:13:05 [RateCDR] => 1 ) [2025-03-06 02:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-05 23:13:05' and `end` < '2025-03-06 02:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 02:13:17] Production.INFO: count ==260 [2025-03-06 02:13:17] Production.ERROR: pbx CDR StartTime 2025-03-05 23:13:05 - End Time 2025-03-06 02:13:05 [2025-03-06 02:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 02:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617342', 'tblTempUsageDetail_20' ) start [2025-03-06 02:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617342', 'tblTempUsageDetail_20' ) end [2025-03-06 02:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617342', 'tblTempVendorCDR_20' ) start [2025-03-06 02:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617342', 'tblTempVendorCDR_20' ) end [2025-03-06 02:13:17] Production.INFO: ProcessCDR(1,14617342,1,1,2) [2025-03-06 02:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14617342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 02:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14617342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 02:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14617342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 02:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14617342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 02:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617342', 'tblTempUsageDetail_20' ) start [2025-03-06 02:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617342', 'tblTempUsageDetail_20' ) end [2025-03-06 02:13:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 02:13:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 02:13:21] Production.INFO: ==7566== Releasing lock... [2025-03-06 02:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 02:13:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-06 02:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 23:14:05 [end_date_ymd] => 2025-03-06 02:14:05 [RateCDR] => 1 ) [2025-03-06 02: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-03-05 23:14:05' and `end` < '2025-03-06 02: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-03-06 02:14:17] Production.INFO: count ==259 [2025-03-06 02:14:18] Production.ERROR: pbx CDR StartTime 2025-03-05 23:14:05 - End Time 2025-03-06 02:14:05 [2025-03-06 02:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617347', 'tblTempUsageDetail_20' ) start [2025-03-06 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617347', 'tblTempUsageDetail_20' ) end [2025-03-06 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617347', 'tblTempVendorCDR_20' ) start [2025-03-06 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617347', 'tblTempVendorCDR_20' ) end [2025-03-06 02:14:18] Production.INFO: ProcessCDR(1,14617347,1,1,2) [2025-03-06 02:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14617347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 02:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14617347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 02:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14617347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 02:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14617347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 02:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617347', 'tblTempUsageDetail_20' ) start [2025-03-06 02:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617347', 'tblTempUsageDetail_20' ) end [2025-03-06 02:14:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 02:14:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 02:14:21] Production.INFO: ==7640== Releasing lock... [2025-03-06 02:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 02:14:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-06 02:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 23:15:06 [end_date_ymd] => 2025-03-06 02:15:06 [RateCDR] => 1 ) [2025-03-06 02: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-03-05 23:15:06' and `end` < '2025-03-06 02: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-03-06 02:15:18] Production.INFO: count ==259 [2025-03-06 02:15:18] Production.ERROR: pbx CDR StartTime 2025-03-05 23:15:06 - End Time 2025-03-06 02:15:06 [2025-03-06 02:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617352', 'tblTempUsageDetail_20' ) start [2025-03-06 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617352', 'tblTempUsageDetail_20' ) end [2025-03-06 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617352', 'tblTempVendorCDR_20' ) start [2025-03-06 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617352', 'tblTempVendorCDR_20' ) end [2025-03-06 02:15:18] Production.INFO: ProcessCDR(1,14617352,1,1,2) [2025-03-06 02:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14617352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 02:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14617352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 02:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14617352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 02:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14617352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 02:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617352', 'tblTempUsageDetail_20' ) start [2025-03-06 02:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617352', 'tblTempUsageDetail_20' ) end [2025-03-06 02:15:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 02:15:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 02:15:21] Production.INFO: ==7711== Releasing lock... [2025-03-06 02:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 02:15:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-06 02:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 23:16:05 [end_date_ymd] => 2025-03-06 02:16:05 [RateCDR] => 1 ) [2025-03-06 02:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-05 23:16:05' and `end` < '2025-03-06 02:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 02:16:17] Production.INFO: count ==259 [2025-03-06 02:16:17] Production.ERROR: pbx CDR StartTime 2025-03-05 23:16:05 - End Time 2025-03-06 02:16:05 [2025-03-06 02:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 02:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617357', 'tblTempUsageDetail_20' ) start [2025-03-06 02:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617357', 'tblTempUsageDetail_20' ) end [2025-03-06 02:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617357', 'tblTempVendorCDR_20' ) start [2025-03-06 02:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617357', 'tblTempVendorCDR_20' ) end [2025-03-06 02:16:17] Production.INFO: ProcessCDR(1,14617357,1,1,2) [2025-03-06 02:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14617357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 02:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14617357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 02:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14617357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 02:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14617357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 02:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617357', 'tblTempUsageDetail_20' ) start [2025-03-06 02:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617357', 'tblTempUsageDetail_20' ) end [2025-03-06 02:16:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 02:16:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 02:16:21] Production.INFO: ==7782== Releasing lock... [2025-03-06 02:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 02:16:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-06 02:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 23:17:06 [end_date_ymd] => 2025-03-06 02:17:06 [RateCDR] => 1 ) [2025-03-06 02: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-03-05 23:17:06' and `end` < '2025-03-06 02: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-03-06 02:17:18] Production.INFO: count ==259 [2025-03-06 02:17:18] Production.ERROR: pbx CDR StartTime 2025-03-05 23:17:06 - End Time 2025-03-06 02:17:06 [2025-03-06 02:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 02:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617362', 'tblTempUsageDetail_20' ) start [2025-03-06 02:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617362', 'tblTempUsageDetail_20' ) end [2025-03-06 02:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617362', 'tblTempVendorCDR_20' ) start [2025-03-06 02:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617362', 'tblTempVendorCDR_20' ) end [2025-03-06 02:17:18] Production.INFO: ProcessCDR(1,14617362,1,1,2) [2025-03-06 02:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14617362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 02:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14617362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 02:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14617362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 02:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14617362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 02:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617362', 'tblTempUsageDetail_20' ) start [2025-03-06 02:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617362', 'tblTempUsageDetail_20' ) end [2025-03-06 02:17:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 02:17:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 02:17:21] Production.INFO: ==7853== Releasing lock... [2025-03-06 02:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 02:17:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-06 02:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 23:18:05 [end_date_ymd] => 2025-03-06 02:18:05 [RateCDR] => 1 ) [2025-03-06 02: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-03-05 23:18:05' and `end` < '2025-03-06 02: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-03-06 02:18:17] Production.INFO: count ==258 [2025-03-06 02:18:17] Production.ERROR: pbx CDR StartTime 2025-03-05 23:18:05 - End Time 2025-03-06 02:18:05 [2025-03-06 02:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 02:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617367', 'tblTempUsageDetail_20' ) start [2025-03-06 02:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617367', 'tblTempUsageDetail_20' ) end [2025-03-06 02:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617367', 'tblTempVendorCDR_20' ) start [2025-03-06 02:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617367', 'tblTempVendorCDR_20' ) end [2025-03-06 02:18:17] Production.INFO: ProcessCDR(1,14617367,1,1,2) [2025-03-06 02:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14617367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 02:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14617367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 02:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14617367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 02:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14617367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 02:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617367', 'tblTempUsageDetail_20' ) start [2025-03-06 02:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617367', 'tblTempUsageDetail_20' ) end [2025-03-06 02:18:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 02:18:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 02:18:21] Production.INFO: ==7923== Releasing lock... [2025-03-06 02:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 02:18:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-06 02:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 23:19:05 [end_date_ymd] => 2025-03-06 02:19:05 [RateCDR] => 1 ) [2025-03-06 02:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-05 23:19:05' and `end` < '2025-03-06 02:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 02:19:17] Production.INFO: count ==257 [2025-03-06 02:19:17] Production.ERROR: pbx CDR StartTime 2025-03-05 23:19:05 - End Time 2025-03-06 02:19:05 [2025-03-06 02:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 02:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617372', 'tblTempUsageDetail_20' ) start [2025-03-06 02:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617372', 'tblTempUsageDetail_20' ) end [2025-03-06 02:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617372', 'tblTempVendorCDR_20' ) start [2025-03-06 02:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617372', 'tblTempVendorCDR_20' ) end [2025-03-06 02:19:17] Production.INFO: ProcessCDR(1,14617372,1,1,2) [2025-03-06 02:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14617372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 02:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14617372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 02:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14617372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 02:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14617372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 02:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617372', 'tblTempUsageDetail_20' ) start [2025-03-06 02:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617372', 'tblTempUsageDetail_20' ) end [2025-03-06 02:19:20] Production.ERROR: pbx prc_insertCDR start [2025-03-06 02:19:20] Production.ERROR: pbx prc_insertCDR end [2025-03-06 02:19:20] Production.INFO: ==8040== Releasing lock... [2025-03-06 02:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 02:19:20] Production.INFO: 29.5 MB #Memory Used# [2025-03-06 02:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 23:20:06 [end_date_ymd] => 2025-03-06 02:20:06 [RateCDR] => 1 ) [2025-03-06 02:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-05 23:20:06' and `end` < '2025-03-06 02:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 02:20:18] Production.INFO: count ==265 [2025-03-06 02:20:18] Production.ERROR: pbx CDR StartTime 2025-03-05 23:20:06 - End Time 2025-03-06 02:20:06 [2025-03-06 02:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617378', 'tblTempUsageDetail_20' ) start [2025-03-06 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617378', 'tblTempUsageDetail_20' ) end [2025-03-06 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617378', 'tblTempVendorCDR_20' ) start [2025-03-06 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617378', 'tblTempVendorCDR_20' ) end [2025-03-06 02:20:18] Production.INFO: ProcessCDR(1,14617378,1,1,2) [2025-03-06 02:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14617378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 02:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14617378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 02:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14617378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 02:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14617378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 02:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617378', 'tblTempUsageDetail_20' ) start [2025-03-06 02:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617378', 'tblTempUsageDetail_20' ) end [2025-03-06 02:20:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 02:20:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 02:20:21] Production.INFO: ==8118== Releasing lock... [2025-03-06 02:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 02:20:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-06 02:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 23:21:06 [end_date_ymd] => 2025-03-06 02:21:06 [RateCDR] => 1 ) [2025-03-06 02: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-03-05 23:21:06' and `end` < '2025-03-06 02: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-03-06 02:21:18] Production.INFO: count ==265 [2025-03-06 02:21:18] Production.ERROR: pbx CDR StartTime 2025-03-05 23:21:06 - End Time 2025-03-06 02:21:06 [2025-03-06 02:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617383', 'tblTempUsageDetail_20' ) start [2025-03-06 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617383', 'tblTempUsageDetail_20' ) end [2025-03-06 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617383', 'tblTempVendorCDR_20' ) start [2025-03-06 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617383', 'tblTempVendorCDR_20' ) end [2025-03-06 02:21:18] Production.INFO: ProcessCDR(1,14617383,1,1,2) [2025-03-06 02:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14617383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 02:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14617383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 02:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14617383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 02:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14617383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 02:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617383', 'tblTempUsageDetail_20' ) start [2025-03-06 02:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617383', 'tblTempUsageDetail_20' ) end [2025-03-06 02:21:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 02:21:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 02:21:21] Production.INFO: ==8193== Releasing lock... [2025-03-06 02:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 02:21:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-06 02:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 23:22:06 [end_date_ymd] => 2025-03-06 02:22:06 [RateCDR] => 1 ) [2025-03-06 02:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-05 23:22:06' and `end` < '2025-03-06 02:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 02:22:18] Production.INFO: count ==265 [2025-03-06 02:22:18] Production.ERROR: pbx CDR StartTime 2025-03-05 23:22:06 - End Time 2025-03-06 02:22:06 [2025-03-06 02:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617388', 'tblTempUsageDetail_20' ) start [2025-03-06 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617388', 'tblTempUsageDetail_20' ) end [2025-03-06 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617388', 'tblTempVendorCDR_20' ) start [2025-03-06 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617388', 'tblTempVendorCDR_20' ) end [2025-03-06 02:22:18] Production.INFO: ProcessCDR(1,14617388,1,1,2) [2025-03-06 02:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14617388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 02:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14617388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 02:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14617388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 02:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14617388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 02:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617388', 'tblTempUsageDetail_20' ) start [2025-03-06 02:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617388', 'tblTempUsageDetail_20' ) end [2025-03-06 02:22:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 02:22:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 02:22:21] Production.INFO: ==8262== Releasing lock... [2025-03-06 02:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 02:22:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-06 02:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 23:23:06 [end_date_ymd] => 2025-03-06 02:23:06 [RateCDR] => 1 ) [2025-03-06 02:23:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-05 23:23:06' and `end` < '2025-03-06 02:23:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 02:23:18] Production.INFO: count ==262 [2025-03-06 02:23:18] Production.ERROR: pbx CDR StartTime 2025-03-05 23:23:06 - End Time 2025-03-06 02:23:06 [2025-03-06 02:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 02:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617393', 'tblTempUsageDetail_20' ) start [2025-03-06 02:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617393', 'tblTempUsageDetail_20' ) end [2025-03-06 02:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617393', 'tblTempVendorCDR_20' ) start [2025-03-06 02:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617393', 'tblTempVendorCDR_20' ) end [2025-03-06 02:23:18] Production.INFO: ProcessCDR(1,14617393,1,1,2) [2025-03-06 02:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14617393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 02:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14617393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 02:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14617393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 02:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14617393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 02:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617393', 'tblTempUsageDetail_20' ) start [2025-03-06 02:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617393', 'tblTempUsageDetail_20' ) end [2025-03-06 02:23:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 02:23:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 02:23:21] Production.INFO: ==8333== Releasing lock... [2025-03-06 02:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 02:23:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-06 02:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 23:24:05 [end_date_ymd] => 2025-03-06 02:24:05 [RateCDR] => 1 ) [2025-03-06 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-03-05 23:24:05' and `end` < '2025-03-06 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-03-06 02:24:17] Production.INFO: count ==262 [2025-03-06 02:24:17] Production.ERROR: pbx CDR StartTime 2025-03-05 23:24:05 - End Time 2025-03-06 02:24:05 [2025-03-06 02:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 02:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617398', 'tblTempUsageDetail_20' ) start [2025-03-06 02:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617398', 'tblTempUsageDetail_20' ) end [2025-03-06 02:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617398', 'tblTempVendorCDR_20' ) start [2025-03-06 02:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617398', 'tblTempVendorCDR_20' ) end [2025-03-06 02:24:17] Production.INFO: ProcessCDR(1,14617398,1,1,2) [2025-03-06 02:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14617398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 02:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14617398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 02:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14617398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 02:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14617398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 02:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617398', 'tblTempUsageDetail_20' ) start [2025-03-06 02:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617398', 'tblTempUsageDetail_20' ) end [2025-03-06 02:24:20] Production.ERROR: pbx prc_insertCDR start [2025-03-06 02:24:20] Production.ERROR: pbx prc_insertCDR end [2025-03-06 02:24:20] Production.INFO: ==8405== Releasing lock... [2025-03-06 02:24:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 02:24:20] Production.INFO: 29.5 MB #Memory Used# [2025-03-06 02:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 23:25:06 [end_date_ymd] => 2025-03-06 02:25:06 [RateCDR] => 1 ) [2025-03-06 02: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-03-05 23:25:06' and `end` < '2025-03-06 02: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-03-06 02:25:18] Production.INFO: count ==259 [2025-03-06 02:25:18] Production.ERROR: pbx CDR StartTime 2025-03-05 23:25:06 - End Time 2025-03-06 02:25:06 [2025-03-06 02:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617403', 'tblTempUsageDetail_20' ) start [2025-03-06 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617403', 'tblTempUsageDetail_20' ) end [2025-03-06 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617403', 'tblTempVendorCDR_20' ) start [2025-03-06 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617403', 'tblTempVendorCDR_20' ) end [2025-03-06 02:25:18] Production.INFO: ProcessCDR(1,14617403,1,1,2) [2025-03-06 02:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14617403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 02:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14617403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 02:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14617403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 02:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14617403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 02:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617403', 'tblTempUsageDetail_20' ) start [2025-03-06 02:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617403', 'tblTempUsageDetail_20' ) end [2025-03-06 02:25:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 02:25:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 02:25:21] Production.INFO: ==8477== Releasing lock... [2025-03-06 02:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 02:25:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-06 02:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 23:26:05 [end_date_ymd] => 2025-03-06 02:26:05 [RateCDR] => 1 ) [2025-03-06 02:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-05 23:26:05' and `end` < '2025-03-06 02:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 02:26:17] Production.INFO: count ==259 [2025-03-06 02:26:17] Production.ERROR: pbx CDR StartTime 2025-03-05 23:26:05 - End Time 2025-03-06 02:26:05 [2025-03-06 02:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 02:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617408', 'tblTempUsageDetail_20' ) start [2025-03-06 02:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617408', 'tblTempUsageDetail_20' ) end [2025-03-06 02:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617408', 'tblTempVendorCDR_20' ) start [2025-03-06 02:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617408', 'tblTempVendorCDR_20' ) end [2025-03-06 02:26:17] Production.INFO: ProcessCDR(1,14617408,1,1,2) [2025-03-06 02:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14617408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 02:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14617408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 02:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14617408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 02:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14617408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 02:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617408', 'tblTempUsageDetail_20' ) start [2025-03-06 02:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617408', 'tblTempUsageDetail_20' ) end [2025-03-06 02:26:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 02:26:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 02:26:21] Production.INFO: ==8560== Releasing lock... [2025-03-06 02:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 02:26:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-06 02:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 23:27:06 [end_date_ymd] => 2025-03-06 02:27:06 [RateCDR] => 1 ) [2025-03-06 02:27:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-05 23:27:06' and `end` < '2025-03-06 02:27:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 02:27:18] Production.INFO: count ==256 [2025-03-06 02:27:18] Production.ERROR: pbx CDR StartTime 2025-03-05 23:27:06 - End Time 2025-03-06 02:27:06 [2025-03-06 02:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617413', 'tblTempUsageDetail_20' ) start [2025-03-06 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617413', 'tblTempUsageDetail_20' ) end [2025-03-06 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617413', 'tblTempVendorCDR_20' ) start [2025-03-06 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617413', 'tblTempVendorCDR_20' ) end [2025-03-06 02:27:18] Production.INFO: ProcessCDR(1,14617413,1,1,2) [2025-03-06 02:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14617413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 02:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14617413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 02:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14617413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 02:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14617413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 02:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617413', 'tblTempUsageDetail_20' ) start [2025-03-06 02:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617413', 'tblTempUsageDetail_20' ) end [2025-03-06 02:27:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 02:27:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 02:27:21] Production.INFO: ==8655== Releasing lock... [2025-03-06 02:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 02:27:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-06 02:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 23:28:05 [end_date_ymd] => 2025-03-06 02:28:05 [RateCDR] => 1 ) [2025-03-06 02:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-05 23:28:05' and `end` < '2025-03-06 02:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 02:28:17] Production.INFO: count ==257 [2025-03-06 02:28:17] Production.ERROR: pbx CDR StartTime 2025-03-05 23:28:05 - End Time 2025-03-06 02:28:05 [2025-03-06 02:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 02:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617418', 'tblTempUsageDetail_20' ) start [2025-03-06 02:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617418', 'tblTempUsageDetail_20' ) end [2025-03-06 02:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617418', 'tblTempVendorCDR_20' ) start [2025-03-06 02:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617418', 'tblTempVendorCDR_20' ) end [2025-03-06 02:28:17] Production.INFO: ProcessCDR(1,14617418,1,1,2) [2025-03-06 02:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14617418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 02:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14617418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 02:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14617418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 02:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14617418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 02:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617418', 'tblTempUsageDetail_20' ) start [2025-03-06 02:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617418', 'tblTempUsageDetail_20' ) end [2025-03-06 02:28:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 02:28:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 02:28:21] Production.INFO: ==8732== Releasing lock... [2025-03-06 02:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 02:28:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-06 02:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 23:29:05 [end_date_ymd] => 2025-03-06 02:29:05 [RateCDR] => 1 ) [2025-03-06 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-03-05 23:29:05' and `end` < '2025-03-06 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-03-06 02:29:17] Production.INFO: count ==257 [2025-03-06 02:29:17] Production.ERROR: pbx CDR StartTime 2025-03-05 23:29:05 - End Time 2025-03-06 02:29:05 [2025-03-06 02:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 02:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617423', 'tblTempUsageDetail_20' ) start [2025-03-06 02:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617423', 'tblTempUsageDetail_20' ) end [2025-03-06 02:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617423', 'tblTempVendorCDR_20' ) start [2025-03-06 02:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617423', 'tblTempVendorCDR_20' ) end [2025-03-06 02:29:17] Production.INFO: ProcessCDR(1,14617423,1,1,2) [2025-03-06 02:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14617423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 02:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14617423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 02:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14617423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 02:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14617423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 02:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617423', 'tblTempUsageDetail_20' ) start [2025-03-06 02:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617423', 'tblTempUsageDetail_20' ) end [2025-03-06 02:29:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 02:29:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 02:29:21] Production.INFO: ==8844== Releasing lock... [2025-03-06 02:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 02:29:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-06 02:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 23:30:06 [end_date_ymd] => 2025-03-06 02:30:06 [RateCDR] => 1 ) [2025-03-06 02: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-03-05 23:30:06' and `end` < '2025-03-06 02: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-03-06 02:30:18] Production.INFO: count ==265 [2025-03-06 02:30:18] Production.ERROR: pbx CDR StartTime 2025-03-05 23:30:06 - End Time 2025-03-06 02:30:06 [2025-03-06 02:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617429', 'tblTempUsageDetail_20' ) start [2025-03-06 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617429', 'tblTempUsageDetail_20' ) end [2025-03-06 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617429', 'tblTempVendorCDR_20' ) start [2025-03-06 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617429', 'tblTempVendorCDR_20' ) end [2025-03-06 02:30:18] Production.INFO: ProcessCDR(1,14617429,1,1,2) [2025-03-06 02:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14617429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 02:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14617429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 02:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14617429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 02:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14617429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 02:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617429', 'tblTempUsageDetail_20' ) start [2025-03-06 02:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617429', 'tblTempUsageDetail_20' ) end [2025-03-06 02:30:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 02:30:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 02:30:21] Production.INFO: ==8923== Releasing lock... [2025-03-06 02:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 02:30:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-06 02:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 23:31:05 [end_date_ymd] => 2025-03-06 02:31:05 [RateCDR] => 1 ) [2025-03-06 02:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-05 23:31:05' and `end` < '2025-03-06 02:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 02:31:17] Production.INFO: count ==265 [2025-03-06 02:31:17] Production.ERROR: pbx CDR StartTime 2025-03-05 23:31:05 - End Time 2025-03-06 02:31:05 [2025-03-06 02:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 02:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617434', 'tblTempUsageDetail_20' ) start [2025-03-06 02:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617434', 'tblTempUsageDetail_20' ) end [2025-03-06 02:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617434', 'tblTempVendorCDR_20' ) start [2025-03-06 02:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617434', 'tblTempVendorCDR_20' ) end [2025-03-06 02:31:17] Production.INFO: ProcessCDR(1,14617434,1,1,2) [2025-03-06 02:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14617434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 02:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14617434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 02:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14617434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 02:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14617434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 02:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617434', 'tblTempUsageDetail_20' ) start [2025-03-06 02:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617434', 'tblTempUsageDetail_20' ) end [2025-03-06 02:31:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 02:31:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 02:31:21] Production.INFO: ==9030== Releasing lock... [2025-03-06 02:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 02:31:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-06 02:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 23:32:05 [end_date_ymd] => 2025-03-06 02:32:05 [RateCDR] => 1 ) [2025-03-06 02:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-05 23:32:05' and `end` < '2025-03-06 02:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 02:32:17] Production.INFO: count ==265 [2025-03-06 02:32:17] Production.ERROR: pbx CDR StartTime 2025-03-05 23:32:05 - End Time 2025-03-06 02:32:05 [2025-03-06 02:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 02:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617439', 'tblTempUsageDetail_20' ) start [2025-03-06 02:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617439', 'tblTempUsageDetail_20' ) end [2025-03-06 02:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617439', 'tblTempVendorCDR_20' ) start [2025-03-06 02:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617439', 'tblTempVendorCDR_20' ) end [2025-03-06 02:32:17] Production.INFO: ProcessCDR(1,14617439,1,1,2) [2025-03-06 02:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14617439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 02:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14617439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 02:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14617439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 02:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14617439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 02:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617439', 'tblTempUsageDetail_20' ) start [2025-03-06 02:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617439', 'tblTempUsageDetail_20' ) end [2025-03-06 02:32:20] Production.ERROR: pbx prc_insertCDR start [2025-03-06 02:32:20] Production.ERROR: pbx prc_insertCDR end [2025-03-06 02:32:20] Production.INFO: ==9107== Releasing lock... [2025-03-06 02:32:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 02:32:20] Production.INFO: 29.5 MB #Memory Used# [2025-03-06 02:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 23:33:05 [end_date_ymd] => 2025-03-06 02:33:05 [RateCDR] => 1 ) [2025-03-06 02:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-05 23:33:05' and `end` < '2025-03-06 02:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 02:33:17] Production.INFO: count ==265 [2025-03-06 02:33:17] Production.ERROR: pbx CDR StartTime 2025-03-05 23:33:05 - End Time 2025-03-06 02:33:05 [2025-03-06 02:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 02:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617444', 'tblTempUsageDetail_20' ) start [2025-03-06 02:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617444', 'tblTempUsageDetail_20' ) end [2025-03-06 02:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617444', 'tblTempVendorCDR_20' ) start [2025-03-06 02:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617444', 'tblTempVendorCDR_20' ) end [2025-03-06 02:33:17] Production.INFO: ProcessCDR(1,14617444,1,1,2) [2025-03-06 02:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14617444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 02:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14617444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 02:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14617444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 02:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14617444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 02:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617444', 'tblTempUsageDetail_20' ) start [2025-03-06 02:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617444', 'tblTempUsageDetail_20' ) end [2025-03-06 02:33:20] Production.ERROR: pbx prc_insertCDR start [2025-03-06 02:33:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 02:33:21] Production.INFO: ==9213== Releasing lock... [2025-03-06 02:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 02:33:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-06 02:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 23:34:05 [end_date_ymd] => 2025-03-06 02:34:05 [RateCDR] => 1 ) [2025-03-06 02:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-05 23:34:05' and `end` < '2025-03-06 02:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 02:34:17] Production.INFO: count ==265 [2025-03-06 02:34:17] Production.ERROR: pbx CDR StartTime 2025-03-05 23:34:05 - End Time 2025-03-06 02:34:05 [2025-03-06 02:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 02:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617449', 'tblTempUsageDetail_20' ) start [2025-03-06 02:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617449', 'tblTempUsageDetail_20' ) end [2025-03-06 02:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617449', 'tblTempVendorCDR_20' ) start [2025-03-06 02:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617449', 'tblTempVendorCDR_20' ) end [2025-03-06 02:34:17] Production.INFO: ProcessCDR(1,14617449,1,1,2) [2025-03-06 02:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14617449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 02:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14617449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 02:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14617449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 02:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14617449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 02:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617449', 'tblTempUsageDetail_20' ) start [2025-03-06 02:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617449', 'tblTempUsageDetail_20' ) end [2025-03-06 02:34:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 02:34:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 02:34:21] Production.INFO: ==9297== Releasing lock... [2025-03-06 02:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 02:34:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-06 02:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 23:35:05 [end_date_ymd] => 2025-03-06 02:35:05 [RateCDR] => 1 ) [2025-03-06 02:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-05 23:35:05' and `end` < '2025-03-06 02:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 02:35:17] Production.INFO: count ==265 [2025-03-06 02:35:17] Production.ERROR: pbx CDR StartTime 2025-03-05 23:35:05 - End Time 2025-03-06 02:35:05 [2025-03-06 02:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 02:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617454', 'tblTempUsageDetail_20' ) start [2025-03-06 02:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617454', 'tblTempUsageDetail_20' ) end [2025-03-06 02:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617454', 'tblTempVendorCDR_20' ) start [2025-03-06 02:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617454', 'tblTempVendorCDR_20' ) end [2025-03-06 02:35:17] Production.INFO: ProcessCDR(1,14617454,1,1,2) [2025-03-06 02:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14617454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 02:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14617454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 02:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14617454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 02:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14617454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 02:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617454', 'tblTempUsageDetail_20' ) start [2025-03-06 02:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617454', 'tblTempUsageDetail_20' ) end [2025-03-06 02:35:20] Production.ERROR: pbx prc_insertCDR start [2025-03-06 02:35:20] Production.ERROR: pbx prc_insertCDR end [2025-03-06 02:35:20] Production.INFO: ==9435== Releasing lock... [2025-03-06 02:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 02:35:20] Production.INFO: 29.5 MB #Memory Used# [2025-03-06 02:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 23:36:06 [end_date_ymd] => 2025-03-06 02:36:06 [RateCDR] => 1 ) [2025-03-06 02: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-03-05 23:36:06' and `end` < '2025-03-06 02: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-03-06 02:36:18] Production.INFO: count ==261 [2025-03-06 02:36:18] Production.ERROR: pbx CDR StartTime 2025-03-05 23:36:06 - End Time 2025-03-06 02:36:06 [2025-03-06 02:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 02:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617459', 'tblTempUsageDetail_20' ) start [2025-03-06 02:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617459', 'tblTempUsageDetail_20' ) end [2025-03-06 02:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617459', 'tblTempVendorCDR_20' ) start [2025-03-06 02:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617459', 'tblTempVendorCDR_20' ) end [2025-03-06 02:36:18] Production.INFO: ProcessCDR(1,14617459,1,1,2) [2025-03-06 02:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14617459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 02:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14617459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 02:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14617459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 02:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14617459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 02:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617459', 'tblTempUsageDetail_20' ) start [2025-03-06 02:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617459', 'tblTempUsageDetail_20' ) end [2025-03-06 02:36:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 02:36:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 02:36:21] Production.INFO: ==9522== Releasing lock... [2025-03-06 02:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 02:36:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-06 02:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 23:37:05 [end_date_ymd] => 2025-03-06 02:37:05 [RateCDR] => 1 ) [2025-03-06 02:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-05 23:37:05' and `end` < '2025-03-06 02:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 02:37:17] Production.INFO: count ==261 [2025-03-06 02:37:17] Production.ERROR: pbx CDR StartTime 2025-03-05 23:37:05 - End Time 2025-03-06 02:37:05 [2025-03-06 02:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 02:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617464', 'tblTempUsageDetail_20' ) start [2025-03-06 02:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617464', 'tblTempUsageDetail_20' ) end [2025-03-06 02:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617464', 'tblTempVendorCDR_20' ) start [2025-03-06 02:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617464', 'tblTempVendorCDR_20' ) end [2025-03-06 02:37:17] Production.INFO: ProcessCDR(1,14617464,1,1,2) [2025-03-06 02:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14617464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 02:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14617464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 02:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14617464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 02:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14617464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 02:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617464', 'tblTempUsageDetail_20' ) start [2025-03-06 02:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617464', 'tblTempUsageDetail_20' ) end [2025-03-06 02:37:20] Production.ERROR: pbx prc_insertCDR start [2025-03-06 02:37:20] Production.ERROR: pbx prc_insertCDR end [2025-03-06 02:37:20] Production.INFO: ==9611== Releasing lock... [2025-03-06 02:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 02:37:20] Production.INFO: 29.5 MB #Memory Used# [2025-03-06 02:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 23:38:05 [end_date_ymd] => 2025-03-06 02:38:05 [RateCDR] => 1 ) [2025-03-06 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-03-05 23:38:05' and `end` < '2025-03-06 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-03-06 02:38:17] Production.INFO: count ==261 [2025-03-06 02:38:17] Production.ERROR: pbx CDR StartTime 2025-03-05 23:38:05 - End Time 2025-03-06 02:38:05 [2025-03-06 02:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 02:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617469', 'tblTempUsageDetail_20' ) start [2025-03-06 02:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617469', 'tblTempUsageDetail_20' ) end [2025-03-06 02:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617469', 'tblTempVendorCDR_20' ) start [2025-03-06 02:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617469', 'tblTempVendorCDR_20' ) end [2025-03-06 02:38:17] Production.INFO: ProcessCDR(1,14617469,1,1,2) [2025-03-06 02:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14617469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 02:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14617469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 02:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14617469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 02:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14617469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 02:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617469', 'tblTempUsageDetail_20' ) start [2025-03-06 02:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617469', 'tblTempUsageDetail_20' ) end [2025-03-06 02:38:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 02:38:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 02:38:21] Production.INFO: ==9709== Releasing lock... [2025-03-06 02:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 02:38:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-06 02:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 23:39:05 [end_date_ymd] => 2025-03-06 02:39:05 [RateCDR] => 1 ) [2025-03-06 02:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-05 23:39:05' and `end` < '2025-03-06 02:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 02:39:17] Production.INFO: count ==258 [2025-03-06 02:39:17] Production.ERROR: pbx CDR StartTime 2025-03-05 23:39:05 - End Time 2025-03-06 02:39:05 [2025-03-06 02:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 02:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617474', 'tblTempUsageDetail_20' ) start [2025-03-06 02:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617474', 'tblTempUsageDetail_20' ) end [2025-03-06 02:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617474', 'tblTempVendorCDR_20' ) start [2025-03-06 02:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617474', 'tblTempVendorCDR_20' ) end [2025-03-06 02:39:17] Production.INFO: ProcessCDR(1,14617474,1,1,2) [2025-03-06 02:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14617474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 02:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14617474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 02:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14617474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 02:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14617474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 02:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617474', 'tblTempUsageDetail_20' ) start [2025-03-06 02:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617474', 'tblTempUsageDetail_20' ) end [2025-03-06 02:39:20] Production.ERROR: pbx prc_insertCDR start [2025-03-06 02:39:20] Production.ERROR: pbx prc_insertCDR end [2025-03-06 02:39:20] Production.INFO: ==9808== Releasing lock... [2025-03-06 02:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 02:39:20] Production.INFO: 29.25 MB #Memory Used# [2025-03-06 02:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 23:40:06 [end_date_ymd] => 2025-03-06 02:40:06 [RateCDR] => 1 ) [2025-03-06 02:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-05 23:40:06' and `end` < '2025-03-06 02:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 02:40:18] Production.INFO: count ==265 [2025-03-06 02:40:18] Production.ERROR: pbx CDR StartTime 2025-03-05 23:40:06 - End Time 2025-03-06 02:40:06 [2025-03-06 02:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 02:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617480', 'tblTempUsageDetail_20' ) start [2025-03-06 02:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617480', 'tblTempUsageDetail_20' ) end [2025-03-06 02:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617480', 'tblTempVendorCDR_20' ) start [2025-03-06 02:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617480', 'tblTempVendorCDR_20' ) end [2025-03-06 02:40:18] Production.INFO: ProcessCDR(1,14617480,1,1,2) [2025-03-06 02:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14617480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 02:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14617480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 02:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14617480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 02:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14617480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 02:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617480', 'tblTempUsageDetail_20' ) start [2025-03-06 02:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617480', 'tblTempUsageDetail_20' ) end [2025-03-06 02:40:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 02:40:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 02:40:21] Production.INFO: ==9899== Releasing lock... [2025-03-06 02:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 02:40:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-06 02:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 23:41:06 [end_date_ymd] => 2025-03-06 02:41:06 [RateCDR] => 1 ) [2025-03-06 02:41:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-05 23:41:06' and `end` < '2025-03-06 02:41:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 02:41:18] Production.INFO: count ==271 [2025-03-06 02:41:18] Production.ERROR: pbx CDR StartTime 2025-03-05 23:41:06 - End Time 2025-03-06 02:41:06 [2025-03-06 02:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617485', 'tblTempUsageDetail_20' ) start [2025-03-06 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617485', 'tblTempUsageDetail_20' ) end [2025-03-06 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617485', 'tblTempVendorCDR_20' ) start [2025-03-06 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617485', 'tblTempVendorCDR_20' ) end [2025-03-06 02:41:18] Production.INFO: ProcessCDR(1,14617485,1,1,2) [2025-03-06 02:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14617485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 02:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14617485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 02:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14617485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 02:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14617485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 02:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617485', 'tblTempUsageDetail_20' ) start [2025-03-06 02:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617485', 'tblTempUsageDetail_20' ) end [2025-03-06 02:41:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 02:41:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 02:41:22] Production.INFO: ==9990== Releasing lock... [2025-03-06 02:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 02:41:22] Production.INFO: 29.5 MB #Memory Used# [2025-03-06 02:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 23:42:05 [end_date_ymd] => 2025-03-06 02:42:05 [RateCDR] => 1 ) [2025-03-06 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-03-05 23:42:05' and `end` < '2025-03-06 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-03-06 02:42:17] Production.INFO: count ==271 [2025-03-06 02:42:17] Production.ERROR: pbx CDR StartTime 2025-03-05 23:42:05 - End Time 2025-03-06 02:42:05 [2025-03-06 02:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 02:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617490', 'tblTempUsageDetail_20' ) start [2025-03-06 02:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617490', 'tblTempUsageDetail_20' ) end [2025-03-06 02:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617490', 'tblTempVendorCDR_20' ) start [2025-03-06 02:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617490', 'tblTempVendorCDR_20' ) end [2025-03-06 02:42:17] Production.INFO: ProcessCDR(1,14617490,1,1,2) [2025-03-06 02:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14617490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 02:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14617490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 02:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14617490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 02:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14617490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 02:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617490', 'tblTempUsageDetail_20' ) start [2025-03-06 02:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617490', 'tblTempUsageDetail_20' ) end [2025-03-06 02:42:20] Production.ERROR: pbx prc_insertCDR start [2025-03-06 02:42:20] Production.ERROR: pbx prc_insertCDR end [2025-03-06 02:42:20] Production.INFO: ==10060== Releasing lock... [2025-03-06 02:42:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 02:42:20] Production.INFO: 29.5 MB #Memory Used# [2025-03-06 02:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 23:43:05 [end_date_ymd] => 2025-03-06 02:43:05 [RateCDR] => 1 ) [2025-03-06 02:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-05 23:43:05' and `end` < '2025-03-06 02:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 02:43:17] Production.INFO: count ==271 [2025-03-06 02:43:17] Production.ERROR: pbx CDR StartTime 2025-03-05 23:43:05 - End Time 2025-03-06 02:43:05 [2025-03-06 02:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 02:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617495', 'tblTempUsageDetail_20' ) start [2025-03-06 02:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617495', 'tblTempUsageDetail_20' ) end [2025-03-06 02:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617495', 'tblTempVendorCDR_20' ) start [2025-03-06 02:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617495', 'tblTempVendorCDR_20' ) end [2025-03-06 02:43:17] Production.INFO: ProcessCDR(1,14617495,1,1,2) [2025-03-06 02:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14617495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 02:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14617495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 02:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14617495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 02:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14617495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 02:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617495', 'tblTempUsageDetail_20' ) start [2025-03-06 02:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617495', 'tblTempUsageDetail_20' ) end [2025-03-06 02:43:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 02:43:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 02:43:21] Production.INFO: ==10132== Releasing lock... [2025-03-06 02:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 02:43:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-06 02:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 23:44:05 [end_date_ymd] => 2025-03-06 02:44:05 [RateCDR] => 1 ) [2025-03-06 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-03-05 23:44:05' and `end` < '2025-03-06 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-03-06 02:44:17] Production.INFO: count ==270 [2025-03-06 02:44:17] Production.ERROR: pbx CDR StartTime 2025-03-05 23:44:05 - End Time 2025-03-06 02:44:05 [2025-03-06 02:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 02:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617500', 'tblTempUsageDetail_20' ) start [2025-03-06 02:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617500', 'tblTempUsageDetail_20' ) end [2025-03-06 02:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617500', 'tblTempVendorCDR_20' ) start [2025-03-06 02:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617500', 'tblTempVendorCDR_20' ) end [2025-03-06 02:44:17] Production.INFO: ProcessCDR(1,14617500,1,1,2) [2025-03-06 02:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14617500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 02:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14617500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 02:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14617500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 02:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14617500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 02:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617500', 'tblTempUsageDetail_20' ) start [2025-03-06 02:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617500', 'tblTempUsageDetail_20' ) end [2025-03-06 02:44:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 02:44:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 02:44:21] Production.INFO: ==10203== Releasing lock... [2025-03-06 02:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 02:44:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-06 02:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 23:45:06 [end_date_ymd] => 2025-03-06 02:45:06 [RateCDR] => 1 ) [2025-03-06 02:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-05 23:45:06' and `end` < '2025-03-06 02:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 02:45:18] Production.INFO: count ==270 [2025-03-06 02:45:18] Production.ERROR: pbx CDR StartTime 2025-03-05 23:45:06 - End Time 2025-03-06 02:45:06 [2025-03-06 02:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617505', 'tblTempUsageDetail_20' ) start [2025-03-06 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617505', 'tblTempUsageDetail_20' ) end [2025-03-06 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617505', 'tblTempVendorCDR_20' ) start [2025-03-06 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617505', 'tblTempVendorCDR_20' ) end [2025-03-06 02:45:18] Production.INFO: ProcessCDR(1,14617505,1,1,2) [2025-03-06 02:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14617505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 02:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14617505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 02:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14617505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 02:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14617505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 02:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617505', 'tblTempUsageDetail_20' ) start [2025-03-06 02:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617505', 'tblTempUsageDetail_20' ) end [2025-03-06 02:45:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 02:45:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 02:45:21] Production.INFO: ==10275== Releasing lock... [2025-03-06 02:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 02:45:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-06 02:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 23:46:05 [end_date_ymd] => 2025-03-06 02:46:05 [RateCDR] => 1 ) [2025-03-06 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-03-05 23:46:05' and `end` < '2025-03-06 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-03-06 02:46:17] Production.INFO: count ==270 [2025-03-06 02:46:17] Production.ERROR: pbx CDR StartTime 2025-03-05 23:46:05 - End Time 2025-03-06 02:46:05 [2025-03-06 02:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 02:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617510', 'tblTempUsageDetail_20' ) start [2025-03-06 02:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617510', 'tblTempUsageDetail_20' ) end [2025-03-06 02:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617510', 'tblTempVendorCDR_20' ) start [2025-03-06 02:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617510', 'tblTempVendorCDR_20' ) end [2025-03-06 02:46:17] Production.INFO: ProcessCDR(1,14617510,1,1,2) [2025-03-06 02:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14617510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 02:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14617510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 02:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14617510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 02:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14617510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 02:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617510', 'tblTempUsageDetail_20' ) start [2025-03-06 02:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617510', 'tblTempUsageDetail_20' ) end [2025-03-06 02:46:20] Production.ERROR: pbx prc_insertCDR start [2025-03-06 02:46:20] Production.ERROR: pbx prc_insertCDR end [2025-03-06 02:46:20] Production.INFO: ==10345== Releasing lock... [2025-03-06 02:46:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 02:46:20] Production.INFO: 29.5 MB #Memory Used# [2025-03-06 02:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 23:47:05 [end_date_ymd] => 2025-03-06 02:47:05 [RateCDR] => 1 ) [2025-03-06 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-03-05 23:47:05' and `end` < '2025-03-06 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-03-06 02:47:17] Production.INFO: count ==270 [2025-03-06 02:47:17] Production.ERROR: pbx CDR StartTime 2025-03-05 23:47:05 - End Time 2025-03-06 02:47:05 [2025-03-06 02:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 02:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617515', 'tblTempUsageDetail_20' ) start [2025-03-06 02:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617515', 'tblTempUsageDetail_20' ) end [2025-03-06 02:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617515', 'tblTempVendorCDR_20' ) start [2025-03-06 02:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617515', 'tblTempVendorCDR_20' ) end [2025-03-06 02:47:17] Production.INFO: ProcessCDR(1,14617515,1,1,2) [2025-03-06 02:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14617515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 02:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14617515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 02:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14617515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 02:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14617515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 02:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617515', 'tblTempUsageDetail_20' ) start [2025-03-06 02:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617515', 'tblTempUsageDetail_20' ) end [2025-03-06 02:47:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 02:47:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 02:47:21] Production.INFO: ==10416== Releasing lock... [2025-03-06 02:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 02:47:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-06 02:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 23:48:05 [end_date_ymd] => 2025-03-06 02:48:05 [RateCDR] => 1 ) [2025-03-06 02:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-05 23:48:05' and `end` < '2025-03-06 02:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 02:48:17] Production.INFO: count ==271 [2025-03-06 02:48:17] Production.ERROR: pbx CDR StartTime 2025-03-05 23:48:05 - End Time 2025-03-06 02:48:05 [2025-03-06 02:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 02:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617520', 'tblTempUsageDetail_20' ) start [2025-03-06 02:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617520', 'tblTempUsageDetail_20' ) end [2025-03-06 02:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617520', 'tblTempVendorCDR_20' ) start [2025-03-06 02:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617520', 'tblTempVendorCDR_20' ) end [2025-03-06 02:48:17] Production.INFO: ProcessCDR(1,14617520,1,1,2) [2025-03-06 02:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14617520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 02:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14617520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 02:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14617520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 02:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14617520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 02:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617520', 'tblTempUsageDetail_20' ) start [2025-03-06 02:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617520', 'tblTempUsageDetail_20' ) end [2025-03-06 02:48:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 02:48:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 02:48:21] Production.INFO: ==10488== Releasing lock... [2025-03-06 02:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 02:48:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-06 02:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 23:49:05 [end_date_ymd] => 2025-03-06 02:49:05 [RateCDR] => 1 ) [2025-03-06 02:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-05 23:49:05' and `end` < '2025-03-06 02:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 02:49:17] Production.INFO: count ==271 [2025-03-06 02:49:17] Production.ERROR: pbx CDR StartTime 2025-03-05 23:49:05 - End Time 2025-03-06 02:49:05 [2025-03-06 02:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 02:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617525', 'tblTempUsageDetail_20' ) start [2025-03-06 02:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617525', 'tblTempUsageDetail_20' ) end [2025-03-06 02:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617525', 'tblTempVendorCDR_20' ) start [2025-03-06 02:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617525', 'tblTempVendorCDR_20' ) end [2025-03-06 02:49:17] Production.INFO: ProcessCDR(1,14617525,1,1,2) [2025-03-06 02:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14617525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 02:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14617525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 02:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14617525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 02:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14617525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 02:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617525', 'tblTempUsageDetail_20' ) start [2025-03-06 02:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617525', 'tblTempUsageDetail_20' ) end [2025-03-06 02:49:20] Production.ERROR: pbx prc_insertCDR start [2025-03-06 02:49:20] Production.ERROR: pbx prc_insertCDR end [2025-03-06 02:49:20] Production.INFO: ==10562== Releasing lock... [2025-03-06 02:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 02:49:20] Production.INFO: 29.5 MB #Memory Used# [2025-03-06 02:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 23:50:06 [end_date_ymd] => 2025-03-06 02:50:06 [RateCDR] => 1 ) [2025-03-06 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-03-05 23:50:06' and `end` < '2025-03-06 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-03-06 02:50:18] Production.INFO: count ==279 [2025-03-06 02:50:18] Production.ERROR: pbx CDR StartTime 2025-03-05 23:50:06 - End Time 2025-03-06 02:50:06 [2025-03-06 02:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 02:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617531', 'tblTempUsageDetail_20' ) start [2025-03-06 02:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617531', 'tblTempUsageDetail_20' ) end [2025-03-06 02:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617531', 'tblTempVendorCDR_20' ) start [2025-03-06 02:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617531', 'tblTempVendorCDR_20' ) end [2025-03-06 02:50:18] Production.INFO: ProcessCDR(1,14617531,1,1,2) [2025-03-06 02:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14617531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 02:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14617531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 02:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14617531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 02:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14617531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 02:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617531', 'tblTempUsageDetail_20' ) start [2025-03-06 02:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617531', 'tblTempUsageDetail_20' ) end [2025-03-06 02:50:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 02:50:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 02:50:22] Production.INFO: ==10673== Releasing lock... [2025-03-06 02:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 02:50:22] Production.INFO: 29.5 MB #Memory Used# [2025-03-06 02:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 23:51:06 [end_date_ymd] => 2025-03-06 02:51:06 [RateCDR] => 1 ) [2025-03-06 02: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-03-05 23:51:06' and `end` < '2025-03-06 02: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-03-06 02:51:18] Production.INFO: count ==294 [2025-03-06 02:51:18] Production.ERROR: pbx CDR StartTime 2025-03-05 23:51:06 - End Time 2025-03-06 02:51:06 [2025-03-06 02:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 02:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617536', 'tblTempUsageDetail_20' ) start [2025-03-06 02:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617536', 'tblTempUsageDetail_20' ) end [2025-03-06 02:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617536', 'tblTempVendorCDR_20' ) start [2025-03-06 02:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617536', 'tblTempVendorCDR_20' ) end [2025-03-06 02:51:18] Production.INFO: ProcessCDR(1,14617536,1,1,2) [2025-03-06 02:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14617536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 02:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14617536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 02:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14617536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 02:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14617536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 02:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617536', 'tblTempUsageDetail_20' ) start [2025-03-06 02:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617536', 'tblTempUsageDetail_20' ) end [2025-03-06 02:51:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 02:51:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 02:51:21] Production.INFO: ==10744== Releasing lock... [2025-03-06 02:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 02:51:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-06 02:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 23:52:05 [end_date_ymd] => 2025-03-06 02:52:05 [RateCDR] => 1 ) [2025-03-06 02:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-05 23:52:05' and `end` < '2025-03-06 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-03-06 02:52:17] Production.INFO: count ==294 [2025-03-06 02:52:17] Production.ERROR: pbx CDR StartTime 2025-03-05 23:52:05 - End Time 2025-03-06 02:52:05 [2025-03-06 02:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 02:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617541', 'tblTempUsageDetail_20' ) start [2025-03-06 02:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617541', 'tblTempUsageDetail_20' ) end [2025-03-06 02:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617541', 'tblTempVendorCDR_20' ) start [2025-03-06 02:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617541', 'tblTempVendorCDR_20' ) end [2025-03-06 02:52:17] Production.INFO: ProcessCDR(1,14617541,1,1,2) [2025-03-06 02:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14617541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 02:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14617541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 02:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14617541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 02:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14617541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 02:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617541', 'tblTempUsageDetail_20' ) start [2025-03-06 02:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617541', 'tblTempUsageDetail_20' ) end [2025-03-06 02:52:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 02:52:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 02:52:21] Production.INFO: ==10815== Releasing lock... [2025-03-06 02:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 02:52:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-06 02:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 23:53:05 [end_date_ymd] => 2025-03-06 02:53:05 [RateCDR] => 1 ) [2025-03-06 02:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-05 23:53:05' and `end` < '2025-03-06 02:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 02:53:17] Production.INFO: count ==294 [2025-03-06 02:53:17] Production.ERROR: pbx CDR StartTime 2025-03-05 23:53:05 - End Time 2025-03-06 02:53:05 [2025-03-06 02:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 02:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617546', 'tblTempUsageDetail_20' ) start [2025-03-06 02:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617546', 'tblTempUsageDetail_20' ) end [2025-03-06 02:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617546', 'tblTempVendorCDR_20' ) start [2025-03-06 02:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617546', 'tblTempVendorCDR_20' ) end [2025-03-06 02:53:17] Production.INFO: ProcessCDR(1,14617546,1,1,2) [2025-03-06 02:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14617546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 02:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14617546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 02:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14617546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 02:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14617546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 02:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617546', 'tblTempUsageDetail_20' ) start [2025-03-06 02:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617546', 'tblTempUsageDetail_20' ) end [2025-03-06 02:53:20] Production.ERROR: pbx prc_insertCDR start [2025-03-06 02:53:20] Production.ERROR: pbx prc_insertCDR end [2025-03-06 02:53:20] Production.INFO: ==10886== Releasing lock... [2025-03-06 02:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 02:53:20] Production.INFO: 29.75 MB #Memory Used# [2025-03-06 02:54:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 23:54:04 [end_date_ymd] => 2025-03-06 02:54:04 [RateCDR] => 1 ) [2025-03-06 02:54:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-05 23:54:04' and `end` < '2025-03-06 02: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-03-06 02:54:16] Production.INFO: count ==292 [2025-03-06 02:54:16] Production.ERROR: pbx CDR StartTime 2025-03-05 23:54:04 - End Time 2025-03-06 02:54:04 [2025-03-06 02:54:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 02:54:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617551', 'tblTempUsageDetail_20' ) start [2025-03-06 02:54:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617551', 'tblTempUsageDetail_20' ) end [2025-03-06 02:54:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617551', 'tblTempVendorCDR_20' ) start [2025-03-06 02:54:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617551', 'tblTempVendorCDR_20' ) end [2025-03-06 02:54:16] Production.INFO: ProcessCDR(1,14617551,1,1,2) [2025-03-06 02:54:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14617551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 02:54:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14617551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 02:54:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14617551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 02:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14617551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 02:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617551', 'tblTempUsageDetail_20' ) start [2025-03-06 02:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617551', 'tblTempUsageDetail_20' ) end [2025-03-06 02:54:20] Production.ERROR: pbx prc_insertCDR start [2025-03-06 02:54:20] Production.ERROR: pbx prc_insertCDR end [2025-03-06 02:54:20] Production.INFO: ==10956== Releasing lock... [2025-03-06 02:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 02:54:20] Production.INFO: 29.75 MB #Memory Used# [2025-03-06 02:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 23:55:05 [end_date_ymd] => 2025-03-06 02:55:05 [RateCDR] => 1 ) [2025-03-06 02:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-05 23:55:05' and `end` < '2025-03-06 02:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 02:55:17] Production.INFO: count ==286 [2025-03-06 02:55:17] Production.ERROR: pbx CDR StartTime 2025-03-05 23:55:05 - End Time 2025-03-06 02:55:05 [2025-03-06 02:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 02:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617556', 'tblTempUsageDetail_20' ) start [2025-03-06 02:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617556', 'tblTempUsageDetail_20' ) end [2025-03-06 02:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617556', 'tblTempVendorCDR_20' ) start [2025-03-06 02:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617556', 'tblTempVendorCDR_20' ) end [2025-03-06 02:55:17] Production.INFO: ProcessCDR(1,14617556,1,1,2) [2025-03-06 02:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14617556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 02:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14617556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 02:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14617556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 02:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14617556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 02:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617556', 'tblTempUsageDetail_20' ) start [2025-03-06 02:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617556', 'tblTempUsageDetail_20' ) end [2025-03-06 02:55:20] Production.ERROR: pbx prc_insertCDR start [2025-03-06 02:55:20] Production.ERROR: pbx prc_insertCDR end [2025-03-06 02:55:20] Production.INFO: ==11028== Releasing lock... [2025-03-06 02:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 02:55:20] Production.INFO: 29.5 MB #Memory Used# [2025-03-06 02:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 23:56:06 [end_date_ymd] => 2025-03-06 02:56:06 [RateCDR] => 1 ) [2025-03-06 02: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-03-05 23:56:06' and `end` < '2025-03-06 02: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-03-06 02:56:18] Production.INFO: count ==286 [2025-03-06 02:56:18] Production.ERROR: pbx CDR StartTime 2025-03-05 23:56:06 - End Time 2025-03-06 02:56:06 [2025-03-06 02:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 02:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617561', 'tblTempUsageDetail_20' ) start [2025-03-06 02:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617561', 'tblTempUsageDetail_20' ) end [2025-03-06 02:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617561', 'tblTempVendorCDR_20' ) start [2025-03-06 02:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617561', 'tblTempVendorCDR_20' ) end [2025-03-06 02:56:18] Production.INFO: ProcessCDR(1,14617561,1,1,2) [2025-03-06 02:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14617561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 02:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14617561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 02:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14617561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 02:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14617561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 02:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617561', 'tblTempUsageDetail_20' ) start [2025-03-06 02:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617561', 'tblTempUsageDetail_20' ) end [2025-03-06 02:56:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 02:56:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 02:56:22] Production.INFO: ==11101== Releasing lock... [2025-03-06 02:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 02:56:22] Production.INFO: 29.5 MB #Memory Used# [2025-03-06 02:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 23:57:06 [end_date_ymd] => 2025-03-06 02:57:06 [RateCDR] => 1 ) [2025-03-06 02: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-03-05 23:57:06' and `end` < '2025-03-06 02: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-03-06 02:57:18] Production.INFO: count ==285 [2025-03-06 02:57:18] Production.ERROR: pbx CDR StartTime 2025-03-05 23:57:06 - End Time 2025-03-06 02:57:06 [2025-03-06 02:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617566', 'tblTempUsageDetail_20' ) start [2025-03-06 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617566', 'tblTempUsageDetail_20' ) end [2025-03-06 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617566', 'tblTempVendorCDR_20' ) start [2025-03-06 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617566', 'tblTempVendorCDR_20' ) end [2025-03-06 02:57:18] Production.INFO: ProcessCDR(1,14617566,1,1,2) [2025-03-06 02:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14617566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 02:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14617566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 02:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14617566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 02:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14617566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 02:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617566', 'tblTempUsageDetail_20' ) start [2025-03-06 02:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617566', 'tblTempUsageDetail_20' ) end [2025-03-06 02:57:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 02:57:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 02:57:21] Production.INFO: ==11171== Releasing lock... [2025-03-06 02:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 02:57:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-06 02:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 23:58:05 [end_date_ymd] => 2025-03-06 02:58:05 [RateCDR] => 1 ) [2025-03-06 02:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-05 23:58:05' and `end` < '2025-03-06 02:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 02:58:17] Production.INFO: count ==285 [2025-03-06 02:58:17] Production.ERROR: pbx CDR StartTime 2025-03-05 23:58:05 - End Time 2025-03-06 02:58:05 [2025-03-06 02:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 02:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617571', 'tblTempUsageDetail_20' ) start [2025-03-06 02:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617571', 'tblTempUsageDetail_20' ) end [2025-03-06 02:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617571', 'tblTempVendorCDR_20' ) start [2025-03-06 02:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617571', 'tblTempVendorCDR_20' ) end [2025-03-06 02:58:17] Production.INFO: ProcessCDR(1,14617571,1,1,2) [2025-03-06 02:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14617571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 02:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14617571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 02:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14617571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 02:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14617571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 02:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617571', 'tblTempUsageDetail_20' ) start [2025-03-06 02:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617571', 'tblTempUsageDetail_20' ) end [2025-03-06 02:58:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 02:58:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 02:58:21] Production.INFO: ==11245== Releasing lock... [2025-03-06 02:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 02:58:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-06 02:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-05 23:59:06 [end_date_ymd] => 2025-03-06 02:59:06 [RateCDR] => 1 ) [2025-03-06 02: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-03-05 23:59:06' and `end` < '2025-03-06 02: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-03-06 02:59:18] Production.INFO: count ==285 [2025-03-06 02:59:18] Production.ERROR: pbx CDR StartTime 2025-03-05 23:59:06 - End Time 2025-03-06 02:59:06 [2025-03-06 02:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617576', 'tblTempUsageDetail_20' ) start [2025-03-06 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617576', 'tblTempUsageDetail_20' ) end [2025-03-06 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617576', 'tblTempVendorCDR_20' ) start [2025-03-06 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617576', 'tblTempVendorCDR_20' ) end [2025-03-06 02:59:18] Production.INFO: ProcessCDR(1,14617576,1,1,2) [2025-03-06 02:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14617576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 02:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14617576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 02:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14617576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 02:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14617576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 02:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617576', 'tblTempUsageDetail_20' ) start [2025-03-06 02:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617576', 'tblTempUsageDetail_20' ) end [2025-03-06 02:59:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 02:59:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 02:59:21] Production.INFO: ==11315== Releasing lock... [2025-03-06 02:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 02:59:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-06 03:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 00:00:05 [end_date_ymd] => 2025-03-06 03:00:05 [RateCDR] => 1 ) [2025-03-06 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-03-06 00:00:05' and `end` < '2025-03-06 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-03-06 03:00:17] Production.INFO: count ==290 [2025-03-06 03:00:17] Production.ERROR: pbx CDR StartTime 2025-03-06 00:00:05 - End Time 2025-03-06 03:00:05 [2025-03-06 03:00:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 03:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617581', 'tblTempUsageDetail_20' ) start [2025-03-06 03:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617581', 'tblTempUsageDetail_20' ) end [2025-03-06 03:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617581', 'tblTempVendorCDR_20' ) start [2025-03-06 03:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617581', 'tblTempVendorCDR_20' ) end [2025-03-06 03:00:17] Production.INFO: ProcessCDR(1,14617581,1,1,2) [2025-03-06 03:00:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14617581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 03:00:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14617581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 03:00:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14617581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 03:00:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14617581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 03:00:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617581', 'tblTempUsageDetail_20' ) start [2025-03-06 03:00:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617581', 'tblTempUsageDetail_20' ) end [2025-03-06 03:00:20] Production.ERROR: pbx prc_insertCDR start [2025-03-06 03:00:20] Production.ERROR: pbx prc_insertCDR end [2025-03-06 03:00:20] Production.INFO: ==11388== Releasing lock... [2025-03-06 03:00:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 03:00:20] Production.INFO: 29.5 MB #Memory Used# [2025-03-06 03:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 00:01:06 [end_date_ymd] => 2025-03-06 03:01:06 [RateCDR] => 1 ) [2025-03-06 03: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-03-06 00:01:06' and `end` < '2025-03-06 03: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-03-06 03:01:18] Production.INFO: count ==299 [2025-03-06 03:01:18] Production.ERROR: pbx CDR StartTime 2025-03-06 00:01:06 - End Time 2025-03-06 03:01:06 [2025-03-06 03:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617587', 'tblTempUsageDetail_20' ) start [2025-03-06 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617587', 'tblTempUsageDetail_20' ) end [2025-03-06 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617587', 'tblTempVendorCDR_20' ) start [2025-03-06 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617587', 'tblTempVendorCDR_20' ) end [2025-03-06 03:01:18] Production.INFO: ProcessCDR(1,14617587,1,1,2) [2025-03-06 03:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14617587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 03:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14617587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 03:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14617587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 03:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14617587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 03:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617587', 'tblTempUsageDetail_20' ) start [2025-03-06 03:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617587', 'tblTempUsageDetail_20' ) end [2025-03-06 03:01:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 03:01:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 03:01:21] Production.INFO: ==11473== Releasing lock... [2025-03-06 03:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 03:01:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-06 03:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 00:02:05 [end_date_ymd] => 2025-03-06 03:02:05 [RateCDR] => 1 ) [2025-03-06 03:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 00:02:05' and `end` < '2025-03-06 03:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 03:02:17] Production.INFO: count ==299 [2025-03-06 03:02:17] Production.ERROR: pbx CDR StartTime 2025-03-06 00:02:05 - End Time 2025-03-06 03:02:05 [2025-03-06 03:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 03:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617592', 'tblTempUsageDetail_20' ) start [2025-03-06 03:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617592', 'tblTempUsageDetail_20' ) end [2025-03-06 03:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617592', 'tblTempVendorCDR_20' ) start [2025-03-06 03:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617592', 'tblTempVendorCDR_20' ) end [2025-03-06 03:02:17] Production.INFO: ProcessCDR(1,14617592,1,1,2) [2025-03-06 03:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14617592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 03:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14617592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 03:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14617592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 03:02:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14617592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 03:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617592', 'tblTempUsageDetail_20' ) start [2025-03-06 03:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617592', 'tblTempUsageDetail_20' ) end [2025-03-06 03:02:20] Production.ERROR: pbx prc_insertCDR start [2025-03-06 03:02:20] Production.ERROR: pbx prc_insertCDR end [2025-03-06 03:02:20] Production.INFO: ==11621== Releasing lock... [2025-03-06 03:02:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 03:02:20] Production.INFO: 29.75 MB #Memory Used# [2025-03-06 03:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 00:03:05 [end_date_ymd] => 2025-03-06 03:03:05 [RateCDR] => 1 ) [2025-03-06 03:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 00:03:05' and `end` < '2025-03-06 03:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 03:03:17] Production.INFO: count ==299 [2025-03-06 03:03:17] Production.ERROR: pbx CDR StartTime 2025-03-06 00:03:05 - End Time 2025-03-06 03:03:05 [2025-03-06 03:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 03:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617597', 'tblTempUsageDetail_20' ) start [2025-03-06 03:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617597', 'tblTempUsageDetail_20' ) end [2025-03-06 03:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617597', 'tblTempVendorCDR_20' ) start [2025-03-06 03:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617597', 'tblTempVendorCDR_20' ) end [2025-03-06 03:03:17] Production.INFO: ProcessCDR(1,14617597,1,1,2) [2025-03-06 03:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14617597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 03:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14617597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 03:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14617597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 03:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14617597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 03:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617597', 'tblTempUsageDetail_20' ) start [2025-03-06 03:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617597', 'tblTempUsageDetail_20' ) end [2025-03-06 03:03:20] Production.ERROR: pbx prc_insertCDR start [2025-03-06 03:03:20] Production.ERROR: pbx prc_insertCDR end [2025-03-06 03:03:20] Production.INFO: ==11689== Releasing lock... [2025-03-06 03:03:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 03:03:20] Production.INFO: 29.75 MB #Memory Used# [2025-03-06 03:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 00:04:05 [end_date_ymd] => 2025-03-06 03:04:05 [RateCDR] => 1 ) [2025-03-06 03:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 00:04:05' and `end` < '2025-03-06 03:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 03:04:17] Production.INFO: count ==297 [2025-03-06 03:04:17] Production.ERROR: pbx CDR StartTime 2025-03-06 00:04:05 - End Time 2025-03-06 03:04:05 [2025-03-06 03:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 03:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617602', 'tblTempUsageDetail_20' ) start [2025-03-06 03:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617602', 'tblTempUsageDetail_20' ) end [2025-03-06 03:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617602', 'tblTempVendorCDR_20' ) start [2025-03-06 03:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617602', 'tblTempVendorCDR_20' ) end [2025-03-06 03:04:17] Production.INFO: ProcessCDR(1,14617602,1,1,2) [2025-03-06 03:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14617602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 03:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14617602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 03:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14617602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 03:04:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14617602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 03:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617602', 'tblTempUsageDetail_20' ) start [2025-03-06 03:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617602', 'tblTempUsageDetail_20' ) end [2025-03-06 03:04:20] Production.ERROR: pbx prc_insertCDR start [2025-03-06 03:04:20] Production.ERROR: pbx prc_insertCDR end [2025-03-06 03:04:20] Production.INFO: ==11762== Releasing lock... [2025-03-06 03:04:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 03:04:20] Production.INFO: 29.75 MB #Memory Used# [2025-03-06 03:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 00:05:05 [end_date_ymd] => 2025-03-06 03:05:05 [RateCDR] => 1 ) [2025-03-06 03:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 00:05:05' and `end` < '2025-03-06 03:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 03:05:17] Production.INFO: count ==293 [2025-03-06 03:05:17] Production.ERROR: pbx CDR StartTime 2025-03-06 00:05:05 - End Time 2025-03-06 03:05:05 [2025-03-06 03:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 03:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617607', 'tblTempUsageDetail_20' ) start [2025-03-06 03:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617607', 'tblTempUsageDetail_20' ) end [2025-03-06 03:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617607', 'tblTempVendorCDR_20' ) start [2025-03-06 03:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617607', 'tblTempVendorCDR_20' ) end [2025-03-06 03:05:17] Production.INFO: ProcessCDR(1,14617607,1,1,2) [2025-03-06 03:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14617607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 03:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14617607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 03:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14617607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 03:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14617607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 03:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617607', 'tblTempUsageDetail_20' ) start [2025-03-06 03:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617607', 'tblTempUsageDetail_20' ) end [2025-03-06 03:05:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 03:05:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 03:05:21] Production.INFO: ==11830== Releasing lock... [2025-03-06 03:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 03:05:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-06 03:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 00:06:06 [end_date_ymd] => 2025-03-06 03:06:06 [RateCDR] => 1 ) [2025-03-06 03: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-03-06 00:06:06' and `end` < '2025-03-06 03: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-03-06 03:06:18] Production.INFO: count ==293 [2025-03-06 03:06:18] Production.ERROR: pbx CDR StartTime 2025-03-06 00:06:06 - End Time 2025-03-06 03:06:06 [2025-03-06 03:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617612', 'tblTempUsageDetail_20' ) start [2025-03-06 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617612', 'tblTempUsageDetail_20' ) end [2025-03-06 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617612', 'tblTempVendorCDR_20' ) start [2025-03-06 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617612', 'tblTempVendorCDR_20' ) end [2025-03-06 03:06:18] Production.INFO: ProcessCDR(1,14617612,1,1,2) [2025-03-06 03:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14617612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 03:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14617612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 03:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14617612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 03:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14617612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 03:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617612', 'tblTempUsageDetail_20' ) start [2025-03-06 03:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617612', 'tblTempUsageDetail_20' ) end [2025-03-06 03:06:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 03:06:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 03:06:21] Production.INFO: ==12016== Releasing lock... [2025-03-06 03:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 03:06:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-06 03:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 00:07:05 [end_date_ymd] => 2025-03-06 03:07:05 [RateCDR] => 1 ) [2025-03-06 03:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 00:07:05' and `end` < '2025-03-06 03:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 03:07:17] Production.INFO: count ==293 [2025-03-06 03:07:17] Production.ERROR: pbx CDR StartTime 2025-03-06 00:07:05 - End Time 2025-03-06 03:07:05 [2025-03-06 03:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 03:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617617', 'tblTempUsageDetail_20' ) start [2025-03-06 03:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617617', 'tblTempUsageDetail_20' ) end [2025-03-06 03:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617617', 'tblTempVendorCDR_20' ) start [2025-03-06 03:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617617', 'tblTempVendorCDR_20' ) end [2025-03-06 03:07:17] Production.INFO: ProcessCDR(1,14617617,1,1,2) [2025-03-06 03:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14617617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 03:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14617617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 03:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14617617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 03:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14617617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 03:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617617', 'tblTempUsageDetail_20' ) start [2025-03-06 03:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617617', 'tblTempUsageDetail_20' ) end [2025-03-06 03:07:20] Production.ERROR: pbx prc_insertCDR start [2025-03-06 03:07:20] Production.ERROR: pbx prc_insertCDR end [2025-03-06 03:07:20] Production.INFO: ==12084== Releasing lock... [2025-03-06 03:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 03:07:20] Production.INFO: 29.75 MB #Memory Used# [2025-03-06 03:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 00:08:06 [end_date_ymd] => 2025-03-06 03:08:06 [RateCDR] => 1 ) [2025-03-06 03: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-03-06 00:08:06' and `end` < '2025-03-06 03: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-03-06 03:08:18] Production.INFO: count ==293 [2025-03-06 03:08:18] Production.ERROR: pbx CDR StartTime 2025-03-06 00:08:06 - End Time 2025-03-06 03:08:06 [2025-03-06 03:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617622', 'tblTempUsageDetail_20' ) start [2025-03-06 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617622', 'tblTempUsageDetail_20' ) end [2025-03-06 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617622', 'tblTempVendorCDR_20' ) start [2025-03-06 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617622', 'tblTempVendorCDR_20' ) end [2025-03-06 03:08:18] Production.INFO: ProcessCDR(1,14617622,1,1,2) [2025-03-06 03:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14617622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 03:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14617622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 03:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14617622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 03:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14617622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 03:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617622', 'tblTempUsageDetail_20' ) start [2025-03-06 03:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617622', 'tblTempUsageDetail_20' ) end [2025-03-06 03:08:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 03:08:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 03:08:22] Production.INFO: ==12154== Releasing lock... [2025-03-06 03:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 03:08:22] Production.INFO: 29.75 MB #Memory Used# [2025-03-06 03:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 00:09:05 [end_date_ymd] => 2025-03-06 03:09:05 [RateCDR] => 1 ) [2025-03-06 03:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 00:09:05' and `end` < '2025-03-06 03:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 03:09:17] Production.INFO: count ==293 [2025-03-06 03:09:17] Production.ERROR: pbx CDR StartTime 2025-03-06 00:09:05 - End Time 2025-03-06 03:09:05 [2025-03-06 03:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 03:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617627', 'tblTempUsageDetail_20' ) start [2025-03-06 03:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617627', 'tblTempUsageDetail_20' ) end [2025-03-06 03:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617627', 'tblTempVendorCDR_20' ) start [2025-03-06 03:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617627', 'tblTempVendorCDR_20' ) end [2025-03-06 03:09:17] Production.INFO: ProcessCDR(1,14617627,1,1,2) [2025-03-06 03:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14617627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 03:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14617627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 03:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14617627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 03:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14617627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 03:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617627', 'tblTempUsageDetail_20' ) start [2025-03-06 03:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617627', 'tblTempUsageDetail_20' ) end [2025-03-06 03:09:20] Production.ERROR: pbx prc_insertCDR start [2025-03-06 03:09:20] Production.ERROR: pbx prc_insertCDR end [2025-03-06 03:09:20] Production.INFO: ==12301== Releasing lock... [2025-03-06 03:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 03:09:20] Production.INFO: 29.75 MB #Memory Used# [2025-03-06 03:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 00:10:07 [end_date_ymd] => 2025-03-06 03:10:07 [RateCDR] => 1 ) [2025-03-06 03:10: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-03-06 00:10:07' and `end` < '2025-03-06 03:10: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-03-06 03:10:19] Production.INFO: count ==287 [2025-03-06 03:10:19] Production.ERROR: pbx CDR StartTime 2025-03-06 00:10:07 - End Time 2025-03-06 03:10:07 [2025-03-06 03:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 03:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617633', 'tblTempUsageDetail_20' ) start [2025-03-06 03:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617633', 'tblTempUsageDetail_20' ) end [2025-03-06 03:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617633', 'tblTempVendorCDR_20' ) start [2025-03-06 03:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617633', 'tblTempVendorCDR_20' ) end [2025-03-06 03:10:19] Production.INFO: ProcessCDR(1,14617633,1,1,2) [2025-03-06 03:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14617633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 03:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14617633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 03:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14617633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 03:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14617633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 03:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617633', 'tblTempUsageDetail_20' ) start [2025-03-06 03:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617633', 'tblTempUsageDetail_20' ) end [2025-03-06 03:10:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 03:10:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 03:10:22] Production.INFO: ==12372== Releasing lock... [2025-03-06 03:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 03:10:22] Production.INFO: 29.5 MB #Memory Used# [2025-03-06 03:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 00:11:05 [end_date_ymd] => 2025-03-06 03:11:05 [RateCDR] => 1 ) [2025-03-06 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-03-06 00:11:05' and `end` < '2025-03-06 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-03-06 03:11:17] Production.INFO: count ==285 [2025-03-06 03:11:17] Production.ERROR: pbx CDR StartTime 2025-03-06 00:11:05 - End Time 2025-03-06 03:11:05 [2025-03-06 03:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 03:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617638', 'tblTempUsageDetail_20' ) start [2025-03-06 03:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617638', 'tblTempUsageDetail_20' ) end [2025-03-06 03:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617638', 'tblTempVendorCDR_20' ) start [2025-03-06 03:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617638', 'tblTempVendorCDR_20' ) end [2025-03-06 03:11:17] Production.INFO: ProcessCDR(1,14617638,1,1,2) [2025-03-06 03:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14617638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 03:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14617638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 03:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14617638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 03:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14617638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 03:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617638', 'tblTempUsageDetail_20' ) start [2025-03-06 03:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617638', 'tblTempUsageDetail_20' ) end [2025-03-06 03:11:20] Production.ERROR: pbx prc_insertCDR start [2025-03-06 03:11:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 03:11:21] Production.INFO: ==12445== Releasing lock... [2025-03-06 03:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 03:11:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-06 03:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 00:12:06 [end_date_ymd] => 2025-03-06 03:12:06 [RateCDR] => 1 ) [2025-03-06 03: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-03-06 00:12:06' and `end` < '2025-03-06 03: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-03-06 03:12:18] Production.INFO: count ==285 [2025-03-06 03:12:18] Production.ERROR: pbx CDR StartTime 2025-03-06 00:12:06 - End Time 2025-03-06 03:12:06 [2025-03-06 03:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617643', 'tblTempUsageDetail_20' ) start [2025-03-06 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617643', 'tblTempUsageDetail_20' ) end [2025-03-06 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617643', 'tblTempVendorCDR_20' ) start [2025-03-06 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617643', 'tblTempVendorCDR_20' ) end [2025-03-06 03:12:18] Production.INFO: ProcessCDR(1,14617643,1,1,2) [2025-03-06 03:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14617643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 03:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14617643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 03:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14617643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 03:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14617643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 03:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617643', 'tblTempUsageDetail_20' ) start [2025-03-06 03:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617643', 'tblTempUsageDetail_20' ) end [2025-03-06 03:12:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 03:12:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 03:12:21] Production.INFO: ==12513== Releasing lock... [2025-03-06 03:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 03:12:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-06 03:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 00:13:05 [end_date_ymd] => 2025-03-06 03:13:05 [RateCDR] => 1 ) [2025-03-06 03:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 00:13:05' and `end` < '2025-03-06 03:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 03:13:17] Production.INFO: count ==282 [2025-03-06 03:13:17] Production.ERROR: pbx CDR StartTime 2025-03-06 00:13:05 - End Time 2025-03-06 03:13:05 [2025-03-06 03:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 03:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617648', 'tblTempUsageDetail_20' ) start [2025-03-06 03:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617648', 'tblTempUsageDetail_20' ) end [2025-03-06 03:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617648', 'tblTempVendorCDR_20' ) start [2025-03-06 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617648', 'tblTempVendorCDR_20' ) end [2025-03-06 03:13:18] Production.INFO: ProcessCDR(1,14617648,1,1,2) [2025-03-06 03:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14617648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 03:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14617648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 03:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14617648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 03:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14617648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 03:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617648', 'tblTempUsageDetail_20' ) start [2025-03-06 03:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617648', 'tblTempUsageDetail_20' ) end [2025-03-06 03:13:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 03:13:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 03:13:21] Production.INFO: ==12659== Releasing lock... [2025-03-06 03:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 03:13:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-06 03:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 00:14:06 [end_date_ymd] => 2025-03-06 03:14:06 [RateCDR] => 1 ) [2025-03-06 03: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-03-06 00:14:06' and `end` < '2025-03-06 03: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-03-06 03:14:18] Production.INFO: count ==282 [2025-03-06 03:14:18] Production.ERROR: pbx CDR StartTime 2025-03-06 00:14:06 - End Time 2025-03-06 03:14:06 [2025-03-06 03:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617653', 'tblTempUsageDetail_20' ) start [2025-03-06 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617653', 'tblTempUsageDetail_20' ) end [2025-03-06 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617653', 'tblTempVendorCDR_20' ) start [2025-03-06 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617653', 'tblTempVendorCDR_20' ) end [2025-03-06 03:14:18] Production.INFO: ProcessCDR(1,14617653,1,1,2) [2025-03-06 03:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14617653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 03:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14617653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 03:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14617653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 03:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14617653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 03:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617653', 'tblTempUsageDetail_20' ) start [2025-03-06 03:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617653', 'tblTempUsageDetail_20' ) end [2025-03-06 03:14:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 03:14:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 03:14:21] Production.INFO: ==12730== Releasing lock... [2025-03-06 03:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 03:14:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-06 03:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 00:15:06 [end_date_ymd] => 2025-03-06 03:15:06 [RateCDR] => 1 ) [2025-03-06 03: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-03-06 00:15:06' and `end` < '2025-03-06 03: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-03-06 03:15:18] Production.INFO: count ==283 [2025-03-06 03:15:18] Production.ERROR: pbx CDR StartTime 2025-03-06 00:15:06 - End Time 2025-03-06 03:15:06 [2025-03-06 03:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617658', 'tblTempUsageDetail_20' ) start [2025-03-06 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617658', 'tblTempUsageDetail_20' ) end [2025-03-06 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617658', 'tblTempVendorCDR_20' ) start [2025-03-06 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617658', 'tblTempVendorCDR_20' ) end [2025-03-06 03:15:18] Production.INFO: ProcessCDR(1,14617658,1,1,2) [2025-03-06 03:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14617658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 03:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14617658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 03:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14617658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 03:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14617658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 03:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617658', 'tblTempUsageDetail_20' ) start [2025-03-06 03:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617658', 'tblTempUsageDetail_20' ) end [2025-03-06 03:15:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 03:15:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 03:15:22] Production.INFO: ==12799== Releasing lock... [2025-03-06 03:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 03:15:22] Production.INFO: 29.5 MB #Memory Used# [2025-03-06 03:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 00:16:06 [end_date_ymd] => 2025-03-06 03:16:06 [RateCDR] => 1 ) [2025-03-06 03: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-03-06 00:16:06' and `end` < '2025-03-06 03: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-03-06 03:16:18] Production.INFO: count ==282 [2025-03-06 03:16:18] Production.ERROR: pbx CDR StartTime 2025-03-06 00:16:06 - End Time 2025-03-06 03:16:06 [2025-03-06 03:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617663', 'tblTempUsageDetail_20' ) start [2025-03-06 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617663', 'tblTempUsageDetail_20' ) end [2025-03-06 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617663', 'tblTempVendorCDR_20' ) start [2025-03-06 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617663', 'tblTempVendorCDR_20' ) end [2025-03-06 03:16:18] Production.INFO: ProcessCDR(1,14617663,1,1,2) [2025-03-06 03:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14617663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 03:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14617663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 03:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14617663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 03:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14617663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 03:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617663', 'tblTempUsageDetail_20' ) start [2025-03-06 03:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617663', 'tblTempUsageDetail_20' ) end [2025-03-06 03:16:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 03:16:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 03:16:21] Production.INFO: ==12868== Releasing lock... [2025-03-06 03:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 03:16:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-06 03:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 00:17:06 [end_date_ymd] => 2025-03-06 03:17:06 [RateCDR] => 1 ) [2025-03-06 03: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-03-06 00:17:06' and `end` < '2025-03-06 03: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-03-06 03:17:18] Production.INFO: count ==282 [2025-03-06 03:17:18] Production.ERROR: pbx CDR StartTime 2025-03-06 00:17:06 - End Time 2025-03-06 03:17:06 [2025-03-06 03:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 03:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617668', 'tblTempUsageDetail_20' ) start [2025-03-06 03:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617668', 'tblTempUsageDetail_20' ) end [2025-03-06 03:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617668', 'tblTempVendorCDR_20' ) start [2025-03-06 03:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617668', 'tblTempVendorCDR_20' ) end [2025-03-06 03:17:18] Production.INFO: ProcessCDR(1,14617668,1,1,2) [2025-03-06 03:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14617668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 03:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14617668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 03:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14617668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 03:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14617668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 03:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617668', 'tblTempUsageDetail_20' ) start [2025-03-06 03:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617668', 'tblTempUsageDetail_20' ) end [2025-03-06 03:17:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 03:17:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 03:17:21] Production.INFO: ==13020== Releasing lock... [2025-03-06 03:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 03:17:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-06 03:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 00:18:06 [end_date_ymd] => 2025-03-06 03:18:06 [RateCDR] => 1 ) [2025-03-06 03: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-03-06 00:18:06' and `end` < '2025-03-06 03: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-03-06 03:18:18] Production.INFO: count ==279 [2025-03-06 03:18:18] Production.ERROR: pbx CDR StartTime 2025-03-06 00:18:06 - End Time 2025-03-06 03:18:06 [2025-03-06 03:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617673', 'tblTempUsageDetail_20' ) start [2025-03-06 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617673', 'tblTempUsageDetail_20' ) end [2025-03-06 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617673', 'tblTempVendorCDR_20' ) start [2025-03-06 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617673', 'tblTempVendorCDR_20' ) end [2025-03-06 03:18:18] Production.INFO: ProcessCDR(1,14617673,1,1,2) [2025-03-06 03:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14617673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 03:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14617673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 03:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14617673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 03:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14617673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 03:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617673', 'tblTempUsageDetail_20' ) start [2025-03-06 03:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617673', 'tblTempUsageDetail_20' ) end [2025-03-06 03:18:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 03:18:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 03:18:21] Production.INFO: ==13088== Releasing lock... [2025-03-06 03:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 03:18:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-06 03:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 00:19:05 [end_date_ymd] => 2025-03-06 03:19:05 [RateCDR] => 1 ) [2025-03-06 03:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 00:19:05' and `end` < '2025-03-06 03:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 03:19:17] Production.INFO: count ==279 [2025-03-06 03:19:17] Production.ERROR: pbx CDR StartTime 2025-03-06 00:19:05 - End Time 2025-03-06 03:19:05 [2025-03-06 03:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 03:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617678', 'tblTempUsageDetail_20' ) start [2025-03-06 03:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617678', 'tblTempUsageDetail_20' ) end [2025-03-06 03:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617678', 'tblTempVendorCDR_20' ) start [2025-03-06 03:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617678', 'tblTempVendorCDR_20' ) end [2025-03-06 03:19:17] Production.INFO: ProcessCDR(1,14617678,1,1,2) [2025-03-06 03:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14617678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 03:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14617678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 03:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14617678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 03:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14617678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 03:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617678', 'tblTempUsageDetail_20' ) start [2025-03-06 03:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617678', 'tblTempUsageDetail_20' ) end [2025-03-06 03:19:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 03:19:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 03:19:21] Production.INFO: ==13161== Releasing lock... [2025-03-06 03:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 03:19:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-06 03:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 00:20:06 [end_date_ymd] => 2025-03-06 03:20:06 [RateCDR] => 1 ) [2025-03-06 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-03-06 00:20:06' and `end` < '2025-03-06 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-03-06 03:20:18] Production.INFO: count ==280 [2025-03-06 03:20:18] Production.ERROR: pbx CDR StartTime 2025-03-06 00:20:06 - End Time 2025-03-06 03:20:06 [2025-03-06 03:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 03:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617684', 'tblTempUsageDetail_20' ) start [2025-03-06 03:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617684', 'tblTempUsageDetail_20' ) end [2025-03-06 03:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617684', 'tblTempVendorCDR_20' ) start [2025-03-06 03:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617684', 'tblTempVendorCDR_20' ) end [2025-03-06 03:20:18] Production.INFO: ProcessCDR(1,14617684,1,1,2) [2025-03-06 03:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14617684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 03:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14617684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 03:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14617684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 03:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14617684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 03:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617684', 'tblTempUsageDetail_20' ) start [2025-03-06 03:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617684', 'tblTempUsageDetail_20' ) end [2025-03-06 03:20:23] Production.ERROR: pbx prc_insertCDR start [2025-03-06 03:20:23] Production.ERROR: pbx prc_insertCDR end [2025-03-06 03:20:23] Production.INFO: ==13231== Releasing lock... [2025-03-06 03:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 03:20:23] Production.INFO: 29.5 MB #Memory Used# [2025-03-06 03:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 00:21:05 [end_date_ymd] => 2025-03-06 03:21:05 [RateCDR] => 1 ) [2025-03-06 03: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-03-06 00:21:05' and `end` < '2025-03-06 03: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-03-06 03:21:17] Production.INFO: count ==249 [2025-03-06 03:21:17] Production.ERROR: pbx CDR StartTime 2025-03-06 00:21:05 - End Time 2025-03-06 03:21:05 [2025-03-06 03:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 03:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617689', 'tblTempUsageDetail_20' ) start [2025-03-06 03:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617689', 'tblTempUsageDetail_20' ) end [2025-03-06 03:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617689', 'tblTempVendorCDR_20' ) start [2025-03-06 03:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617689', 'tblTempVendorCDR_20' ) end [2025-03-06 03:21:17] Production.INFO: ProcessCDR(1,14617689,1,1,2) [2025-03-06 03:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14617689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 03:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14617689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 03:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14617689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 03:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14617689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 03:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617689', 'tblTempUsageDetail_20' ) start [2025-03-06 03:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617689', 'tblTempUsageDetail_20' ) end [2025-03-06 03:21:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 03:21:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 03:21:21] Production.INFO: ==13304== Releasing lock... [2025-03-06 03:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 03:21:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-06 03:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 00:22:05 [end_date_ymd] => 2025-03-06 03:22:05 [RateCDR] => 1 ) [2025-03-06 03:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 00:22:05' and `end` < '2025-03-06 03:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 03:22:17] Production.INFO: count ==249 [2025-03-06 03:22:17] Production.ERROR: pbx CDR StartTime 2025-03-06 00:22:05 - End Time 2025-03-06 03:22:05 [2025-03-06 03:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 03:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617694', 'tblTempUsageDetail_20' ) start [2025-03-06 03:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617694', 'tblTempUsageDetail_20' ) end [2025-03-06 03:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617694', 'tblTempVendorCDR_20' ) start [2025-03-06 03:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617694', 'tblTempVendorCDR_20' ) end [2025-03-06 03:22:17] Production.INFO: ProcessCDR(1,14617694,1,1,2) [2025-03-06 03:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14617694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 03:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14617694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 03:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14617694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 03:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14617694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 03:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617694', 'tblTempUsageDetail_20' ) start [2025-03-06 03:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617694', 'tblTempUsageDetail_20' ) end [2025-03-06 03:22:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 03:22:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 03:22:21] Production.INFO: ==13372== Releasing lock... [2025-03-06 03:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 03:22:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-06 03:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 00:23:05 [end_date_ymd] => 2025-03-06 03:23:05 [RateCDR] => 1 ) [2025-03-06 03:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 00:23:05' and `end` < '2025-03-06 03:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 03:23:17] Production.INFO: count ==249 [2025-03-06 03:23:17] Production.ERROR: pbx CDR StartTime 2025-03-06 00:23:05 - End Time 2025-03-06 03:23:05 [2025-03-06 03:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 03:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617699', 'tblTempUsageDetail_20' ) start [2025-03-06 03:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617699', 'tblTempUsageDetail_20' ) end [2025-03-06 03:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617699', 'tblTempVendorCDR_20' ) start [2025-03-06 03:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617699', 'tblTempVendorCDR_20' ) end [2025-03-06 03:23:17] Production.INFO: ProcessCDR(1,14617699,1,1,2) [2025-03-06 03:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14617699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 03:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14617699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 03:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14617699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 03:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14617699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 03:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617699', 'tblTempUsageDetail_20' ) start [2025-03-06 03:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617699', 'tblTempUsageDetail_20' ) end [2025-03-06 03:23:20] Production.ERROR: pbx prc_insertCDR start [2025-03-06 03:23:20] Production.ERROR: pbx prc_insertCDR end [2025-03-06 03:23:20] Production.INFO: ==13480== Releasing lock... [2025-03-06 03:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 03:23:20] Production.INFO: 29.25 MB #Memory Used# [2025-03-06 03:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 00:24:05 [end_date_ymd] => 2025-03-06 03:24:05 [RateCDR] => 1 ) [2025-03-06 03:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 00:24:05' and `end` < '2025-03-06 03:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 03:24:17] Production.INFO: count ==249 [2025-03-06 03:24:17] Production.ERROR: pbx CDR StartTime 2025-03-06 00:24:05 - End Time 2025-03-06 03:24:05 [2025-03-06 03:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 03:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617704', 'tblTempUsageDetail_20' ) start [2025-03-06 03:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617704', 'tblTempUsageDetail_20' ) end [2025-03-06 03:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617704', 'tblTempVendorCDR_20' ) start [2025-03-06 03:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617704', 'tblTempVendorCDR_20' ) end [2025-03-06 03:24:17] Production.INFO: ProcessCDR(1,14617704,1,1,2) [2025-03-06 03:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14617704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 03:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14617704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 03:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14617704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 03:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14617704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 03:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617704', 'tblTempUsageDetail_20' ) start [2025-03-06 03:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617704', 'tblTempUsageDetail_20' ) end [2025-03-06 03:24:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 03:24:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 03:24:21] Production.INFO: ==13549== Releasing lock... [2025-03-06 03:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 03:24:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-06 03:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 00:25:04 [end_date_ymd] => 2025-03-06 03:25:04 [RateCDR] => 1 ) [2025-03-06 03: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-03-06 00:25:04' and `end` < '2025-03-06 03: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-03-06 03:25:16] Production.INFO: count ==249 [2025-03-06 03:25:16] Production.ERROR: pbx CDR StartTime 2025-03-06 00:25:04 - End Time 2025-03-06 03:25:04 [2025-03-06 03:25:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 03:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617709', 'tblTempUsageDetail_20' ) start [2025-03-06 03:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617709', 'tblTempUsageDetail_20' ) end [2025-03-06 03:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617709', 'tblTempVendorCDR_20' ) start [2025-03-06 03:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617709', 'tblTempVendorCDR_20' ) end [2025-03-06 03:25:16] Production.INFO: ProcessCDR(1,14617709,1,1,2) [2025-03-06 03:25:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14617709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 03:25:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14617709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 03:25:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14617709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 03:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14617709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 03:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617709', 'tblTempUsageDetail_20' ) start [2025-03-06 03:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617709', 'tblTempUsageDetail_20' ) end [2025-03-06 03:25:20] Production.ERROR: pbx prc_insertCDR start [2025-03-06 03:25:20] Production.ERROR: pbx prc_insertCDR end [2025-03-06 03:25:20] Production.INFO: ==13618== Releasing lock... [2025-03-06 03:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 03:25:20] Production.INFO: 29.25 MB #Memory Used# [2025-03-06 03:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 00:26:05 [end_date_ymd] => 2025-03-06 03:26:05 [RateCDR] => 1 ) [2025-03-06 03:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 00:26:05' and `end` < '2025-03-06 03:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 03:26:17] Production.INFO: count ==249 [2025-03-06 03:26:17] Production.ERROR: pbx CDR StartTime 2025-03-06 00:26:05 - End Time 2025-03-06 03:26:05 [2025-03-06 03:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 03:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617714', 'tblTempUsageDetail_20' ) start [2025-03-06 03:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617714', 'tblTempUsageDetail_20' ) end [2025-03-06 03:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617714', 'tblTempVendorCDR_20' ) start [2025-03-06 03:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617714', 'tblTempVendorCDR_20' ) end [2025-03-06 03:26:17] Production.INFO: ProcessCDR(1,14617714,1,1,2) [2025-03-06 03:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14617714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 03:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14617714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 03:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14617714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 03:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14617714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 03:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617714', 'tblTempUsageDetail_20' ) start [2025-03-06 03:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617714', 'tblTempUsageDetail_20' ) end [2025-03-06 03:26:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 03:26:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 03:26:21] Production.INFO: ==13689== Releasing lock... [2025-03-06 03:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 03:26:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-06 03:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 00:27:06 [end_date_ymd] => 2025-03-06 03:27:06 [RateCDR] => 1 ) [2025-03-06 03:27:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 00:27:06' and `end` < '2025-03-06 03:27:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 03:27:18] Production.INFO: count ==249 [2025-03-06 03:27:18] Production.ERROR: pbx CDR StartTime 2025-03-06 00:27:06 - End Time 2025-03-06 03:27:06 [2025-03-06 03:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617719', 'tblTempUsageDetail_20' ) start [2025-03-06 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617719', 'tblTempUsageDetail_20' ) end [2025-03-06 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617719', 'tblTempVendorCDR_20' ) start [2025-03-06 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617719', 'tblTempVendorCDR_20' ) end [2025-03-06 03:27:18] Production.INFO: ProcessCDR(1,14617719,1,1,2) [2025-03-06 03:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14617719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 03:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14617719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 03:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14617719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 03:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14617719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 03:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617719', 'tblTempUsageDetail_20' ) start [2025-03-06 03:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617719', 'tblTempUsageDetail_20' ) end [2025-03-06 03:27:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 03:27:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 03:27:21] Production.INFO: ==13774== Releasing lock... [2025-03-06 03:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 03:27:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-06 03:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 00:28:05 [end_date_ymd] => 2025-03-06 03:28:05 [RateCDR] => 1 ) [2025-03-06 03: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-03-06 00:28:05' and `end` < '2025-03-06 03: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-03-06 03:28:17] Production.INFO: count ==249 [2025-03-06 03:28:17] Production.ERROR: pbx CDR StartTime 2025-03-06 00:28:05 - End Time 2025-03-06 03:28:05 [2025-03-06 03:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 03:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617724', 'tblTempUsageDetail_20' ) start [2025-03-06 03:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617724', 'tblTempUsageDetail_20' ) end [2025-03-06 03:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617724', 'tblTempVendorCDR_20' ) start [2025-03-06 03:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617724', 'tblTempVendorCDR_20' ) end [2025-03-06 03:28:17] Production.INFO: ProcessCDR(1,14617724,1,1,2) [2025-03-06 03:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14617724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 03:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14617724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 03:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14617724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 03:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14617724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 03:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617724', 'tblTempUsageDetail_20' ) start [2025-03-06 03:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617724', 'tblTempUsageDetail_20' ) end [2025-03-06 03:28:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 03:28:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 03:28:21] Production.INFO: ==13864== Releasing lock... [2025-03-06 03:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 03:28:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-06 03:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 00:29:05 [end_date_ymd] => 2025-03-06 03:29:05 [RateCDR] => 1 ) [2025-03-06 03:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 00:29:05' and `end` < '2025-03-06 03:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 03:29:17] Production.INFO: count ==249 [2025-03-06 03:29:17] Production.ERROR: pbx CDR StartTime 2025-03-06 00:29:05 - End Time 2025-03-06 03:29:05 [2025-03-06 03:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 03:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617729', 'tblTempUsageDetail_20' ) start [2025-03-06 03:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617729', 'tblTempUsageDetail_20' ) end [2025-03-06 03:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617729', 'tblTempVendorCDR_20' ) start [2025-03-06 03:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617729', 'tblTempVendorCDR_20' ) end [2025-03-06 03:29:17] Production.INFO: ProcessCDR(1,14617729,1,1,2) [2025-03-06 03:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14617729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 03:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14617729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 03:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14617729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 03:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14617729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 03:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617729', 'tblTempUsageDetail_20' ) start [2025-03-06 03:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617729', 'tblTempUsageDetail_20' ) end [2025-03-06 03:29:20] Production.ERROR: pbx prc_insertCDR start [2025-03-06 03:29:20] Production.ERROR: pbx prc_insertCDR end [2025-03-06 03:29:20] Production.INFO: ==13932== Releasing lock... [2025-03-06 03:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 03:29:20] Production.INFO: 29.25 MB #Memory Used# [2025-03-06 03:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 00:30:06 [end_date_ymd] => 2025-03-06 03:30:06 [RateCDR] => 1 ) [2025-03-06 03:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 00:30:06' and `end` < '2025-03-06 03:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 03:30:18] Production.INFO: count ==245 [2025-03-06 03:30:18] Production.ERROR: pbx CDR StartTime 2025-03-06 00:30:06 - End Time 2025-03-06 03:30:06 [2025-03-06 03:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 03:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617735', 'tblTempUsageDetail_20' ) start [2025-03-06 03:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617735', 'tblTempUsageDetail_20' ) end [2025-03-06 03:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617735', 'tblTempVendorCDR_20' ) start [2025-03-06 03:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617735', 'tblTempVendorCDR_20' ) end [2025-03-06 03:30:18] Production.INFO: ProcessCDR(1,14617735,1,1,2) [2025-03-06 03:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14617735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 03:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14617735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 03:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14617735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 03:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14617735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 03:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617735', 'tblTempUsageDetail_20' ) start [2025-03-06 03:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617735', 'tblTempUsageDetail_20' ) end [2025-03-06 03:30:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 03:30:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 03:30:22] Production.INFO: ==14003== Releasing lock... [2025-03-06 03:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 03:30:22] Production.INFO: 29.25 MB #Memory Used# [2025-03-06 03:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 00:31:06 [end_date_ymd] => 2025-03-06 03:31:06 [RateCDR] => 1 ) [2025-03-06 03:31:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 00:31:06' and `end` < '2025-03-06 03:31:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 03:31:18] Production.INFO: count ==235 [2025-03-06 03:31:18] Production.ERROR: pbx CDR StartTime 2025-03-06 00:31:06 - End Time 2025-03-06 03:31:06 [2025-03-06 03:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617740', 'tblTempUsageDetail_20' ) start [2025-03-06 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617740', 'tblTempUsageDetail_20' ) end [2025-03-06 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617740', 'tblTempVendorCDR_20' ) start [2025-03-06 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617740', 'tblTempVendorCDR_20' ) end [2025-03-06 03:31:18] Production.INFO: ProcessCDR(1,14617740,1,1,2) [2025-03-06 03:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14617740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 03:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14617740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 03:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14617740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 03:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14617740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 03:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617740', 'tblTempUsageDetail_20' ) start [2025-03-06 03:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617740', 'tblTempUsageDetail_20' ) end [2025-03-06 03:31:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 03:31:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 03:31:21] Production.INFO: ==14075== Releasing lock... [2025-03-06 03:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 03:31:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-06 03:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 00:32:06 [end_date_ymd] => 2025-03-06 03:32:06 [RateCDR] => 1 ) [2025-03-06 03: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-03-06 00:32:06' and `end` < '2025-03-06 03: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-03-06 03:32:18] Production.INFO: count ==235 [2025-03-06 03:32:18] Production.ERROR: pbx CDR StartTime 2025-03-06 00:32:06 - End Time 2025-03-06 03:32:06 [2025-03-06 03:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617745', 'tblTempUsageDetail_20' ) start [2025-03-06 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617745', 'tblTempUsageDetail_20' ) end [2025-03-06 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617745', 'tblTempVendorCDR_20' ) start [2025-03-06 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617745', 'tblTempVendorCDR_20' ) end [2025-03-06 03:32:18] Production.INFO: ProcessCDR(1,14617745,1,1,2) [2025-03-06 03:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14617745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 03:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14617745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 03:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14617745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 03:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14617745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 03:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617745', 'tblTempUsageDetail_20' ) start [2025-03-06 03:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617745', 'tblTempUsageDetail_20' ) end [2025-03-06 03:32:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 03:32:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 03:32:22] Production.INFO: ==14146== Releasing lock... [2025-03-06 03:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 03:32:22] Production.INFO: 29.25 MB #Memory Used# [2025-03-06 03:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 00:33:05 [end_date_ymd] => 2025-03-06 03:33:05 [RateCDR] => 1 ) [2025-03-06 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-03-06 00:33:05' and `end` < '2025-03-06 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-03-06 03:33:17] Production.INFO: count ==232 [2025-03-06 03:33:17] Production.ERROR: pbx CDR StartTime 2025-03-06 00:33:05 - End Time 2025-03-06 03:33:05 [2025-03-06 03:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 03:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617750', 'tblTempUsageDetail_20' ) start [2025-03-06 03:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617750', 'tblTempUsageDetail_20' ) end [2025-03-06 03:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617750', 'tblTempVendorCDR_20' ) start [2025-03-06 03:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617750', 'tblTempVendorCDR_20' ) end [2025-03-06 03:33:17] Production.INFO: ProcessCDR(1,14617750,1,1,2) [2025-03-06 03:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14617750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 03:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14617750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 03:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14617750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 03:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14617750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 03:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617750', 'tblTempUsageDetail_20' ) start [2025-03-06 03:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617750', 'tblTempUsageDetail_20' ) end [2025-03-06 03:33:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 03:33:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 03:33:21] Production.INFO: ==14224== Releasing lock... [2025-03-06 03:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 03:33:21] Production.INFO: 29 MB #Memory Used# [2025-03-06 03:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 00:34:06 [end_date_ymd] => 2025-03-06 03:34:06 [RateCDR] => 1 ) [2025-03-06 03: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-03-06 00:34:06' and `end` < '2025-03-06 03: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-03-06 03:34:18] Production.INFO: count ==230 [2025-03-06 03:34:18] Production.ERROR: pbx CDR StartTime 2025-03-06 00:34:06 - End Time 2025-03-06 03:34:06 [2025-03-06 03:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617755', 'tblTempUsageDetail_20' ) start [2025-03-06 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617755', 'tblTempUsageDetail_20' ) end [2025-03-06 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617755', 'tblTempVendorCDR_20' ) start [2025-03-06 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617755', 'tblTempVendorCDR_20' ) end [2025-03-06 03:34:18] Production.INFO: ProcessCDR(1,14617755,1,1,2) [2025-03-06 03:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14617755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 03:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14617755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 03:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14617755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 03:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14617755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 03:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617755', 'tblTempUsageDetail_20' ) start [2025-03-06 03:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617755', 'tblTempUsageDetail_20' ) end [2025-03-06 03:34:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 03:34:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 03:34:21] Production.INFO: ==14299== Releasing lock... [2025-03-06 03:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 03:34:21] Production.INFO: 29 MB #Memory Used# [2025-03-06 03:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 00:35:05 [end_date_ymd] => 2025-03-06 03:35:05 [RateCDR] => 1 ) [2025-03-06 03:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 00:35:05' and `end` < '2025-03-06 03:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 03:35:17] Production.INFO: count ==230 [2025-03-06 03:35:17] Production.ERROR: pbx CDR StartTime 2025-03-06 00:35:05 - End Time 2025-03-06 03:35:05 [2025-03-06 03:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 03:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617760', 'tblTempUsageDetail_20' ) start [2025-03-06 03:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617760', 'tblTempUsageDetail_20' ) end [2025-03-06 03:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617760', 'tblTempVendorCDR_20' ) start [2025-03-06 03:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617760', 'tblTempVendorCDR_20' ) end [2025-03-06 03:35:17] Production.INFO: ProcessCDR(1,14617760,1,1,2) [2025-03-06 03:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14617760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 03:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14617760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 03:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14617760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 03:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14617760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 03:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617760', 'tblTempUsageDetail_20' ) start [2025-03-06 03:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617760', 'tblTempUsageDetail_20' ) end [2025-03-06 03:35:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 03:35:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 03:35:21] Production.INFO: ==14369== Releasing lock... [2025-03-06 03:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 03:35:21] Production.INFO: 29 MB #Memory Used# [2025-03-06 03:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 00:36:06 [end_date_ymd] => 2025-03-06 03:36:06 [RateCDR] => 1 ) [2025-03-06 03: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-03-06 00:36:06' and `end` < '2025-03-06 03: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-03-06 03:36:18] Production.INFO: count ==231 [2025-03-06 03:36:18] Production.ERROR: pbx CDR StartTime 2025-03-06 00:36:06 - End Time 2025-03-06 03:36:06 [2025-03-06 03:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617765', 'tblTempUsageDetail_20' ) start [2025-03-06 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617765', 'tblTempUsageDetail_20' ) end [2025-03-06 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617765', 'tblTempVendorCDR_20' ) start [2025-03-06 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617765', 'tblTempVendorCDR_20' ) end [2025-03-06 03:36:18] Production.INFO: ProcessCDR(1,14617765,1,1,2) [2025-03-06 03:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14617765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 03:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14617765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 03:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14617765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 03:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14617765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 03:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617765', 'tblTempUsageDetail_20' ) start [2025-03-06 03:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617765', 'tblTempUsageDetail_20' ) end [2025-03-06 03:36:23] Production.ERROR: pbx prc_insertCDR start [2025-03-06 03:36:23] Production.ERROR: pbx prc_insertCDR end [2025-03-06 03:36:23] Production.INFO: ==14444== Releasing lock... [2025-03-06 03:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 03:36:23] Production.INFO: 29 MB #Memory Used# [2025-03-06 03:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 00:37:06 [end_date_ymd] => 2025-03-06 03:37:06 [RateCDR] => 1 ) [2025-03-06 03:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 00:37:06' and `end` < '2025-03-06 03:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 03:37:18] Production.INFO: count ==231 [2025-03-06 03:37:18] Production.ERROR: pbx CDR StartTime 2025-03-06 00:37:06 - End Time 2025-03-06 03:37:06 [2025-03-06 03:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617770', 'tblTempUsageDetail_20' ) start [2025-03-06 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617770', 'tblTempUsageDetail_20' ) end [2025-03-06 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617770', 'tblTempVendorCDR_20' ) start [2025-03-06 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617770', 'tblTempVendorCDR_20' ) end [2025-03-06 03:37:18] Production.INFO: ProcessCDR(1,14617770,1,1,2) [2025-03-06 03:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14617770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 03:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14617770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 03:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14617770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 03:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14617770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 03:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617770', 'tblTempUsageDetail_20' ) start [2025-03-06 03:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617770', 'tblTempUsageDetail_20' ) end [2025-03-06 03:37:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 03:37:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 03:37:21] Production.INFO: ==14516== Releasing lock... [2025-03-06 03:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 03:37:21] Production.INFO: 29 MB #Memory Used# [2025-03-06 03:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 00:38:06 [end_date_ymd] => 2025-03-06 03:38:06 [RateCDR] => 1 ) [2025-03-06 03: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-03-06 00:38:06' and `end` < '2025-03-06 03: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-03-06 03:38:18] Production.INFO: count ==231 [2025-03-06 03:38:18] Production.ERROR: pbx CDR StartTime 2025-03-06 00:38:06 - End Time 2025-03-06 03:38:06 [2025-03-06 03:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617775', 'tblTempUsageDetail_20' ) start [2025-03-06 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617775', 'tblTempUsageDetail_20' ) end [2025-03-06 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617775', 'tblTempVendorCDR_20' ) start [2025-03-06 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617775', 'tblTempVendorCDR_20' ) end [2025-03-06 03:38:18] Production.INFO: ProcessCDR(1,14617775,1,1,2) [2025-03-06 03:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14617775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 03:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14617775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 03:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14617775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 03:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14617775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 03:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617775', 'tblTempUsageDetail_20' ) start [2025-03-06 03:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617775', 'tblTempUsageDetail_20' ) end [2025-03-06 03:38:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 03:38:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 03:38:21] Production.INFO: ==14628== Releasing lock... [2025-03-06 03:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 03:38:21] Production.INFO: 29 MB #Memory Used# [2025-03-06 03:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 00:39:05 [end_date_ymd] => 2025-03-06 03:39:05 [RateCDR] => 1 ) [2025-03-06 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-03-06 00:39:05' and `end` < '2025-03-06 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-03-06 03:39:17] Production.INFO: count ==231 [2025-03-06 03:39:17] Production.ERROR: pbx CDR StartTime 2025-03-06 00:39:05 - End Time 2025-03-06 03:39:05 [2025-03-06 03:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 03:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617780', 'tblTempUsageDetail_20' ) start [2025-03-06 03:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617780', 'tblTempUsageDetail_20' ) end [2025-03-06 03:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617780', 'tblTempVendorCDR_20' ) start [2025-03-06 03:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617780', 'tblTempVendorCDR_20' ) end [2025-03-06 03:39:17] Production.INFO: ProcessCDR(1,14617780,1,1,2) [2025-03-06 03:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14617780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 03:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14617780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 03:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14617780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 03:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14617780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 03:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617780', 'tblTempUsageDetail_20' ) start [2025-03-06 03:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617780', 'tblTempUsageDetail_20' ) end [2025-03-06 03:39:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 03:39:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 03:39:21] Production.INFO: ==14698== Releasing lock... [2025-03-06 03:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 03:39:21] Production.INFO: 29 MB #Memory Used# [2025-03-06 03:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 00:40:07 [end_date_ymd] => 2025-03-06 03:40:07 [RateCDR] => 1 ) [2025-03-06 03:40:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 00:40:07' and `end` < '2025-03-06 03:40:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 03:40:19] Production.INFO: count ==225 [2025-03-06 03:40:19] Production.ERROR: pbx CDR StartTime 2025-03-06 00:40:07 - End Time 2025-03-06 03:40:07 [2025-03-06 03:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617786', 'tblTempUsageDetail_20' ) start [2025-03-06 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617786', 'tblTempUsageDetail_20' ) end [2025-03-06 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617786', 'tblTempVendorCDR_20' ) start [2025-03-06 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617786', 'tblTempVendorCDR_20' ) end [2025-03-06 03:40:19] Production.INFO: ProcessCDR(1,14617786,1,1,2) [2025-03-06 03:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14617786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 03:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14617786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 03:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14617786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 03:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14617786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 03:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617786', 'tblTempUsageDetail_20' ) start [2025-03-06 03:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617786', 'tblTempUsageDetail_20' ) end [2025-03-06 03:40:23] Production.ERROR: pbx prc_insertCDR start [2025-03-06 03:40:23] Production.ERROR: pbx prc_insertCDR end [2025-03-06 03:40:23] Production.INFO: ==14771== Releasing lock... [2025-03-06 03:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 03:40:23] Production.INFO: 29 MB #Memory Used# [2025-03-06 03:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 00:41:06 [end_date_ymd] => 2025-03-06 03:41:06 [RateCDR] => 1 ) [2025-03-06 03:41:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 00:41:06' and `end` < '2025-03-06 03:41:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 03:41:18] Production.INFO: count ==209 [2025-03-06 03:41:18] Production.ERROR: pbx CDR StartTime 2025-03-06 00:41:06 - End Time 2025-03-06 03:41:06 [2025-03-06 03:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617791', 'tblTempUsageDetail_20' ) start [2025-03-06 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617791', 'tblTempUsageDetail_20' ) end [2025-03-06 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617791', 'tblTempVendorCDR_20' ) start [2025-03-06 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617791', 'tblTempVendorCDR_20' ) end [2025-03-06 03:41:18] Production.INFO: ProcessCDR(1,14617791,1,1,2) [2025-03-06 03:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14617791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 03:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14617791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 03:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14617791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 03:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14617791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 03:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617791', 'tblTempUsageDetail_20' ) start [2025-03-06 03:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617791', 'tblTempUsageDetail_20' ) end [2025-03-06 03:41:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 03:41:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 03:41:22] Production.INFO: ==14844== Releasing lock... [2025-03-06 03:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 03:41:22] Production.INFO: 29 MB #Memory Used# [2025-03-06 03:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 00:42:06 [end_date_ymd] => 2025-03-06 03:42:06 [RateCDR] => 1 ) [2025-03-06 03: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-03-06 00:42:06' and `end` < '2025-03-06 03: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-03-06 03:42:18] Production.INFO: count ==209 [2025-03-06 03:42:18] Production.ERROR: pbx CDR StartTime 2025-03-06 00:42:06 - End Time 2025-03-06 03:42:06 [2025-03-06 03:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617796', 'tblTempUsageDetail_20' ) start [2025-03-06 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617796', 'tblTempUsageDetail_20' ) end [2025-03-06 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617796', 'tblTempVendorCDR_20' ) start [2025-03-06 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617796', 'tblTempVendorCDR_20' ) end [2025-03-06 03:42:18] Production.INFO: ProcessCDR(1,14617796,1,1,2) [2025-03-06 03:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14617796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 03:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14617796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 03:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14617796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 03:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14617796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 03:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617796', 'tblTempUsageDetail_20' ) start [2025-03-06 03:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617796', 'tblTempUsageDetail_20' ) end [2025-03-06 03:42:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 03:42:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 03:42:22] Production.INFO: ==14914== Releasing lock... [2025-03-06 03:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 03:42:22] Production.INFO: 29 MB #Memory Used# [2025-03-06 03:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 00:43:06 [end_date_ymd] => 2025-03-06 03:43:06 [RateCDR] => 1 ) [2025-03-06 03: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-03-06 00:43:06' and `end` < '2025-03-06 03: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-03-06 03:43:18] Production.INFO: count ==209 [2025-03-06 03:43:18] Production.ERROR: pbx CDR StartTime 2025-03-06 00:43:06 - End Time 2025-03-06 03:43:06 [2025-03-06 03:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617801', 'tblTempUsageDetail_20' ) start [2025-03-06 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617801', 'tblTempUsageDetail_20' ) end [2025-03-06 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617801', 'tblTempVendorCDR_20' ) start [2025-03-06 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617801', 'tblTempVendorCDR_20' ) end [2025-03-06 03:43:18] Production.INFO: ProcessCDR(1,14617801,1,1,2) [2025-03-06 03:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14617801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 03:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14617801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 03:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14617801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 03:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14617801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 03:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617801', 'tblTempUsageDetail_20' ) start [2025-03-06 03:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617801', 'tblTempUsageDetail_20' ) end [2025-03-06 03:43:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 03:43:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 03:43:21] Production.INFO: ==14984== Releasing lock... [2025-03-06 03:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 03:43:21] Production.INFO: 29 MB #Memory Used# [2025-03-06 03:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 00:44:06 [end_date_ymd] => 2025-03-06 03:44:06 [RateCDR] => 1 ) [2025-03-06 03:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 00:44:06' and `end` < '2025-03-06 03:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 03:44:18] Production.INFO: count ==209 [2025-03-06 03:44:18] Production.ERROR: pbx CDR StartTime 2025-03-06 00:44:06 - End Time 2025-03-06 03:44:06 [2025-03-06 03:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617806', 'tblTempUsageDetail_20' ) start [2025-03-06 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617806', 'tblTempUsageDetail_20' ) end [2025-03-06 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617806', 'tblTempVendorCDR_20' ) start [2025-03-06 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617806', 'tblTempVendorCDR_20' ) end [2025-03-06 03:44:18] Production.INFO: ProcessCDR(1,14617806,1,1,2) [2025-03-06 03:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14617806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 03:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14617806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 03:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14617806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 03:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14617806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 03:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617806', 'tblTempUsageDetail_20' ) start [2025-03-06 03:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617806', 'tblTempUsageDetail_20' ) end [2025-03-06 03:44:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 03:44:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 03:44:21] Production.INFO: ==15054== Releasing lock... [2025-03-06 03:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 03:44:21] Production.INFO: 29 MB #Memory Used# [2025-03-06 03:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 00:45:05 [end_date_ymd] => 2025-03-06 03:45:05 [RateCDR] => 1 ) [2025-03-06 03:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 00:45:05' and `end` < '2025-03-06 03:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 03:45:17] Production.INFO: count ==209 [2025-03-06 03:45:17] Production.ERROR: pbx CDR StartTime 2025-03-06 00:45:05 - End Time 2025-03-06 03:45:05 [2025-03-06 03:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 03:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617811', 'tblTempUsageDetail_20' ) start [2025-03-06 03:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617811', 'tblTempUsageDetail_20' ) end [2025-03-06 03:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617811', 'tblTempVendorCDR_20' ) start [2025-03-06 03:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617811', 'tblTempVendorCDR_20' ) end [2025-03-06 03:45:17] Production.INFO: ProcessCDR(1,14617811,1,1,2) [2025-03-06 03:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14617811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 03:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14617811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 03:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14617811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 03:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14617811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 03:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617811', 'tblTempUsageDetail_20' ) start [2025-03-06 03:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617811', 'tblTempUsageDetail_20' ) end [2025-03-06 03:45:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 03:45:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 03:45:21] Production.INFO: ==15124== Releasing lock... [2025-03-06 03:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 03:45:21] Production.INFO: 29 MB #Memory Used# [2025-03-06 03:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 00:46:06 [end_date_ymd] => 2025-03-06 03:46:06 [RateCDR] => 1 ) [2025-03-06 03: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-03-06 00:46:06' and `end` < '2025-03-06 03: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-03-06 03:46:18] Production.INFO: count ==209 [2025-03-06 03:46:18] Production.ERROR: pbx CDR StartTime 2025-03-06 00:46:06 - End Time 2025-03-06 03:46:06 [2025-03-06 03:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617816', 'tblTempUsageDetail_20' ) start [2025-03-06 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617816', 'tblTempUsageDetail_20' ) end [2025-03-06 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617816', 'tblTempVendorCDR_20' ) start [2025-03-06 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617816', 'tblTempVendorCDR_20' ) end [2025-03-06 03:46:18] Production.INFO: ProcessCDR(1,14617816,1,1,2) [2025-03-06 03:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14617816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 03:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14617816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 03:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14617816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 03:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14617816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 03:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617816', 'tblTempUsageDetail_20' ) start [2025-03-06 03:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617816', 'tblTempUsageDetail_20' ) end [2025-03-06 03:46:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 03:46:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 03:46:22] Production.INFO: ==15195== Releasing lock... [2025-03-06 03:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 03:46:22] Production.INFO: 29 MB #Memory Used# [2025-03-06 03:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 00:47:05 [end_date_ymd] => 2025-03-06 03:47:05 [RateCDR] => 1 ) [2025-03-06 03:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 00:47:05' and `end` < '2025-03-06 03:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 03:47:17] Production.INFO: count ==209 [2025-03-06 03:47:17] Production.ERROR: pbx CDR StartTime 2025-03-06 00:47:05 - End Time 2025-03-06 03:47:05 [2025-03-06 03:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 03:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617821', 'tblTempUsageDetail_20' ) start [2025-03-06 03:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617821', 'tblTempUsageDetail_20' ) end [2025-03-06 03:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617821', 'tblTempVendorCDR_20' ) start [2025-03-06 03:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617821', 'tblTempVendorCDR_20' ) end [2025-03-06 03:47:17] Production.INFO: ProcessCDR(1,14617821,1,1,2) [2025-03-06 03:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14617821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 03:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14617821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 03:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14617821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 03:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14617821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 03:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617821', 'tblTempUsageDetail_20' ) start [2025-03-06 03:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617821', 'tblTempUsageDetail_20' ) end [2025-03-06 03:47:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 03:47:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 03:47:21] Production.INFO: ==15265== Releasing lock... [2025-03-06 03:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 03:47:21] Production.INFO: 29 MB #Memory Used# [2025-03-06 03:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 00:48:06 [end_date_ymd] => 2025-03-06 03:48:06 [RateCDR] => 1 ) [2025-03-06 03: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-03-06 00:48:06' and `end` < '2025-03-06 03: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-03-06 03:48:18] Production.INFO: count ==208 [2025-03-06 03:48:18] Production.ERROR: pbx CDR StartTime 2025-03-06 00:48:06 - End Time 2025-03-06 03:48:06 [2025-03-06 03:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617826', 'tblTempUsageDetail_20' ) start [2025-03-06 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617826', 'tblTempUsageDetail_20' ) end [2025-03-06 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617826', 'tblTempVendorCDR_20' ) start [2025-03-06 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617826', 'tblTempVendorCDR_20' ) end [2025-03-06 03:48:18] Production.INFO: ProcessCDR(1,14617826,1,1,2) [2025-03-06 03:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14617826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 03:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14617826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 03:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14617826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 03:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14617826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 03:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617826', 'tblTempUsageDetail_20' ) start [2025-03-06 03:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617826', 'tblTempUsageDetail_20' ) end [2025-03-06 03:48:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 03:48:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 03:48:21] Production.INFO: ==15340== Releasing lock... [2025-03-06 03:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 03:48:21] Production.INFO: 29 MB #Memory Used# [2025-03-06 03:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 00:49:06 [end_date_ymd] => 2025-03-06 03:49:06 [RateCDR] => 1 ) [2025-03-06 03: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-03-06 00:49:06' and `end` < '2025-03-06 03: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-03-06 03:49:18] Production.INFO: count ==208 [2025-03-06 03:49:18] Production.ERROR: pbx CDR StartTime 2025-03-06 00:49:06 - End Time 2025-03-06 03:49:06 [2025-03-06 03:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617831', 'tblTempUsageDetail_20' ) start [2025-03-06 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617831', 'tblTempUsageDetail_20' ) end [2025-03-06 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617831', 'tblTempVendorCDR_20' ) start [2025-03-06 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617831', 'tblTempVendorCDR_20' ) end [2025-03-06 03:49:18] Production.INFO: ProcessCDR(1,14617831,1,1,2) [2025-03-06 03:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14617831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 03:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14617831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 03:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14617831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 03:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14617831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 03:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617831', 'tblTempUsageDetail_20' ) start [2025-03-06 03:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617831', 'tblTempUsageDetail_20' ) end [2025-03-06 03:49:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 03:49:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 03:49:21] Production.INFO: ==15413== Releasing lock... [2025-03-06 03:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 03:49:21] Production.INFO: 29 MB #Memory Used# [2025-03-06 03:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 00:50:07 [end_date_ymd] => 2025-03-06 03:50:07 [RateCDR] => 1 ) [2025-03-06 03:50: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-03-06 00:50:07' and `end` < '2025-03-06 03:50: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-03-06 03:50:19] Production.INFO: count ==202 [2025-03-06 03:50:19] Production.ERROR: pbx CDR StartTime 2025-03-06 00:50:07 - End Time 2025-03-06 03:50:07 [2025-03-06 03:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 03:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617836', 'tblTempUsageDetail_20' ) start [2025-03-06 03:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617836', 'tblTempUsageDetail_20' ) end [2025-03-06 03:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617836', 'tblTempVendorCDR_20' ) start [2025-03-06 03:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617836', 'tblTempVendorCDR_20' ) end [2025-03-06 03:50:19] Production.INFO: ProcessCDR(1,14617836,1,1,2) [2025-03-06 03:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14617836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 03:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14617836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 03:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14617836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 03:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14617836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 03:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617836', 'tblTempUsageDetail_20' ) start [2025-03-06 03:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617836', 'tblTempUsageDetail_20' ) end [2025-03-06 03:50:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 03:50:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 03:50:22] Production.INFO: ==15485== Releasing lock... [2025-03-06 03:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 03:50:22] Production.INFO: 28.75 MB #Memory Used# [2025-03-06 03:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 00:51:06 [end_date_ymd] => 2025-03-06 03:51:06 [RateCDR] => 1 ) [2025-03-06 03: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-03-06 00:51:06' and `end` < '2025-03-06 03: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-03-06 03:51:18] Production.INFO: count ==202 [2025-03-06 03:51:18] Production.ERROR: pbx CDR StartTime 2025-03-06 00:51:06 - End Time 2025-03-06 03:51:06 [2025-03-06 03:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617842', 'tblTempUsageDetail_20' ) start [2025-03-06 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617842', 'tblTempUsageDetail_20' ) end [2025-03-06 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617842', 'tblTempVendorCDR_20' ) start [2025-03-06 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617842', 'tblTempVendorCDR_20' ) end [2025-03-06 03:51:18] Production.INFO: ProcessCDR(1,14617842,1,1,2) [2025-03-06 03:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14617842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 03:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14617842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 03:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14617842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 03:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14617842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 03:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617842', 'tblTempUsageDetail_20' ) start [2025-03-06 03:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617842', 'tblTempUsageDetail_20' ) end [2025-03-06 03:51:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 03:51:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 03:51:21] Production.INFO: ==15557== Releasing lock... [2025-03-06 03:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 03:51:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-06 03:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 00:52:06 [end_date_ymd] => 2025-03-06 03:52:06 [RateCDR] => 1 ) [2025-03-06 03: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-03-06 00:52:06' and `end` < '2025-03-06 03: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-03-06 03:52:18] Production.INFO: count ==202 [2025-03-06 03:52:18] Production.ERROR: pbx CDR StartTime 2025-03-06 00:52:06 - End Time 2025-03-06 03:52:06 [2025-03-06 03:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617847', 'tblTempUsageDetail_20' ) start [2025-03-06 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617847', 'tblTempUsageDetail_20' ) end [2025-03-06 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617847', 'tblTempVendorCDR_20' ) start [2025-03-06 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617847', 'tblTempVendorCDR_20' ) end [2025-03-06 03:52:18] Production.INFO: ProcessCDR(1,14617847,1,1,2) [2025-03-06 03:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14617847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 03:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14617847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 03:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14617847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 03:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14617847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 03:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617847', 'tblTempUsageDetail_20' ) start [2025-03-06 03:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617847', 'tblTempUsageDetail_20' ) end [2025-03-06 03:52:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 03:52:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 03:52:21] Production.INFO: ==15629== Releasing lock... [2025-03-06 03:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 03:52:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-06 03:53:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 00:53:07 [end_date_ymd] => 2025-03-06 03:53:07 [RateCDR] => 1 ) [2025-03-06 03:53: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-03-06 00:53:07' and `end` < '2025-03-06 03:53: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-03-06 03:53:19] Production.INFO: count ==202 [2025-03-06 03:53:19] Production.ERROR: pbx CDR StartTime 2025-03-06 00:53:07 - End Time 2025-03-06 03:53:07 [2025-03-06 03:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 03:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617852', 'tblTempUsageDetail_20' ) start [2025-03-06 03:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617852', 'tblTempUsageDetail_20' ) end [2025-03-06 03:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617852', 'tblTempVendorCDR_20' ) start [2025-03-06 03:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617852', 'tblTempVendorCDR_20' ) end [2025-03-06 03:53:19] Production.INFO: ProcessCDR(1,14617852,1,1,2) [2025-03-06 03:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14617852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 03:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14617852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 03:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14617852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 03:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14617852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 03:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617852', 'tblTempUsageDetail_20' ) start [2025-03-06 03:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617852', 'tblTempUsageDetail_20' ) end [2025-03-06 03:53:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 03:53:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 03:53:22] Production.INFO: ==15702== Releasing lock... [2025-03-06 03:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 03:53:22] Production.INFO: 28.75 MB #Memory Used# [2025-03-06 03:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 00:54:06 [end_date_ymd] => 2025-03-06 03:54:06 [RateCDR] => 1 ) [2025-03-06 03: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-03-06 00:54:06' and `end` < '2025-03-06 03: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-03-06 03:54:18] Production.INFO: count ==201 [2025-03-06 03:54:18] Production.ERROR: pbx CDR StartTime 2025-03-06 00:54:06 - End Time 2025-03-06 03:54:06 [2025-03-06 03:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617857', 'tblTempUsageDetail_20' ) start [2025-03-06 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617857', 'tblTempUsageDetail_20' ) end [2025-03-06 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617857', 'tblTempVendorCDR_20' ) start [2025-03-06 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617857', 'tblTempVendorCDR_20' ) end [2025-03-06 03:54:18] Production.INFO: ProcessCDR(1,14617857,1,1,2) [2025-03-06 03:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14617857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 03:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14617857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 03:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14617857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 03:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14617857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 03:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617857', 'tblTempUsageDetail_20' ) start [2025-03-06 03:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617857', 'tblTempUsageDetail_20' ) end [2025-03-06 03:54:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 03:54:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 03:54:22] Production.INFO: ==15810== Releasing lock... [2025-03-06 03:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 03:54:22] Production.INFO: 28.75 MB #Memory Used# [2025-03-06 03:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 00:55:06 [end_date_ymd] => 2025-03-06 03:55:06 [RateCDR] => 1 ) [2025-03-06 03: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-03-06 00:55:06' and `end` < '2025-03-06 03: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-03-06 03:55:18] Production.INFO: count ==201 [2025-03-06 03:55:18] Production.ERROR: pbx CDR StartTime 2025-03-06 00:55:06 - End Time 2025-03-06 03:55:06 [2025-03-06 03:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617862', 'tblTempUsageDetail_20' ) start [2025-03-06 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617862', 'tblTempUsageDetail_20' ) end [2025-03-06 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617862', 'tblTempVendorCDR_20' ) start [2025-03-06 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617862', 'tblTempVendorCDR_20' ) end [2025-03-06 03:55:18] Production.INFO: ProcessCDR(1,14617862,1,1,2) [2025-03-06 03:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14617862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 03:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14617862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 03:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14617862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 03:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14617862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 03:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617862', 'tblTempUsageDetail_20' ) start [2025-03-06 03:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617862', 'tblTempUsageDetail_20' ) end [2025-03-06 03:55:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 03:55:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 03:55:22] Production.INFO: ==15879== Releasing lock... [2025-03-06 03:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 03:55:22] Production.INFO: 28.75 MB #Memory Used# [2025-03-06 03:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 00:56:05 [end_date_ymd] => 2025-03-06 03:56:05 [RateCDR] => 1 ) [2025-03-06 03:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 00:56:05' and `end` < '2025-03-06 03:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 03:56:17] Production.INFO: count ==201 [2025-03-06 03:56:17] Production.ERROR: pbx CDR StartTime 2025-03-06 00:56:05 - End Time 2025-03-06 03:56:05 [2025-03-06 03:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 03:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617867', 'tblTempUsageDetail_20' ) start [2025-03-06 03:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617867', 'tblTempUsageDetail_20' ) end [2025-03-06 03:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617867', 'tblTempVendorCDR_20' ) start [2025-03-06 03:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617867', 'tblTempVendorCDR_20' ) end [2025-03-06 03:56:17] Production.INFO: ProcessCDR(1,14617867,1,1,2) [2025-03-06 03:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14617867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 03:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14617867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 03:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14617867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 03:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14617867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 03:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617867', 'tblTempUsageDetail_20' ) start [2025-03-06 03:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617867', 'tblTempUsageDetail_20' ) end [2025-03-06 03:56:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 03:56:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 03:56:21] Production.INFO: ==15956== Releasing lock... [2025-03-06 03:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 03:56:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-06 03:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 00:57:05 [end_date_ymd] => 2025-03-06 03:57:05 [RateCDR] => 1 ) [2025-03-06 03:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 00:57:05' and `end` < '2025-03-06 03:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 03:57:17] Production.INFO: count ==200 [2025-03-06 03:57:17] Production.ERROR: pbx CDR StartTime 2025-03-06 00:57:05 - End Time 2025-03-06 03:57:05 [2025-03-06 03:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 03:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617872', 'tblTempUsageDetail_20' ) start [2025-03-06 03:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617872', 'tblTempUsageDetail_20' ) end [2025-03-06 03:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617872', 'tblTempVendorCDR_20' ) start [2025-03-06 03:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617872', 'tblTempVendorCDR_20' ) end [2025-03-06 03:57:17] Production.INFO: ProcessCDR(1,14617872,1,1,2) [2025-03-06 03:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14617872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 03:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14617872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 03:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14617872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 03:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14617872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 03:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617872', 'tblTempUsageDetail_20' ) start [2025-03-06 03:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617872', 'tblTempUsageDetail_20' ) end [2025-03-06 03:57:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 03:57:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 03:57:21] Production.INFO: ==16031== Releasing lock... [2025-03-06 03:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 03:57:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-06 03:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 00:58:06 [end_date_ymd] => 2025-03-06 03:58:06 [RateCDR] => 1 ) [2025-03-06 03: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-03-06 00:58:06' and `end` < '2025-03-06 03: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-03-06 03:58:18] Production.INFO: count ==200 [2025-03-06 03:58:18] Production.ERROR: pbx CDR StartTime 2025-03-06 00:58:06 - End Time 2025-03-06 03:58:06 [2025-03-06 03:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617877', 'tblTempUsageDetail_20' ) start [2025-03-06 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617877', 'tblTempUsageDetail_20' ) end [2025-03-06 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617877', 'tblTempVendorCDR_20' ) start [2025-03-06 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617877', 'tblTempVendorCDR_20' ) end [2025-03-06 03:58:18] Production.INFO: ProcessCDR(1,14617877,1,1,2) [2025-03-06 03:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14617877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 03:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14617877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 03:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14617877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 03:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14617877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 03:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617877', 'tblTempUsageDetail_20' ) start [2025-03-06 03:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617877', 'tblTempUsageDetail_20' ) end [2025-03-06 03:58:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 03:58:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 03:58:22] Production.INFO: ==16106== Releasing lock... [2025-03-06 03:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 03:58:22] Production.INFO: 28.75 MB #Memory Used# [2025-03-06 03:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 00:59:06 [end_date_ymd] => 2025-03-06 03:59:06 [RateCDR] => 1 ) [2025-03-06 03: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-03-06 00:59:06' and `end` < '2025-03-06 03: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-03-06 03:59:18] Production.INFO: count ==200 [2025-03-06 03:59:18] Production.ERROR: pbx CDR StartTime 2025-03-06 00:59:06 - End Time 2025-03-06 03:59:06 [2025-03-06 03:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617882', 'tblTempUsageDetail_20' ) start [2025-03-06 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617882', 'tblTempUsageDetail_20' ) end [2025-03-06 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617882', 'tblTempVendorCDR_20' ) start [2025-03-06 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617882', 'tblTempVendorCDR_20' ) end [2025-03-06 03:59:18] Production.INFO: ProcessCDR(1,14617882,1,1,2) [2025-03-06 03:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14617882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 03:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14617882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 03:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14617882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 03:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14617882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 03:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617882', 'tblTempUsageDetail_20' ) start [2025-03-06 03:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617882', 'tblTempUsageDetail_20' ) end [2025-03-06 03:59:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 03:59:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 03:59:21] Production.INFO: ==16180== Releasing lock... [2025-03-06 03:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 03:59:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-06 04:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 01:00:06 [end_date_ymd] => 2025-03-06 04:00:06 [RateCDR] => 1 ) [2025-03-06 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-03-06 01:00:06' and `end` < '2025-03-06 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-03-06 04:00:18] Production.INFO: count ==198 [2025-03-06 04:00:18] Production.ERROR: pbx CDR StartTime 2025-03-06 01:00:06 - End Time 2025-03-06 04:00:06 [2025-03-06 04:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 04:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617889', 'tblTempUsageDetail_20' ) start [2025-03-06 04:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617889', 'tblTempUsageDetail_20' ) end [2025-03-06 04:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617889', 'tblTempVendorCDR_20' ) start [2025-03-06 04:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617889', 'tblTempVendorCDR_20' ) end [2025-03-06 04:00:18] Production.INFO: ProcessCDR(1,14617889,1,1,2) [2025-03-06 04:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14617889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 04:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14617889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 04:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14617889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 04:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14617889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 04:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617889', 'tblTempUsageDetail_20' ) start [2025-03-06 04:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617889', 'tblTempUsageDetail_20' ) end [2025-03-06 04:00:23] Production.ERROR: pbx prc_insertCDR start [2025-03-06 04:00:23] Production.ERROR: pbx prc_insertCDR end [2025-03-06 04:00:23] Production.INFO: ==16259== Releasing lock... [2025-03-06 04:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 04:00:23] Production.INFO: 28.75 MB #Memory Used# [2025-03-06 04:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 01:01:05 [end_date_ymd] => 2025-03-06 04:01:05 [RateCDR] => 1 ) [2025-03-06 04:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 01:01:05' and `end` < '2025-03-06 04:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 04:01:17] Production.INFO: count ==198 [2025-03-06 04:01:17] Production.ERROR: pbx CDR StartTime 2025-03-06 01:01:05 - End Time 2025-03-06 04:01:05 [2025-03-06 04:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 04:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617894', 'tblTempUsageDetail_20' ) start [2025-03-06 04:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617894', 'tblTempUsageDetail_20' ) end [2025-03-06 04:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617894', 'tblTempVendorCDR_20' ) start [2025-03-06 04:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617894', 'tblTempVendorCDR_20' ) end [2025-03-06 04:01:17] Production.INFO: ProcessCDR(1,14617894,1,1,2) [2025-03-06 04:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14617894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 04:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14617894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 04:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14617894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 04:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14617894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 04:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617894', 'tblTempUsageDetail_20' ) start [2025-03-06 04:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617894', 'tblTempUsageDetail_20' ) end [2025-03-06 04:01:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 04:01:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 04:01:21] Production.INFO: ==16346== Releasing lock... [2025-03-06 04:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 04:01:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-06 04:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 01:02:05 [end_date_ymd] => 2025-03-06 04:02:05 [RateCDR] => 1 ) [2025-03-06 04:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 01:02:05' and `end` < '2025-03-06 04:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 04:02:17] Production.INFO: count ==198 [2025-03-06 04:02:17] Production.ERROR: pbx CDR StartTime 2025-03-06 01:02:05 - End Time 2025-03-06 04:02:05 [2025-03-06 04:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 04:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617899', 'tblTempUsageDetail_20' ) start [2025-03-06 04:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617899', 'tblTempUsageDetail_20' ) end [2025-03-06 04:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617899', 'tblTempVendorCDR_20' ) start [2025-03-06 04:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617899', 'tblTempVendorCDR_20' ) end [2025-03-06 04:02:17] Production.INFO: ProcessCDR(1,14617899,1,1,2) [2025-03-06 04:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14617899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 04:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14617899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 04:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14617899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 04:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14617899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 04:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617899', 'tblTempUsageDetail_20' ) start [2025-03-06 04:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617899', 'tblTempUsageDetail_20' ) end [2025-03-06 04:02:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 04:02:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 04:02:21] Production.INFO: ==16422== Releasing lock... [2025-03-06 04:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 04:02:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-06 04:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 01:03:06 [end_date_ymd] => 2025-03-06 04:03:06 [RateCDR] => 1 ) [2025-03-06 04:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 01:03:06' and `end` < '2025-03-06 04:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 04:03:18] Production.INFO: count ==198 [2025-03-06 04:03:18] Production.ERROR: pbx CDR StartTime 2025-03-06 01:03:06 - End Time 2025-03-06 04:03:06 [2025-03-06 04:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617904', 'tblTempUsageDetail_20' ) start [2025-03-06 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617904', 'tblTempUsageDetail_20' ) end [2025-03-06 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617904', 'tblTempVendorCDR_20' ) start [2025-03-06 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617904', 'tblTempVendorCDR_20' ) end [2025-03-06 04:03:18] Production.INFO: ProcessCDR(1,14617904,1,1,2) [2025-03-06 04:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14617904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 04:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14617904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 04:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14617904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 04:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14617904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 04:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617904', 'tblTempUsageDetail_20' ) start [2025-03-06 04:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617904', 'tblTempUsageDetail_20' ) end [2025-03-06 04:03:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 04:03:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 04:03:21] Production.INFO: ==16501== Releasing lock... [2025-03-06 04:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 04:03:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-06 04:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 01:04:05 [end_date_ymd] => 2025-03-06 04:04:05 [RateCDR] => 1 ) [2025-03-06 04:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 01:04:05' and `end` < '2025-03-06 04:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 04:04:17] Production.INFO: count ==198 [2025-03-06 04:04:18] Production.ERROR: pbx CDR StartTime 2025-03-06 01:04:05 - End Time 2025-03-06 04:04:05 [2025-03-06 04:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617909', 'tblTempUsageDetail_20' ) start [2025-03-06 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617909', 'tblTempUsageDetail_20' ) end [2025-03-06 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617909', 'tblTempVendorCDR_20' ) start [2025-03-06 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617909', 'tblTempVendorCDR_20' ) end [2025-03-06 04:04:18] Production.INFO: ProcessCDR(1,14617909,1,1,2) [2025-03-06 04:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14617909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 04:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14617909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 04:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14617909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 04:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14617909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 04:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617909', 'tblTempUsageDetail_20' ) start [2025-03-06 04:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617909', 'tblTempUsageDetail_20' ) end [2025-03-06 04:04:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 04:04:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 04:04:21] Production.INFO: ==16576== Releasing lock... [2025-03-06 04:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 04:04:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-06 04:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 01:05:05 [end_date_ymd] => 2025-03-06 04:05:05 [RateCDR] => 1 ) [2025-03-06 04:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 01:05:05' and `end` < '2025-03-06 04:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 04:05:17] Production.INFO: count ==198 [2025-03-06 04:05:17] Production.ERROR: pbx CDR StartTime 2025-03-06 01:05:05 - End Time 2025-03-06 04:05:05 [2025-03-06 04:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 04:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617914', 'tblTempUsageDetail_20' ) start [2025-03-06 04:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617914', 'tblTempUsageDetail_20' ) end [2025-03-06 04:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617914', 'tblTempVendorCDR_20' ) start [2025-03-06 04:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617914', 'tblTempVendorCDR_20' ) end [2025-03-06 04:05:17] Production.INFO: ProcessCDR(1,14617914,1,1,2) [2025-03-06 04:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14617914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 04:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14617914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 04:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14617914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 04:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14617914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 04:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617914', 'tblTempUsageDetail_20' ) start [2025-03-06 04:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617914', 'tblTempUsageDetail_20' ) end [2025-03-06 04:05:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 04:05:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 04:05:21] Production.INFO: ==16650== Releasing lock... [2025-03-06 04:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 04:05:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-06 04:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 01:06:05 [end_date_ymd] => 2025-03-06 04:06:05 [RateCDR] => 1 ) [2025-03-06 04:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 01:06:05' and `end` < '2025-03-06 04:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 04:06:17] Production.INFO: count ==200 [2025-03-06 04:06:17] Production.ERROR: pbx CDR StartTime 2025-03-06 01:06:05 - End Time 2025-03-06 04:06:05 [2025-03-06 04:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 04:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617919', 'tblTempUsageDetail_20' ) start [2025-03-06 04:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617919', 'tblTempUsageDetail_20' ) end [2025-03-06 04:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617919', 'tblTempVendorCDR_20' ) start [2025-03-06 04:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617919', 'tblTempVendorCDR_20' ) end [2025-03-06 04:06:17] Production.INFO: ProcessCDR(1,14617919,1,1,2) [2025-03-06 04:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14617919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 04:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14617919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 04:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14617919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 04:06:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14617919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 04:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617919', 'tblTempUsageDetail_20' ) start [2025-03-06 04:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617919', 'tblTempUsageDetail_20' ) end [2025-03-06 04:06:20] Production.ERROR: pbx prc_insertCDR start [2025-03-06 04:06:20] Production.ERROR: pbx prc_insertCDR end [2025-03-06 04:06:20] Production.INFO: ==16725== Releasing lock... [2025-03-06 04:06:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 04:06:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-06 04:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 01:07:06 [end_date_ymd] => 2025-03-06 04:07:06 [RateCDR] => 1 ) [2025-03-06 04:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 01:07:06' and `end` < '2025-03-06 04:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 04:07:18] Production.INFO: count ==201 [2025-03-06 04:07:18] Production.ERROR: pbx CDR StartTime 2025-03-06 01:07:06 - End Time 2025-03-06 04:07:06 [2025-03-06 04:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 04:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617924', 'tblTempUsageDetail_20' ) start [2025-03-06 04:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617924', 'tblTempUsageDetail_20' ) end [2025-03-06 04:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617924', 'tblTempVendorCDR_20' ) start [2025-03-06 04:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617924', 'tblTempVendorCDR_20' ) end [2025-03-06 04:07:18] Production.INFO: ProcessCDR(1,14617924,1,1,2) [2025-03-06 04:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14617924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 04:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14617924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 04:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14617924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 04:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14617924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 04:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617924', 'tblTempUsageDetail_20' ) start [2025-03-06 04:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617924', 'tblTempUsageDetail_20' ) end [2025-03-06 04:07:23] Production.ERROR: pbx prc_insertCDR start [2025-03-06 04:07:23] Production.ERROR: pbx prc_insertCDR end [2025-03-06 04:07:23] Production.INFO: ==16804== Releasing lock... [2025-03-06 04:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 04:07:23] Production.INFO: 28.75 MB #Memory Used# [2025-03-06 04:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 01:08:05 [end_date_ymd] => 2025-03-06 04:08:05 [RateCDR] => 1 ) [2025-03-06 04:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 01:08:05' and `end` < '2025-03-06 04:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 04:08:17] Production.INFO: count ==201 [2025-03-06 04:08:17] Production.ERROR: pbx CDR StartTime 2025-03-06 01:08:05 - End Time 2025-03-06 04:08:05 [2025-03-06 04:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 04:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617929', 'tblTempUsageDetail_20' ) start [2025-03-06 04:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617929', 'tblTempUsageDetail_20' ) end [2025-03-06 04:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617929', 'tblTempVendorCDR_20' ) start [2025-03-06 04:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617929', 'tblTempVendorCDR_20' ) end [2025-03-06 04:08:17] Production.INFO: ProcessCDR(1,14617929,1,1,2) [2025-03-06 04:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14617929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 04:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14617929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 04:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14617929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 04:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14617929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 04:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617929', 'tblTempUsageDetail_20' ) start [2025-03-06 04:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617929', 'tblTempUsageDetail_20' ) end [2025-03-06 04:08:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 04:08:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 04:08:21] Production.INFO: ==16883== Releasing lock... [2025-03-06 04:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 04:08:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-06 04:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 01:09:05 [end_date_ymd] => 2025-03-06 04:09:05 [RateCDR] => 1 ) [2025-03-06 04: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-03-06 01:09:05' and `end` < '2025-03-06 04: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-03-06 04:09:17] Production.INFO: count ==201 [2025-03-06 04:09:17] Production.ERROR: pbx CDR StartTime 2025-03-06 01:09:05 - End Time 2025-03-06 04:09:05 [2025-03-06 04:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 04:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617933', 'tblTempUsageDetail_20' ) start [2025-03-06 04:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617933', 'tblTempUsageDetail_20' ) end [2025-03-06 04:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617933', 'tblTempVendorCDR_20' ) start [2025-03-06 04:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617933', 'tblTempVendorCDR_20' ) end [2025-03-06 04:09:17] Production.INFO: ProcessCDR(1,14617933,1,1,2) [2025-03-06 04:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14617933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 04:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14617933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 04:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14617933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 04:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14617933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 04:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617933', 'tblTempUsageDetail_20' ) start [2025-03-06 04:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617933', 'tblTempUsageDetail_20' ) end [2025-03-06 04:09:20] Production.ERROR: pbx prc_insertCDR start [2025-03-06 04:09:20] Production.ERROR: pbx prc_insertCDR end [2025-03-06 04:09:20] Production.INFO: ==16994== Releasing lock... [2025-03-06 04:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 04:09:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-06 04:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 01:10:06 [end_date_ymd] => 2025-03-06 04:10:06 [RateCDR] => 1 ) [2025-03-06 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-03-06 01:10:06' and `end` < '2025-03-06 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-03-06 04:10:18] Production.INFO: count ==201 [2025-03-06 04:10:18] Production.ERROR: pbx CDR StartTime 2025-03-06 01:10:06 - End Time 2025-03-06 04:10:06 [2025-03-06 04:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 04:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617939', 'tblTempUsageDetail_20' ) start [2025-03-06 04:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617939', 'tblTempUsageDetail_20' ) end [2025-03-06 04:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617939', 'tblTempVendorCDR_20' ) start [2025-03-06 04:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617939', 'tblTempVendorCDR_20' ) end [2025-03-06 04:10:18] Production.INFO: ProcessCDR(1,14617939,1,1,2) [2025-03-06 04:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14617939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 04:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14617939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 04:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14617939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 04:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14617939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 04:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617939', 'tblTempUsageDetail_20' ) start [2025-03-06 04:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617939', 'tblTempUsageDetail_20' ) end [2025-03-06 04:10:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 04:10:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 04:10:22] Production.INFO: ==17073== Releasing lock... [2025-03-06 04:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 04:10:22] Production.INFO: 28.75 MB #Memory Used# [2025-03-06 04:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 01:11:05 [end_date_ymd] => 2025-03-06 04:11:05 [RateCDR] => 1 ) [2025-03-06 04:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 01:11:05' and `end` < '2025-03-06 04:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 04:11:17] Production.INFO: count ==195 [2025-03-06 04:11:17] Production.ERROR: pbx CDR StartTime 2025-03-06 01:11:05 - End Time 2025-03-06 04:11:05 [2025-03-06 04:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 04:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617945', 'tblTempUsageDetail_20' ) start [2025-03-06 04:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617945', 'tblTempUsageDetail_20' ) end [2025-03-06 04:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617945', 'tblTempVendorCDR_20' ) start [2025-03-06 04:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617945', 'tblTempVendorCDR_20' ) end [2025-03-06 04:11:17] Production.INFO: ProcessCDR(1,14617945,1,1,2) [2025-03-06 04:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14617945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 04:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14617945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 04:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14617945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 04:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14617945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 04:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617945', 'tblTempUsageDetail_20' ) start [2025-03-06 04:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617945', 'tblTempUsageDetail_20' ) end [2025-03-06 04:11:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 04:11:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 04:11:21] Production.INFO: ==17152== Releasing lock... [2025-03-06 04:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 04:11:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-06 04:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 01:12:06 [end_date_ymd] => 2025-03-06 04:12:06 [RateCDR] => 1 ) [2025-03-06 04: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-03-06 01:12:06' and `end` < '2025-03-06 04: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-03-06 04:12:18] Production.INFO: count ==196 [2025-03-06 04:12:18] Production.ERROR: pbx CDR StartTime 2025-03-06 01:12:06 - End Time 2025-03-06 04:12:06 [2025-03-06 04:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617950', 'tblTempUsageDetail_20' ) start [2025-03-06 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617950', 'tblTempUsageDetail_20' ) end [2025-03-06 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617950', 'tblTempVendorCDR_20' ) start [2025-03-06 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617950', 'tblTempVendorCDR_20' ) end [2025-03-06 04:12:18] Production.INFO: ProcessCDR(1,14617950,1,1,2) [2025-03-06 04:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14617950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 04:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14617950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 04:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14617950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 04:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14617950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 04:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617950', 'tblTempUsageDetail_20' ) start [2025-03-06 04:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617950', 'tblTempUsageDetail_20' ) end [2025-03-06 04:12:23] Production.ERROR: pbx prc_insertCDR start [2025-03-06 04:12:23] Production.ERROR: pbx prc_insertCDR end [2025-03-06 04:12:23] Production.INFO: ==17225== Releasing lock... [2025-03-06 04:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 04:12:23] Production.INFO: 28.75 MB #Memory Used# [2025-03-06 04:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 01:13:05 [end_date_ymd] => 2025-03-06 04:13:05 [RateCDR] => 1 ) [2025-03-06 04:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 01:13:05' and `end` < '2025-03-06 04:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 04:13:17] Production.INFO: count ==197 [2025-03-06 04:13:17] Production.ERROR: pbx CDR StartTime 2025-03-06 01:13:05 - End Time 2025-03-06 04:13:05 [2025-03-06 04:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 04:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617955', 'tblTempUsageDetail_20' ) start [2025-03-06 04:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617955', 'tblTempUsageDetail_20' ) end [2025-03-06 04:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617955', 'tblTempVendorCDR_20' ) start [2025-03-06 04:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617955', 'tblTempVendorCDR_20' ) end [2025-03-06 04:13:17] Production.INFO: ProcessCDR(1,14617955,1,1,2) [2025-03-06 04:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14617955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 04:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14617955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 04:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14617955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 04:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14617955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 04:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617955', 'tblTempUsageDetail_20' ) start [2025-03-06 04:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617955', 'tblTempUsageDetail_20' ) end [2025-03-06 04:13:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 04:13:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 04:13:22] Production.INFO: ==17297== Releasing lock... [2025-03-06 04:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 04:13:22] Production.INFO: 28.75 MB #Memory Used# [2025-03-06 04:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 01:14:06 [end_date_ymd] => 2025-03-06 04:14:06 [RateCDR] => 1 ) [2025-03-06 04: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-03-06 01:14:06' and `end` < '2025-03-06 04: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-03-06 04:14:18] Production.INFO: count ==197 [2025-03-06 04:14:18] Production.ERROR: pbx CDR StartTime 2025-03-06 01:14:06 - End Time 2025-03-06 04:14:06 [2025-03-06 04:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617960', 'tblTempUsageDetail_20' ) start [2025-03-06 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617960', 'tblTempUsageDetail_20' ) end [2025-03-06 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617960', 'tblTempVendorCDR_20' ) start [2025-03-06 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617960', 'tblTempVendorCDR_20' ) end [2025-03-06 04:14:18] Production.INFO: ProcessCDR(1,14617960,1,1,2) [2025-03-06 04:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14617960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 04:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14617960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 04:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14617960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 04:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14617960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 04:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617960', 'tblTempUsageDetail_20' ) start [2025-03-06 04:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617960', 'tblTempUsageDetail_20' ) end [2025-03-06 04:14:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 04:14:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 04:14:21] Production.INFO: ==17378== Releasing lock... [2025-03-06 04:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 04:14:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-06 04:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 01:15:06 [end_date_ymd] => 2025-03-06 04:15:06 [RateCDR] => 1 ) [2025-03-06 04: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-03-06 01:15:06' and `end` < '2025-03-06 04: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-03-06 04:15:18] Production.INFO: count ==197 [2025-03-06 04:15:18] Production.ERROR: pbx CDR StartTime 2025-03-06 01:15:06 - End Time 2025-03-06 04:15:06 [2025-03-06 04:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617965', 'tblTempUsageDetail_20' ) start [2025-03-06 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617965', 'tblTempUsageDetail_20' ) end [2025-03-06 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617965', 'tblTempVendorCDR_20' ) start [2025-03-06 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617965', 'tblTempVendorCDR_20' ) end [2025-03-06 04:15:18] Production.INFO: ProcessCDR(1,14617965,1,1,2) [2025-03-06 04:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14617965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 04:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14617965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 04:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14617965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 04:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14617965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 04:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617965', 'tblTempUsageDetail_20' ) start [2025-03-06 04:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617965', 'tblTempUsageDetail_20' ) end [2025-03-06 04:15:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 04:15:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 04:15:21] Production.INFO: ==17461== Releasing lock... [2025-03-06 04:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 04:15:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-06 04:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 01:16:06 [end_date_ymd] => 2025-03-06 04:16:06 [RateCDR] => 1 ) [2025-03-06 04: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-03-06 01:16:06' and `end` < '2025-03-06 04: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-03-06 04:16:17] Production.INFO: count ==197 [2025-03-06 04:16:17] Production.ERROR: pbx CDR StartTime 2025-03-06 01:16:06 - End Time 2025-03-06 04:16:06 [2025-03-06 04:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 04:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617970', 'tblTempUsageDetail_20' ) start [2025-03-06 04:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617970', 'tblTempUsageDetail_20' ) end [2025-03-06 04:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617970', 'tblTempVendorCDR_20' ) start [2025-03-06 04:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617970', 'tblTempVendorCDR_20' ) end [2025-03-06 04:16:17] Production.INFO: ProcessCDR(1,14617970,1,1,2) [2025-03-06 04:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14617970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 04:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14617970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 04:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14617970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 04:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14617970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 04:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617970', 'tblTempUsageDetail_20' ) start [2025-03-06 04:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617970', 'tblTempUsageDetail_20' ) end [2025-03-06 04:16:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 04:16:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 04:16:21] Production.INFO: ==17535== Releasing lock... [2025-03-06 04:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 04:16:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-06 04:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 01:17:05 [end_date_ymd] => 2025-03-06 04:17:05 [RateCDR] => 1 ) [2025-03-06 04:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 01:17:05' and `end` < '2025-03-06 04:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 04:17:17] Production.INFO: count ==197 [2025-03-06 04:17:17] Production.ERROR: pbx CDR StartTime 2025-03-06 01:17:05 - End Time 2025-03-06 04:17:05 [2025-03-06 04:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 04:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617975', 'tblTempUsageDetail_20' ) start [2025-03-06 04:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617975', 'tblTempUsageDetail_20' ) end [2025-03-06 04:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617975', 'tblTempVendorCDR_20' ) start [2025-03-06 04:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617975', 'tblTempVendorCDR_20' ) end [2025-03-06 04:17:17] Production.INFO: ProcessCDR(1,14617975,1,1,2) [2025-03-06 04:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14617975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 04:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14617975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 04:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14617975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 04:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14617975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 04:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617975', 'tblTempUsageDetail_20' ) start [2025-03-06 04:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617975', 'tblTempUsageDetail_20' ) end [2025-03-06 04:17:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 04:17:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 04:17:21] Production.INFO: ==17612== Releasing lock... [2025-03-06 04:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 04:17:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-06 04:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 01:18:06 [end_date_ymd] => 2025-03-06 04:18:06 [RateCDR] => 1 ) [2025-03-06 04: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-03-06 01:18:06' and `end` < '2025-03-06 04: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-03-06 04:18:18] Production.INFO: count ==197 [2025-03-06 04:18:18] Production.ERROR: pbx CDR StartTime 2025-03-06 01:18:06 - End Time 2025-03-06 04:18:06 [2025-03-06 04:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617980', 'tblTempUsageDetail_20' ) start [2025-03-06 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617980', 'tblTempUsageDetail_20' ) end [2025-03-06 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617980', 'tblTempVendorCDR_20' ) start [2025-03-06 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617980', 'tblTempVendorCDR_20' ) end [2025-03-06 04:18:18] Production.INFO: ProcessCDR(1,14617980,1,1,2) [2025-03-06 04:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14617980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 04:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14617980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 04:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14617980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 04:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14617980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 04:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617980', 'tblTempUsageDetail_20' ) start [2025-03-06 04:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617980', 'tblTempUsageDetail_20' ) end [2025-03-06 04:18:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 04:18:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 04:18:21] Production.INFO: ==17702== Releasing lock... [2025-03-06 04:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 04:18:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-06 04:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 01:19:05 [end_date_ymd] => 2025-03-06 04:19:05 [RateCDR] => 1 ) [2025-03-06 04:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 01:19:05' and `end` < '2025-03-06 04:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 04:19:17] Production.INFO: count ==197 [2025-03-06 04:19:17] Production.ERROR: pbx CDR StartTime 2025-03-06 01:19:05 - End Time 2025-03-06 04:19:05 [2025-03-06 04:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 04:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617985', 'tblTempUsageDetail_20' ) start [2025-03-06 04:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617985', 'tblTempUsageDetail_20' ) end [2025-03-06 04:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617985', 'tblTempVendorCDR_20' ) start [2025-03-06 04:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617985', 'tblTempVendorCDR_20' ) end [2025-03-06 04:19:17] Production.INFO: ProcessCDR(1,14617985,1,1,2) [2025-03-06 04:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14617985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 04:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14617985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 04:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14617985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 04:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14617985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 04:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617985', 'tblTempUsageDetail_20' ) start [2025-03-06 04:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617985', 'tblTempUsageDetail_20' ) end [2025-03-06 04:19:20] Production.ERROR: pbx prc_insertCDR start [2025-03-06 04:19:20] Production.ERROR: pbx prc_insertCDR end [2025-03-06 04:19:20] Production.INFO: ==17776== Releasing lock... [2025-03-06 04:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 04:19:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-06 04:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 01:20:06 [end_date_ymd] => 2025-03-06 04:20:06 [RateCDR] => 1 ) [2025-03-06 04:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 01:20:06' and `end` < '2025-03-06 04:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 04:20:18] Production.INFO: count ==193 [2025-03-06 04:20:18] Production.ERROR: pbx CDR StartTime 2025-03-06 01:20:06 - End Time 2025-03-06 04:20:06 [2025-03-06 04:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 04:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617990', 'tblTempUsageDetail_20' ) start [2025-03-06 04:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617990', 'tblTempUsageDetail_20' ) end [2025-03-06 04:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617990', 'tblTempVendorCDR_20' ) start [2025-03-06 04:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617990', 'tblTempVendorCDR_20' ) end [2025-03-06 04:20:18] Production.INFO: ProcessCDR(1,14617990,1,1,2) [2025-03-06 04:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14617990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 04:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14617990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 04:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14617990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 04:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14617990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 04:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617990', 'tblTempUsageDetail_20' ) start [2025-03-06 04:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617990', 'tblTempUsageDetail_20' ) end [2025-03-06 04:20:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 04:20:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 04:20:22] Production.INFO: ==17854== Releasing lock... [2025-03-06 04:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 04:20:22] Production.INFO: 28.75 MB #Memory Used# [2025-03-06 04:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 01:21:05 [end_date_ymd] => 2025-03-06 04:21:05 [RateCDR] => 1 ) [2025-03-06 04:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 01:21:05' and `end` < '2025-03-06 04:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 04:21:16] Production.INFO: count ==189 [2025-03-06 04:21:17] Production.ERROR: pbx CDR StartTime 2025-03-06 01:21:05 - End Time 2025-03-06 04:21:05 [2025-03-06 04:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 04:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617996', 'tblTempUsageDetail_20' ) start [2025-03-06 04:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14617996', 'tblTempUsageDetail_20' ) end [2025-03-06 04:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617996', 'tblTempVendorCDR_20' ) start [2025-03-06 04:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14617996', 'tblTempVendorCDR_20' ) end [2025-03-06 04:21:17] Production.INFO: ProcessCDR(1,14617996,1,1,2) [2025-03-06 04:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14617996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 04:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14617996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 04:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14617996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 04:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14617996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 04:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617996', 'tblTempUsageDetail_20' ) start [2025-03-06 04:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14617996', 'tblTempUsageDetail_20' ) end [2025-03-06 04:21:20] Production.ERROR: pbx prc_insertCDR start [2025-03-06 04:21:20] Production.ERROR: pbx prc_insertCDR end [2025-03-06 04:21:20] Production.INFO: ==17931== Releasing lock... [2025-03-06 04:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 04:21:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-06 04:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 01:22:06 [end_date_ymd] => 2025-03-06 04:22:06 [RateCDR] => 1 ) [2025-03-06 04:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 01:22:06' and `end` < '2025-03-06 04:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 04:22:18] Production.INFO: count ==189 [2025-03-06 04:22:18] Production.ERROR: pbx CDR StartTime 2025-03-06 01:22:06 - End Time 2025-03-06 04:22:06 [2025-03-06 04:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618001', 'tblTempUsageDetail_20' ) start [2025-03-06 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618001', 'tblTempUsageDetail_20' ) end [2025-03-06 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618001', 'tblTempVendorCDR_20' ) start [2025-03-06 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618001', 'tblTempVendorCDR_20' ) end [2025-03-06 04:22:18] Production.INFO: ProcessCDR(1,14618001,1,1,2) [2025-03-06 04:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14618001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 04:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14618001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 04:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14618001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 04:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14618001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 04:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618001', 'tblTempUsageDetail_20' ) start [2025-03-06 04:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618001', 'tblTempUsageDetail_20' ) end [2025-03-06 04:22:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 04:22:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 04:22:21] Production.INFO: ==18006== Releasing lock... [2025-03-06 04:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 04:22:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-06 04:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 01:23:05 [end_date_ymd] => 2025-03-06 04:23:05 [RateCDR] => 1 ) [2025-03-06 04:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 01:23:05' and `end` < '2025-03-06 04:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 04:23:17] Production.INFO: count ==189 [2025-03-06 04:23:17] Production.ERROR: pbx CDR StartTime 2025-03-06 01:23:05 - End Time 2025-03-06 04:23:05 [2025-03-06 04:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 04:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618006', 'tblTempUsageDetail_20' ) start [2025-03-06 04:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618006', 'tblTempUsageDetail_20' ) end [2025-03-06 04:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618006', 'tblTempVendorCDR_20' ) start [2025-03-06 04:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618006', 'tblTempVendorCDR_20' ) end [2025-03-06 04:23:17] Production.INFO: ProcessCDR(1,14618006,1,1,2) [2025-03-06 04:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14618006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 04:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14618006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 04:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14618006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 04:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14618006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 04:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618006', 'tblTempUsageDetail_20' ) start [2025-03-06 04:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618006', 'tblTempUsageDetail_20' ) end [2025-03-06 04:23:20] Production.ERROR: pbx prc_insertCDR start [2025-03-06 04:23:20] Production.ERROR: pbx prc_insertCDR end [2025-03-06 04:23:20] Production.INFO: ==18082== Releasing lock... [2025-03-06 04:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 04:23:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-06 04:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 01:24:05 [end_date_ymd] => 2025-03-06 04:24:05 [RateCDR] => 1 ) [2025-03-06 04:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 01:24:05' and `end` < '2025-03-06 04:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 04:24:17] Production.INFO: count ==189 [2025-03-06 04:24:17] Production.ERROR: pbx CDR StartTime 2025-03-06 01:24:05 - End Time 2025-03-06 04:24:05 [2025-03-06 04:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 04:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618011', 'tblTempUsageDetail_20' ) start [2025-03-06 04:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618011', 'tblTempUsageDetail_20' ) end [2025-03-06 04:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618011', 'tblTempVendorCDR_20' ) start [2025-03-06 04:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618011', 'tblTempVendorCDR_20' ) end [2025-03-06 04:24:17] Production.INFO: ProcessCDR(1,14618011,1,1,2) [2025-03-06 04:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14618011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 04:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14618011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 04:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14618011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 04:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14618011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 04:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618011', 'tblTempUsageDetail_20' ) start [2025-03-06 04:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618011', 'tblTempUsageDetail_20' ) end [2025-03-06 04:24:20] Production.ERROR: pbx prc_insertCDR start [2025-03-06 04:24:20] Production.ERROR: pbx prc_insertCDR end [2025-03-06 04:24:20] Production.INFO: ==18197== Releasing lock... [2025-03-06 04:24:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 04:24:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-06 04:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 01:25:06 [end_date_ymd] => 2025-03-06 04:25:06 [RateCDR] => 1 ) [2025-03-06 04: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-03-06 01:25:06' and `end` < '2025-03-06 04: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-03-06 04:25:18] Production.INFO: count ==189 [2025-03-06 04:25:18] Production.ERROR: pbx CDR StartTime 2025-03-06 01:25:06 - End Time 2025-03-06 04:25:06 [2025-03-06 04:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618016', 'tblTempUsageDetail_20' ) start [2025-03-06 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618016', 'tblTempUsageDetail_20' ) end [2025-03-06 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618016', 'tblTempVendorCDR_20' ) start [2025-03-06 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618016', 'tblTempVendorCDR_20' ) end [2025-03-06 04:25:18] Production.INFO: ProcessCDR(1,14618016,1,1,2) [2025-03-06 04:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14618016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 04:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14618016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 04:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14618016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 04:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14618016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 04:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618016', 'tblTempUsageDetail_20' ) start [2025-03-06 04:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618016', 'tblTempUsageDetail_20' ) end [2025-03-06 04:25:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 04:25:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 04:25:21] Production.INFO: ==18273== Releasing lock... [2025-03-06 04:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 04:25:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-06 04:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 01:26:05 [end_date_ymd] => 2025-03-06 04:26:05 [RateCDR] => 1 ) [2025-03-06 04:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 01:26:05' and `end` < '2025-03-06 04:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 04:26:17] Production.INFO: count ==189 [2025-03-06 04:26:17] Production.ERROR: pbx CDR StartTime 2025-03-06 01:26:05 - End Time 2025-03-06 04:26:05 [2025-03-06 04:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 04:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618021', 'tblTempUsageDetail_20' ) start [2025-03-06 04:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618021', 'tblTempUsageDetail_20' ) end [2025-03-06 04:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618021', 'tblTempVendorCDR_20' ) start [2025-03-06 04:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618021', 'tblTempVendorCDR_20' ) end [2025-03-06 04:26:17] Production.INFO: ProcessCDR(1,14618021,1,1,2) [2025-03-06 04:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14618021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 04:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14618021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 04:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14618021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 04:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14618021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 04:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618021', 'tblTempUsageDetail_20' ) start [2025-03-06 04:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618021', 'tblTempUsageDetail_20' ) end [2025-03-06 04:26:20] Production.ERROR: pbx prc_insertCDR start [2025-03-06 04:26:20] Production.ERROR: pbx prc_insertCDR end [2025-03-06 04:26:20] Production.INFO: ==18349== Releasing lock... [2025-03-06 04:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 04:26:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-06 04:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 01:27:05 [end_date_ymd] => 2025-03-06 04:27:05 [RateCDR] => 1 ) [2025-03-06 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-03-06 01:27:05' and `end` < '2025-03-06 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-03-06 04:27:17] Production.INFO: count ==189 [2025-03-06 04:27:17] Production.ERROR: pbx CDR StartTime 2025-03-06 01:27:05 - End Time 2025-03-06 04:27:05 [2025-03-06 04:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 04:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618026', 'tblTempUsageDetail_20' ) start [2025-03-06 04:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618026', 'tblTempUsageDetail_20' ) end [2025-03-06 04:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618026', 'tblTempVendorCDR_20' ) start [2025-03-06 04:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618026', 'tblTempVendorCDR_20' ) end [2025-03-06 04:27:17] Production.INFO: ProcessCDR(1,14618026,1,1,2) [2025-03-06 04:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14618026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 04:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14618026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 04:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14618026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 04:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14618026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 04:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618026', 'tblTempUsageDetail_20' ) start [2025-03-06 04:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618026', 'tblTempUsageDetail_20' ) end [2025-03-06 04:27:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 04:27:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 04:27:21] Production.INFO: ==18422== Releasing lock... [2025-03-06 04:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 04:27:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-06 04:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 01:28:05 [end_date_ymd] => 2025-03-06 04:28:05 [RateCDR] => 1 ) [2025-03-06 04:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 01:28:05' and `end` < '2025-03-06 04:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 04:28:17] Production.INFO: count ==189 [2025-03-06 04:28:17] Production.ERROR: pbx CDR StartTime 2025-03-06 01:28:05 - End Time 2025-03-06 04:28:05 [2025-03-06 04:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 04:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618031', 'tblTempUsageDetail_20' ) start [2025-03-06 04:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618031', 'tblTempUsageDetail_20' ) end [2025-03-06 04:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618031', 'tblTempVendorCDR_20' ) start [2025-03-06 04:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618031', 'tblTempVendorCDR_20' ) end [2025-03-06 04:28:17] Production.INFO: ProcessCDR(1,14618031,1,1,2) [2025-03-06 04:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14618031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 04:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14618031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 04:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14618031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 04:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14618031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 04:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618031', 'tblTempUsageDetail_20' ) start [2025-03-06 04:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618031', 'tblTempUsageDetail_20' ) end [2025-03-06 04:28:20] Production.ERROR: pbx prc_insertCDR start [2025-03-06 04:28:20] Production.ERROR: pbx prc_insertCDR end [2025-03-06 04:28:20] Production.INFO: ==18499== Releasing lock... [2025-03-06 04:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 04:28:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-06 04:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 01:29:06 [end_date_ymd] => 2025-03-06 04:29:06 [RateCDR] => 1 ) [2025-03-06 04:29:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 01:29:06' and `end` < '2025-03-06 04:29:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 04:29:18] Production.INFO: count ==189 [2025-03-06 04:29:18] Production.ERROR: pbx CDR StartTime 2025-03-06 01:29:06 - End Time 2025-03-06 04:29:06 [2025-03-06 04:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618036', 'tblTempUsageDetail_20' ) start [2025-03-06 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618036', 'tblTempUsageDetail_20' ) end [2025-03-06 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618036', 'tblTempVendorCDR_20' ) start [2025-03-06 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618036', 'tblTempVendorCDR_20' ) end [2025-03-06 04:29:18] Production.INFO: ProcessCDR(1,14618036,1,1,2) [2025-03-06 04:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14618036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 04:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14618036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 04:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14618036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 04:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14618036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 04:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618036', 'tblTempUsageDetail_20' ) start [2025-03-06 04:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618036', 'tblTempUsageDetail_20' ) end [2025-03-06 04:29:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 04:29:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 04:29:22] Production.INFO: ==18576== Releasing lock... [2025-03-06 04:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 04:29:22] Production.INFO: 28.75 MB #Memory Used# [2025-03-06 04:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 01:30:06 [end_date_ymd] => 2025-03-06 04:30:06 [RateCDR] => 1 ) [2025-03-06 04:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 01:30:06' and `end` < '2025-03-06 04:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 04:30:18] Production.INFO: count ==189 [2025-03-06 04:30:18] Production.ERROR: pbx CDR StartTime 2025-03-06 01:30:06 - End Time 2025-03-06 04:30:06 [2025-03-06 04:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 04:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618042', 'tblTempUsageDetail_20' ) start [2025-03-06 04:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618042', 'tblTempUsageDetail_20' ) end [2025-03-06 04:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618042', 'tblTempVendorCDR_20' ) start [2025-03-06 04:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618042', 'tblTempVendorCDR_20' ) end [2025-03-06 04:30:18] Production.INFO: ProcessCDR(1,14618042,1,1,2) [2025-03-06 04:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14618042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 04:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14618042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 04:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14618042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 04:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14618042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 04:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618042', 'tblTempUsageDetail_20' ) start [2025-03-06 04:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618042', 'tblTempUsageDetail_20' ) end [2025-03-06 04:30:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 04:30:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 04:30:21] Production.INFO: ==18651== Releasing lock... [2025-03-06 04:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 04:30:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-06 04:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 01:31:06 [end_date_ymd] => 2025-03-06 04:31:06 [RateCDR] => 1 ) [2025-03-06 04:31:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 01:31:06' and `end` < '2025-03-06 04:31:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 04:31:18] Production.INFO: count ==189 [2025-03-06 04:31:18] Production.ERROR: pbx CDR StartTime 2025-03-06 01:31:06 - End Time 2025-03-06 04:31:06 [2025-03-06 04:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618048', 'tblTempUsageDetail_20' ) start [2025-03-06 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618048', 'tblTempUsageDetail_20' ) end [2025-03-06 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618048', 'tblTempVendorCDR_20' ) start [2025-03-06 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618048', 'tblTempVendorCDR_20' ) end [2025-03-06 04:31:18] Production.INFO: ProcessCDR(1,14618048,1,1,2) [2025-03-06 04:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14618048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 04:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14618048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 04:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14618048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 04:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14618048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 04:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618048', 'tblTempUsageDetail_20' ) start [2025-03-06 04:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618048', 'tblTempUsageDetail_20' ) end [2025-03-06 04:31:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 04:31:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 04:31:22] Production.INFO: ==18728== Releasing lock... [2025-03-06 04:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 04:31:22] Production.INFO: 28.75 MB #Memory Used# [2025-03-06 04:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 01:32:05 [end_date_ymd] => 2025-03-06 04:32:05 [RateCDR] => 1 ) [2025-03-06 04:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 01:32:05' and `end` < '2025-03-06 04:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 04:32:17] Production.INFO: count ==189 [2025-03-06 04:32:17] Production.ERROR: pbx CDR StartTime 2025-03-06 01:32:05 - End Time 2025-03-06 04:32:05 [2025-03-06 04:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 04:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618053', 'tblTempUsageDetail_20' ) start [2025-03-06 04:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618053', 'tblTempUsageDetail_20' ) end [2025-03-06 04:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618053', 'tblTempVendorCDR_20' ) start [2025-03-06 04:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618053', 'tblTempVendorCDR_20' ) end [2025-03-06 04:32:17] Production.INFO: ProcessCDR(1,14618053,1,1,2) [2025-03-06 04:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14618053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 04:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14618053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 04:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14618053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 04:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14618053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 04:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618053', 'tblTempUsageDetail_20' ) start [2025-03-06 04:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618053', 'tblTempUsageDetail_20' ) end [2025-03-06 04:32:20] Production.ERROR: pbx prc_insertCDR start [2025-03-06 04:32:20] Production.ERROR: pbx prc_insertCDR end [2025-03-06 04:32:20] Production.INFO: ==18866== Releasing lock... [2025-03-06 04:32:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 04:32:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-06 04:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 01:33:05 [end_date_ymd] => 2025-03-06 04:33:05 [RateCDR] => 1 ) [2025-03-06 04:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 01:33:05' and `end` < '2025-03-06 04:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 04:33:17] Production.INFO: count ==189 [2025-03-06 04:33:17] Production.ERROR: pbx CDR StartTime 2025-03-06 01:33:05 - End Time 2025-03-06 04:33:05 [2025-03-06 04:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 04:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618058', 'tblTempUsageDetail_20' ) start [2025-03-06 04:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618058', 'tblTempUsageDetail_20' ) end [2025-03-06 04:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618058', 'tblTempVendorCDR_20' ) start [2025-03-06 04:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618058', 'tblTempVendorCDR_20' ) end [2025-03-06 04:33:17] Production.INFO: ProcessCDR(1,14618058,1,1,2) [2025-03-06 04:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14618058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 04:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14618058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 04:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14618058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 04:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14618058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 04:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618058', 'tblTempUsageDetail_20' ) start [2025-03-06 04:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618058', 'tblTempUsageDetail_20' ) end [2025-03-06 04:33:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 04:33:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 04:33:21] Production.INFO: ==18937== Releasing lock... [2025-03-06 04:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 04:33:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-06 04:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 01:34:05 [end_date_ymd] => 2025-03-06 04:34:05 [RateCDR] => 1 ) [2025-03-06 04: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-03-06 01:34:05' and `end` < '2025-03-06 04: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-03-06 04:34:17] Production.INFO: count ==189 [2025-03-06 04:34:17] Production.ERROR: pbx CDR StartTime 2025-03-06 01:34:05 - End Time 2025-03-06 04:34:05 [2025-03-06 04:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 04:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618063', 'tblTempUsageDetail_20' ) start [2025-03-06 04:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618063', 'tblTempUsageDetail_20' ) end [2025-03-06 04:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618063', 'tblTempVendorCDR_20' ) start [2025-03-06 04:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618063', 'tblTempVendorCDR_20' ) end [2025-03-06 04:34:17] Production.INFO: ProcessCDR(1,14618063,1,1,2) [2025-03-06 04:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14618063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 04:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14618063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 04:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14618063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 04:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14618063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 04:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618063', 'tblTempUsageDetail_20' ) start [2025-03-06 04:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618063', 'tblTempUsageDetail_20' ) end [2025-03-06 04:34:20] Production.ERROR: pbx prc_insertCDR start [2025-03-06 04:34:20] Production.ERROR: pbx prc_insertCDR end [2025-03-06 04:34:20] Production.INFO: ==19008== Releasing lock... [2025-03-06 04:34:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 04:34:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-06 04:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 01:35:05 [end_date_ymd] => 2025-03-06 04:35:05 [RateCDR] => 1 ) [2025-03-06 04:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 01:35:05' and `end` < '2025-03-06 04:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 04:35:17] Production.INFO: count ==189 [2025-03-06 04:35:17] Production.ERROR: pbx CDR StartTime 2025-03-06 01:35:05 - End Time 2025-03-06 04:35:05 [2025-03-06 04:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 04:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618068', 'tblTempUsageDetail_20' ) start [2025-03-06 04:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618068', 'tblTempUsageDetail_20' ) end [2025-03-06 04:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618068', 'tblTempVendorCDR_20' ) start [2025-03-06 04:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618068', 'tblTempVendorCDR_20' ) end [2025-03-06 04:35:17] Production.INFO: ProcessCDR(1,14618068,1,1,2) [2025-03-06 04:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14618068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 04:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14618068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 04:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14618068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 04:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14618068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 04:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618068', 'tblTempUsageDetail_20' ) start [2025-03-06 04:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618068', 'tblTempUsageDetail_20' ) end [2025-03-06 04:35:20] Production.ERROR: pbx prc_insertCDR start [2025-03-06 04:35:20] Production.ERROR: pbx prc_insertCDR end [2025-03-06 04:35:20] Production.INFO: ==19089== Releasing lock... [2025-03-06 04:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 04:35:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-06 04:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 01:36:06 [end_date_ymd] => 2025-03-06 04:36:06 [RateCDR] => 1 ) [2025-03-06 04: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-03-06 01:36:06' and `end` < '2025-03-06 04: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-03-06 04:36:18] Production.INFO: count ==186 [2025-03-06 04:36:18] Production.ERROR: pbx CDR StartTime 2025-03-06 01:36:06 - End Time 2025-03-06 04:36:06 [2025-03-06 04:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618073', 'tblTempUsageDetail_20' ) start [2025-03-06 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618073', 'tblTempUsageDetail_20' ) end [2025-03-06 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618073', 'tblTempVendorCDR_20' ) start [2025-03-06 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618073', 'tblTempVendorCDR_20' ) end [2025-03-06 04:36:18] Production.INFO: ProcessCDR(1,14618073,1,1,2) [2025-03-06 04:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14618073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 04:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14618073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 04:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14618073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 04:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14618073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 04:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618073', 'tblTempUsageDetail_20' ) start [2025-03-06 04:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618073', 'tblTempUsageDetail_20' ) end [2025-03-06 04:36:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 04:36:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 04:36:21] Production.INFO: ==19163== Releasing lock... [2025-03-06 04:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 04:36:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-06 04:37:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 01:37:04 [end_date_ymd] => 2025-03-06 04:37:04 [RateCDR] => 1 ) [2025-03-06 04: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-03-06 01:37:04' and `end` < '2025-03-06 04: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-03-06 04:37:17] Production.INFO: count ==186 [2025-03-06 04:37:17] Production.ERROR: pbx CDR StartTime 2025-03-06 01:37:04 - End Time 2025-03-06 04:37:04 [2025-03-06 04:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 04:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618078', 'tblTempUsageDetail_20' ) start [2025-03-06 04:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618078', 'tblTempUsageDetail_20' ) end [2025-03-06 04:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618078', 'tblTempVendorCDR_20' ) start [2025-03-06 04:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618078', 'tblTempVendorCDR_20' ) end [2025-03-06 04:37:17] Production.INFO: ProcessCDR(1,14618078,1,1,2) [2025-03-06 04:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14618078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 04:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14618078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 04:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14618078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 04:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14618078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 04:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618078', 'tblTempUsageDetail_20' ) start [2025-03-06 04:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618078', 'tblTempUsageDetail_20' ) end [2025-03-06 04:37:20] Production.ERROR: pbx prc_insertCDR start [2025-03-06 04:37:20] Production.ERROR: pbx prc_insertCDR end [2025-03-06 04:37:20] Production.INFO: ==19233== Releasing lock... [2025-03-06 04:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 04:37:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-06 04:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 01:38:06 [end_date_ymd] => 2025-03-06 04:38:06 [RateCDR] => 1 ) [2025-03-06 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-03-06 01:38:06' and `end` < '2025-03-06 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-03-06 04:38:18] Production.INFO: count ==187 [2025-03-06 04:38:18] Production.ERROR: pbx CDR StartTime 2025-03-06 01:38:06 - End Time 2025-03-06 04:38:06 [2025-03-06 04:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618083', 'tblTempUsageDetail_20' ) start [2025-03-06 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618083', 'tblTempUsageDetail_20' ) end [2025-03-06 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618083', 'tblTempVendorCDR_20' ) start [2025-03-06 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618083', 'tblTempVendorCDR_20' ) end [2025-03-06 04:38:18] Production.INFO: ProcessCDR(1,14618083,1,1,2) [2025-03-06 04:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14618083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 04:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14618083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 04:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14618083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 04:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14618083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 04:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618083', 'tblTempUsageDetail_20' ) start [2025-03-06 04:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618083', 'tblTempUsageDetail_20' ) end [2025-03-06 04:38:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 04:38:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 04:38:22] Production.INFO: ==19308== Releasing lock... [2025-03-06 04:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 04:38:22] Production.INFO: 28.75 MB #Memory Used# [2025-03-06 04:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 01:39:04 [end_date_ymd] => 2025-03-06 04:39:04 [RateCDR] => 1 ) [2025-03-06 04: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-03-06 01:39:04' and `end` < '2025-03-06 04: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-03-06 04:39:16] Production.INFO: count ==187 [2025-03-06 04:39:16] Production.ERROR: pbx CDR StartTime 2025-03-06 01:39:04 - End Time 2025-03-06 04:39:04 [2025-03-06 04:39:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 04:39:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618088', 'tblTempUsageDetail_20' ) start [2025-03-06 04:39:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618088', 'tblTempUsageDetail_20' ) end [2025-03-06 04:39:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618088', 'tblTempVendorCDR_20' ) start [2025-03-06 04:39:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618088', 'tblTempVendorCDR_20' ) end [2025-03-06 04:39:16] Production.INFO: ProcessCDR(1,14618088,1,1,2) [2025-03-06 04:39:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14618088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 04:39:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14618088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 04:39:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14618088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 04:39:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14618088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 04:39:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618088', 'tblTempUsageDetail_20' ) start [2025-03-06 04:39:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618088', 'tblTempUsageDetail_20' ) end [2025-03-06 04:39:19] Production.ERROR: pbx prc_insertCDR start [2025-03-06 04:39:19] Production.ERROR: pbx prc_insertCDR end [2025-03-06 04:39:19] Production.INFO: ==19381== Releasing lock... [2025-03-06 04:39:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 04:39:19] Production.INFO: 28.75 MB #Memory Used# [2025-03-06 04:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 01:40:05 [end_date_ymd] => 2025-03-06 04:40:05 [RateCDR] => 1 ) [2025-03-06 04: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-03-06 01:40:05' and `end` < '2025-03-06 04: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-03-06 04:40:17] Production.INFO: count ==185 [2025-03-06 04:40:17] Production.ERROR: pbx CDR StartTime 2025-03-06 01:40:05 - End Time 2025-03-06 04:40:05 [2025-03-06 04:40:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 04:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618093', 'tblTempUsageDetail_20' ) start [2025-03-06 04:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618093', 'tblTempUsageDetail_20' ) end [2025-03-06 04:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618093', 'tblTempVendorCDR_20' ) start [2025-03-06 04:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618093', 'tblTempVendorCDR_20' ) end [2025-03-06 04:40:17] Production.INFO: ProcessCDR(1,14618093,1,1,2) [2025-03-06 04:40:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14618093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 04:40:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14618093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 04:40:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14618093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 04:40:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14618093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 04:40:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618093', 'tblTempUsageDetail_20' ) start [2025-03-06 04:40:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618093', 'tblTempUsageDetail_20' ) end [2025-03-06 04:40:20] Production.ERROR: pbx prc_insertCDR start [2025-03-06 04:40:20] Production.ERROR: pbx prc_insertCDR end [2025-03-06 04:40:20] Production.INFO: ==19493== Releasing lock... [2025-03-06 04:40:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 04:40:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-06 04:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 01:41:05 [end_date_ymd] => 2025-03-06 04:41:05 [RateCDR] => 1 ) [2025-03-06 04: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-03-06 01:41:05' and `end` < '2025-03-06 04: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-03-06 04:41:17] Production.INFO: count ==185 [2025-03-06 04:41:17] Production.ERROR: pbx CDR StartTime 2025-03-06 01:41:05 - End Time 2025-03-06 04:41:05 [2025-03-06 04:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 04:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618099', 'tblTempUsageDetail_20' ) start [2025-03-06 04:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618099', 'tblTempUsageDetail_20' ) end [2025-03-06 04:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618099', 'tblTempVendorCDR_20' ) start [2025-03-06 04:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618099', 'tblTempVendorCDR_20' ) end [2025-03-06 04:41:17] Production.INFO: ProcessCDR(1,14618099,1,1,2) [2025-03-06 04:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14618099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 04:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14618099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 04:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14618099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 04:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14618099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 04:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618099', 'tblTempUsageDetail_20' ) start [2025-03-06 04:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618099', 'tblTempUsageDetail_20' ) end [2025-03-06 04:41:20] Production.ERROR: pbx prc_insertCDR start [2025-03-06 04:41:20] Production.ERROR: pbx prc_insertCDR end [2025-03-06 04:41:20] Production.INFO: ==19570== Releasing lock... [2025-03-06 04:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 04:41:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-06 04:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 01:42:05 [end_date_ymd] => 2025-03-06 04:42:05 [RateCDR] => 1 ) [2025-03-06 04:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 01:42:05' and `end` < '2025-03-06 04:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 04:42:17] Production.INFO: count ==185 [2025-03-06 04:42:17] Production.ERROR: pbx CDR StartTime 2025-03-06 01:42:05 - End Time 2025-03-06 04:42:05 [2025-03-06 04:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 04:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618104', 'tblTempUsageDetail_20' ) start [2025-03-06 04:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618104', 'tblTempUsageDetail_20' ) end [2025-03-06 04:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618104', 'tblTempVendorCDR_20' ) start [2025-03-06 04:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618104', 'tblTempVendorCDR_20' ) end [2025-03-06 04:42:17] Production.INFO: ProcessCDR(1,14618104,1,1,2) [2025-03-06 04:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14618104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 04:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14618104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 04:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14618104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 04:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14618104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 04:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618104', 'tblTempUsageDetail_20' ) start [2025-03-06 04:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618104', 'tblTempUsageDetail_20' ) end [2025-03-06 04:42:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 04:42:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 04:42:21] Production.INFO: ==19641== Releasing lock... [2025-03-06 04:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 04:42:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-06 04:43:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 01:43:04 [end_date_ymd] => 2025-03-06 04:43:04 [RateCDR] => 1 ) [2025-03-06 04:43:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 01:43:04' and `end` < '2025-03-06 04:43:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 04:43:16] Production.INFO: count ==185 [2025-03-06 04:43:16] Production.ERROR: pbx CDR StartTime 2025-03-06 01:43:04 - End Time 2025-03-06 04:43:04 [2025-03-06 04:43:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 04:43:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618109', 'tblTempUsageDetail_20' ) start [2025-03-06 04:43:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618109', 'tblTempUsageDetail_20' ) end [2025-03-06 04:43:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618109', 'tblTempVendorCDR_20' ) start [2025-03-06 04:43:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618109', 'tblTempVendorCDR_20' ) end [2025-03-06 04:43:16] Production.INFO: ProcessCDR(1,14618109,1,1,2) [2025-03-06 04:43:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14618109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 04:43:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14618109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 04:43:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14618109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 04:43:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14618109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 04:43:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618109', 'tblTempUsageDetail_20' ) start [2025-03-06 04:43:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618109', 'tblTempUsageDetail_20' ) end [2025-03-06 04:43:19] Production.ERROR: pbx prc_insertCDR start [2025-03-06 04:43:19] Production.ERROR: pbx prc_insertCDR end [2025-03-06 04:43:19] Production.INFO: ==19710== Releasing lock... [2025-03-06 04:43:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 04:43:19] Production.INFO: 28.75 MB #Memory Used# [2025-03-06 04:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 01:44:05 [end_date_ymd] => 2025-03-06 04:44:05 [RateCDR] => 1 ) [2025-03-06 04:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 01:44:05' and `end` < '2025-03-06 04:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 04:44:17] Production.INFO: count ==182 [2025-03-06 04:44:17] Production.ERROR: pbx CDR StartTime 2025-03-06 01:44:05 - End Time 2025-03-06 04:44:05 [2025-03-06 04:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 04:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618114', 'tblTempUsageDetail_20' ) start [2025-03-06 04:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618114', 'tblTempUsageDetail_20' ) end [2025-03-06 04:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618114', 'tblTempVendorCDR_20' ) start [2025-03-06 04:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618114', 'tblTempVendorCDR_20' ) end [2025-03-06 04:44:17] Production.INFO: ProcessCDR(1,14618114,1,1,2) [2025-03-06 04:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14618114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 04:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14618114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 04:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14618114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 04:44:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14618114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 04:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618114', 'tblTempUsageDetail_20' ) start [2025-03-06 04:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618114', 'tblTempUsageDetail_20' ) end [2025-03-06 04:44:20] Production.ERROR: pbx prc_insertCDR start [2025-03-06 04:44:20] Production.ERROR: pbx prc_insertCDR end [2025-03-06 04:44:20] Production.INFO: ==19780== Releasing lock... [2025-03-06 04:44:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 04:44:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-06 04:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 01:45:05 [end_date_ymd] => 2025-03-06 04:45:05 [RateCDR] => 1 ) [2025-03-06 04:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 01:45:05' and `end` < '2025-03-06 04:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 04:45:16] Production.INFO: count ==182 [2025-03-06 04:45:17] Production.ERROR: pbx CDR StartTime 2025-03-06 01:45:05 - End Time 2025-03-06 04:45:05 [2025-03-06 04:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 04:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618119', 'tblTempUsageDetail_20' ) start [2025-03-06 04:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618119', 'tblTempUsageDetail_20' ) end [2025-03-06 04:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618119', 'tblTempVendorCDR_20' ) start [2025-03-06 04:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618119', 'tblTempVendorCDR_20' ) end [2025-03-06 04:45:17] Production.INFO: ProcessCDR(1,14618119,1,1,2) [2025-03-06 04:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14618119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 04:45:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14618119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 04:45:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14618119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 04:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14618119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 04:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618119', 'tblTempUsageDetail_20' ) start [2025-03-06 04:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618119', 'tblTempUsageDetail_20' ) end [2025-03-06 04:45:20] Production.ERROR: pbx prc_insertCDR start [2025-03-06 04:45:20] Production.ERROR: pbx prc_insertCDR end [2025-03-06 04:45:20] Production.INFO: ==19853== Releasing lock... [2025-03-06 04:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 04:45:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-06 04:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 01:46:05 [end_date_ymd] => 2025-03-06 04:46:05 [RateCDR] => 1 ) [2025-03-06 04:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 01:46:05' and `end` < '2025-03-06 04:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 04:46:17] Production.INFO: count ==182 [2025-03-06 04:46:17] Production.ERROR: pbx CDR StartTime 2025-03-06 01:46:05 - End Time 2025-03-06 04:46:05 [2025-03-06 04:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 04:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618124', 'tblTempUsageDetail_20' ) start [2025-03-06 04:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618124', 'tblTempUsageDetail_20' ) end [2025-03-06 04:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618124', 'tblTempVendorCDR_20' ) start [2025-03-06 04:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618124', 'tblTempVendorCDR_20' ) end [2025-03-06 04:46:17] Production.INFO: ProcessCDR(1,14618124,1,1,2) [2025-03-06 04:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14618124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 04:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14618124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 04:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14618124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 04:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14618124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 04:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618124', 'tblTempUsageDetail_20' ) start [2025-03-06 04:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618124', 'tblTempUsageDetail_20' ) end [2025-03-06 04:46:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 04:46:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 04:46:21] Production.INFO: ==19924== Releasing lock... [2025-03-06 04:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 04:46:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-06 04:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 01:47:06 [end_date_ymd] => 2025-03-06 04:47:06 [RateCDR] => 1 ) [2025-03-06 04:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 01:47:06' and `end` < '2025-03-06 04:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 04:47:18] Production.INFO: count ==182 [2025-03-06 04:47:18] Production.ERROR: pbx CDR StartTime 2025-03-06 01:47:06 - End Time 2025-03-06 04:47:06 [2025-03-06 04:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 04:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618129', 'tblTempUsageDetail_20' ) start [2025-03-06 04:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618129', 'tblTempUsageDetail_20' ) end [2025-03-06 04:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618129', 'tblTempVendorCDR_20' ) start [2025-03-06 04:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618129', 'tblTempVendorCDR_20' ) end [2025-03-06 04:47:18] Production.INFO: ProcessCDR(1,14618129,1,1,2) [2025-03-06 04:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14618129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 04:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14618129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 04:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14618129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 04:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14618129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 04:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618129', 'tblTempUsageDetail_20' ) start [2025-03-06 04:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618129', 'tblTempUsageDetail_20' ) end [2025-03-06 04:47:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 04:47:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 04:47:21] Production.INFO: ==19996== Releasing lock... [2025-03-06 04:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 04:47:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-06 04:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 01:48:05 [end_date_ymd] => 2025-03-06 04:48:05 [RateCDR] => 1 ) [2025-03-06 04:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 01:48:05' and `end` < '2025-03-06 04:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 04:48:18] Production.INFO: count ==182 [2025-03-06 04:48:18] Production.ERROR: pbx CDR StartTime 2025-03-06 01:48:05 - End Time 2025-03-06 04:48:05 [2025-03-06 04:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 04:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618134', 'tblTempUsageDetail_20' ) start [2025-03-06 04:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618134', 'tblTempUsageDetail_20' ) end [2025-03-06 04:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618134', 'tblTempVendorCDR_20' ) start [2025-03-06 04:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618134', 'tblTempVendorCDR_20' ) end [2025-03-06 04:48:18] Production.INFO: ProcessCDR(1,14618134,1,1,2) [2025-03-06 04:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14618134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 04:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14618134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 04:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14618134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 04:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14618134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 04:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618134', 'tblTempUsageDetail_20' ) start [2025-03-06 04:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618134', 'tblTempUsageDetail_20' ) end [2025-03-06 04:48:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 04:48:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 04:48:21] Production.INFO: ==20065== Releasing lock... [2025-03-06 04:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 04:48:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-06 04:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 01:49:05 [end_date_ymd] => 2025-03-06 04:49:05 [RateCDR] => 1 ) [2025-03-06 04:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 01:49:05' and `end` < '2025-03-06 04:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 04:49:18] Production.INFO: count ==181 [2025-03-06 04:49:18] Production.ERROR: pbx CDR StartTime 2025-03-06 01:49:05 - End Time 2025-03-06 04:49:05 [2025-03-06 04:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 04:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618139', 'tblTempUsageDetail_20' ) start [2025-03-06 04:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618139', 'tblTempUsageDetail_20' ) end [2025-03-06 04:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618139', 'tblTempVendorCDR_20' ) start [2025-03-06 04:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618139', 'tblTempVendorCDR_20' ) end [2025-03-06 04:49:18] Production.INFO: ProcessCDR(1,14618139,1,1,2) [2025-03-06 04:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14618139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 04:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14618139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 04:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14618139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 04:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14618139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 04:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618139', 'tblTempUsageDetail_20' ) start [2025-03-06 04:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618139', 'tblTempUsageDetail_20' ) end [2025-03-06 04:49:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 04:49:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 04:49:21] Production.INFO: ==20136== Releasing lock... [2025-03-06 04:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 04:49:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-06 04:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 01:50:06 [end_date_ymd] => 2025-03-06 04:50:06 [RateCDR] => 1 ) [2025-03-06 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-03-06 01:50:06' and `end` < '2025-03-06 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-03-06 04:50:18] Production.INFO: count ==179 [2025-03-06 04:50:18] Production.ERROR: pbx CDR StartTime 2025-03-06 01:50:06 - End Time 2025-03-06 04:50:06 [2025-03-06 04:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 04:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618145', 'tblTempUsageDetail_20' ) start [2025-03-06 04:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618145', 'tblTempUsageDetail_20' ) end [2025-03-06 04:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618145', 'tblTempVendorCDR_20' ) start [2025-03-06 04:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618145', 'tblTempVendorCDR_20' ) end [2025-03-06 04:50:18] Production.INFO: ProcessCDR(1,14618145,1,1,2) [2025-03-06 04:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14618145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 04:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14618145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 04:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14618145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 04:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14618145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 04:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618145', 'tblTempUsageDetail_20' ) start [2025-03-06 04:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618145', 'tblTempUsageDetail_20' ) end [2025-03-06 04:50:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 04:50:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 04:50:21] Production.INFO: ==20210== Releasing lock... [2025-03-06 04:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 04:50:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-06 04:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 01:51:05 [end_date_ymd] => 2025-03-06 04:51:05 [RateCDR] => 1 ) [2025-03-06 04:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 01:51:05' and `end` < '2025-03-06 04:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 04:51:18] Production.INFO: count ==179 [2025-03-06 04:51:18] Production.ERROR: pbx CDR StartTime 2025-03-06 01:51:05 - End Time 2025-03-06 04:51:05 [2025-03-06 04:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 04:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618150', 'tblTempUsageDetail_20' ) start [2025-03-06 04:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618150', 'tblTempUsageDetail_20' ) end [2025-03-06 04:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618150', 'tblTempVendorCDR_20' ) start [2025-03-06 04:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618150', 'tblTempVendorCDR_20' ) end [2025-03-06 04:51:18] Production.INFO: ProcessCDR(1,14618150,1,1,2) [2025-03-06 04:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14618150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 04:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14618150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 04:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14618150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 04:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14618150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 04:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618150', 'tblTempUsageDetail_20' ) start [2025-03-06 04:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618150', 'tblTempUsageDetail_20' ) end [2025-03-06 04:51:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 04:51:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 04:51:21] Production.INFO: ==20283== Releasing lock... [2025-03-06 04:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 04:51:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-06 04:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 01:52:05 [end_date_ymd] => 2025-03-06 04:52:05 [RateCDR] => 1 ) [2025-03-06 04:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 01:52:05' and `end` < '2025-03-06 04:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 04:52:18] Production.INFO: count ==179 [2025-03-06 04:52:18] Production.ERROR: pbx CDR StartTime 2025-03-06 01:52:05 - End Time 2025-03-06 04:52:05 [2025-03-06 04:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 04:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618155', 'tblTempUsageDetail_20' ) start [2025-03-06 04:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618155', 'tblTempUsageDetail_20' ) end [2025-03-06 04:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618155', 'tblTempVendorCDR_20' ) start [2025-03-06 04:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618155', 'tblTempVendorCDR_20' ) end [2025-03-06 04:52:18] Production.INFO: ProcessCDR(1,14618155,1,1,2) [2025-03-06 04:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14618155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 04:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14618155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 04:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14618155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 04:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14618155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 04:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618155', 'tblTempUsageDetail_20' ) start [2025-03-06 04:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618155', 'tblTempUsageDetail_20' ) end [2025-03-06 04:52:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 04:52:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 04:52:21] Production.INFO: ==20352== Releasing lock... [2025-03-06 04:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 04:52:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-06 04:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 01:53:06 [end_date_ymd] => 2025-03-06 04:53:06 [RateCDR] => 1 ) [2025-03-06 04: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-03-06 01:53:06' and `end` < '2025-03-06 04: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-03-06 04:53:18] Production.INFO: count ==178 [2025-03-06 04:53:18] Production.ERROR: pbx CDR StartTime 2025-03-06 01:53:06 - End Time 2025-03-06 04:53:06 [2025-03-06 04:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 04:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618160', 'tblTempUsageDetail_20' ) start [2025-03-06 04:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618160', 'tblTempUsageDetail_20' ) end [2025-03-06 04:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618160', 'tblTempVendorCDR_20' ) start [2025-03-06 04:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618160', 'tblTempVendorCDR_20' ) end [2025-03-06 04:53:18] Production.INFO: ProcessCDR(1,14618160,1,1,2) [2025-03-06 04:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14618160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 04:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14618160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 04:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14618160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 04:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14618160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 04:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618160', 'tblTempUsageDetail_20' ) start [2025-03-06 04:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618160', 'tblTempUsageDetail_20' ) end [2025-03-06 04:53:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 04:53:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 04:53:21] Production.INFO: ==20422== Releasing lock... [2025-03-06 04:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 04:53:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-06 04:54:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 01:54:04 [end_date_ymd] => 2025-03-06 04:54:04 [RateCDR] => 1 ) [2025-03-06 04:54:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 01:54:04' and `end` < '2025-03-06 04: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-03-06 04:54:17] Production.INFO: count ==178 [2025-03-06 04:54:17] Production.ERROR: pbx CDR StartTime 2025-03-06 01:54:04 - End Time 2025-03-06 04:54:04 [2025-03-06 04:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 04:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618165', 'tblTempUsageDetail_20' ) start [2025-03-06 04:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618165', 'tblTempUsageDetail_20' ) end [2025-03-06 04:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618165', 'tblTempVendorCDR_20' ) start [2025-03-06 04:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618165', 'tblTempVendorCDR_20' ) end [2025-03-06 04:54:17] Production.INFO: ProcessCDR(1,14618165,1,1,2) [2025-03-06 04:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14618165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 04:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14618165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 04:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14618165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 04:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14618165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 04:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618165', 'tblTempUsageDetail_20' ) start [2025-03-06 04:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618165', 'tblTempUsageDetail_20' ) end [2025-03-06 04:54:20] Production.ERROR: pbx prc_insertCDR start [2025-03-06 04:54:20] Production.ERROR: pbx prc_insertCDR end [2025-03-06 04:54:20] Production.INFO: ==20497== Releasing lock... [2025-03-06 04:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 04:54:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-06 04:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 01:55:05 [end_date_ymd] => 2025-03-06 04:55:05 [RateCDR] => 1 ) [2025-03-06 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-03-06 01:55:05' and `end` < '2025-03-06 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-03-06 04:55:18] Production.INFO: count ==178 [2025-03-06 04:55:18] Production.ERROR: pbx CDR StartTime 2025-03-06 01:55:05 - End Time 2025-03-06 04:55:05 [2025-03-06 04:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 04:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618170', 'tblTempUsageDetail_20' ) start [2025-03-06 04:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618170', 'tblTempUsageDetail_20' ) end [2025-03-06 04:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618170', 'tblTempVendorCDR_20' ) start [2025-03-06 04:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618170', 'tblTempVendorCDR_20' ) end [2025-03-06 04:55:18] Production.INFO: ProcessCDR(1,14618170,1,1,2) [2025-03-06 04:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14618170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 04:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14618170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 04:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14618170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 04:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14618170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 04:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618170', 'tblTempUsageDetail_20' ) start [2025-03-06 04:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618170', 'tblTempUsageDetail_20' ) end [2025-03-06 04:55:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 04:55:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 04:55:21] Production.INFO: ==20607== Releasing lock... [2025-03-06 04:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 04:55:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-06 04:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 01:56:05 [end_date_ymd] => 2025-03-06 04:56:05 [RateCDR] => 1 ) [2025-03-06 04:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 01:56:05' and `end` < '2025-03-06 04:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 04:56:17] Production.INFO: count ==178 [2025-03-06 04:56:17] Production.ERROR: pbx CDR StartTime 2025-03-06 01:56:05 - End Time 2025-03-06 04:56:05 [2025-03-06 04:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 04:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618175', 'tblTempUsageDetail_20' ) start [2025-03-06 04:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618175', 'tblTempUsageDetail_20' ) end [2025-03-06 04:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618175', 'tblTempVendorCDR_20' ) start [2025-03-06 04:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618175', 'tblTempVendorCDR_20' ) end [2025-03-06 04:56:17] Production.INFO: ProcessCDR(1,14618175,1,1,2) [2025-03-06 04:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14618175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 04:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14618175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 04:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14618175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 04:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14618175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 04:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618175', 'tblTempUsageDetail_20' ) start [2025-03-06 04:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618175', 'tblTempUsageDetail_20' ) end [2025-03-06 04:56:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 04:56:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 04:56:21] Production.INFO: ==20677== Releasing lock... [2025-03-06 04:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 04:56:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-06 04:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 01:57:05 [end_date_ymd] => 2025-03-06 04:57:05 [RateCDR] => 1 ) [2025-03-06 04: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-03-06 01:57:05' and `end` < '2025-03-06 04: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-03-06 04:57:18] Production.INFO: count ==178 [2025-03-06 04:57:18] Production.ERROR: pbx CDR StartTime 2025-03-06 01:57:05 - End Time 2025-03-06 04:57:05 [2025-03-06 04:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 04:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618180', 'tblTempUsageDetail_20' ) start [2025-03-06 04:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618180', 'tblTempUsageDetail_20' ) end [2025-03-06 04:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618180', 'tblTempVendorCDR_20' ) start [2025-03-06 04:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618180', 'tblTempVendorCDR_20' ) end [2025-03-06 04:57:18] Production.INFO: ProcessCDR(1,14618180,1,1,2) [2025-03-06 04:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14618180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 04:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14618180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 04:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14618180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 04:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14618180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 04:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618180', 'tblTempUsageDetail_20' ) start [2025-03-06 04:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618180', 'tblTempUsageDetail_20' ) end [2025-03-06 04:57:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 04:57:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 04:57:21] Production.INFO: ==20747== Releasing lock... [2025-03-06 04:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 04:57:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-06 04:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 01:58:05 [end_date_ymd] => 2025-03-06 04:58:05 [RateCDR] => 1 ) [2025-03-06 04:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 01:58:05' and `end` < '2025-03-06 04:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 04:58:17] Production.INFO: count ==178 [2025-03-06 04:58:17] Production.ERROR: pbx CDR StartTime 2025-03-06 01:58:05 - End Time 2025-03-06 04:58:05 [2025-03-06 04:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 04:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618185', 'tblTempUsageDetail_20' ) start [2025-03-06 04:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618185', 'tblTempUsageDetail_20' ) end [2025-03-06 04:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618185', 'tblTempVendorCDR_20' ) start [2025-03-06 04:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618185', 'tblTempVendorCDR_20' ) end [2025-03-06 04:58:17] Production.INFO: ProcessCDR(1,14618185,1,1,2) [2025-03-06 04:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14618185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 04:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14618185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 04:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14618185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 04:58:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14618185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 04:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618185', 'tblTempUsageDetail_20' ) start [2025-03-06 04:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618185', 'tblTempUsageDetail_20' ) end [2025-03-06 04:58:20] Production.ERROR: pbx prc_insertCDR start [2025-03-06 04:58:20] Production.ERROR: pbx prc_insertCDR end [2025-03-06 04:58:20] Production.INFO: ==20817== Releasing lock... [2025-03-06 04:58:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 04:58:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-06 04:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 01:59:05 [end_date_ymd] => 2025-03-06 04:59:05 [RateCDR] => 1 ) [2025-03-06 04:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 01:59:05' and `end` < '2025-03-06 04:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 04:59:17] Production.INFO: count ==178 [2025-03-06 04:59:18] Production.ERROR: pbx CDR StartTime 2025-03-06 01:59:05 - End Time 2025-03-06 04:59:05 [2025-03-06 04:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 04:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618190', 'tblTempUsageDetail_20' ) start [2025-03-06 04:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618190', 'tblTempUsageDetail_20' ) end [2025-03-06 04:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618190', 'tblTempVendorCDR_20' ) start [2025-03-06 04:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618190', 'tblTempVendorCDR_20' ) end [2025-03-06 04:59:18] Production.INFO: ProcessCDR(1,14618190,1,1,2) [2025-03-06 04:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14618190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 04:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14618190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 04:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14618190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 04:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14618190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 04:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618190', 'tblTempUsageDetail_20' ) start [2025-03-06 04:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618190', 'tblTempUsageDetail_20' ) end [2025-03-06 04:59:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 04:59:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 04:59:21] Production.INFO: ==20886== Releasing lock... [2025-03-06 04:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 04:59:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-06 05:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 02:00:06 [end_date_ymd] => 2025-03-06 05:00:06 [RateCDR] => 1 ) [2025-03-06 05:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 02:00:06' and `end` < '2025-03-06 05:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 05:00:18] Production.INFO: count ==174 [2025-03-06 05:00:18] Production.ERROR: pbx CDR StartTime 2025-03-06 02:00:06 - End Time 2025-03-06 05:00:06 [2025-03-06 05:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 05:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618196', 'tblTempUsageDetail_20' ) start [2025-03-06 05:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618196', 'tblTempUsageDetail_20' ) end [2025-03-06 05:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618196', 'tblTempVendorCDR_20' ) start [2025-03-06 05:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618196', 'tblTempVendorCDR_20' ) end [2025-03-06 05:00:18] Production.INFO: ProcessCDR(1,14618196,1,1,2) [2025-03-06 05:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14618196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 05:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14618196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 05:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14618196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 05:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14618196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 05:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618196', 'tblTempUsageDetail_20' ) start [2025-03-06 05:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618196', 'tblTempUsageDetail_20' ) end [2025-03-06 05:00:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 05:00:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 05:00:21] Production.INFO: ==20959== Releasing lock... [2025-03-06 05:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 05:00:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-06 05:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 02:01:05 [end_date_ymd] => 2025-03-06 05:01:05 [RateCDR] => 1 ) [2025-03-06 05: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-03-06 02:01:05' and `end` < '2025-03-06 05: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-03-06 05:01:17] Production.INFO: count ==171 [2025-03-06 05:01:17] Production.ERROR: pbx CDR StartTime 2025-03-06 02:01:05 - End Time 2025-03-06 05:01:05 [2025-03-06 05:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 05:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618201', 'tblTempUsageDetail_20' ) start [2025-03-06 05:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618201', 'tblTempUsageDetail_20' ) end [2025-03-06 05:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618201', 'tblTempVendorCDR_20' ) start [2025-03-06 05:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618201', 'tblTempVendorCDR_20' ) end [2025-03-06 05:01:17] Production.INFO: ProcessCDR(1,14618201,1,1,2) [2025-03-06 05:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14618201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 05:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14618201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 05:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14618201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 05:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14618201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 05:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618201', 'tblTempUsageDetail_20' ) start [2025-03-06 05:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618201', 'tblTempUsageDetail_20' ) end [2025-03-06 05:01:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 05:01:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 05:01:21] Production.INFO: ==21044== Releasing lock... [2025-03-06 05:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 05:01:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-06 05:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 02:02:06 [end_date_ymd] => 2025-03-06 05:02:06 [RateCDR] => 1 ) [2025-03-06 05:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 02:02:06' and `end` < '2025-03-06 05:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 05:02:19] Production.INFO: count ==168 [2025-03-06 05:02:19] Production.ERROR: pbx CDR StartTime 2025-03-06 02:02:06 - End Time 2025-03-06 05:02:06 [2025-03-06 05:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 05:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618206', 'tblTempUsageDetail_20' ) start [2025-03-06 05:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618206', 'tblTempUsageDetail_20' ) end [2025-03-06 05:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618206', 'tblTempVendorCDR_20' ) start [2025-03-06 05:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618206', 'tblTempVendorCDR_20' ) end [2025-03-06 05:02:19] Production.INFO: ProcessCDR(1,14618206,1,1,2) [2025-03-06 05:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14618206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 05:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14618206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 05:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14618206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 05:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14618206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 05:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618206', 'tblTempUsageDetail_20' ) start [2025-03-06 05:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618206', 'tblTempUsageDetail_20' ) end [2025-03-06 05:02:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 05:02:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 05:02:22] Production.INFO: ==21117== Releasing lock... [2025-03-06 05:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 05:02:22] Production.INFO: 28.5 MB #Memory Used# [2025-03-06 05:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 02:03:06 [end_date_ymd] => 2025-03-06 05:03:06 [RateCDR] => 1 ) [2025-03-06 05:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 02:03:06' and `end` < '2025-03-06 05:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 05:03:18] Production.INFO: count ==168 [2025-03-06 05:03:18] Production.ERROR: pbx CDR StartTime 2025-03-06 02:03:06 - End Time 2025-03-06 05:03:06 [2025-03-06 05:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 05:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618211', 'tblTempUsageDetail_20' ) start [2025-03-06 05:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618211', 'tblTempUsageDetail_20' ) end [2025-03-06 05:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618211', 'tblTempVendorCDR_20' ) start [2025-03-06 05:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618211', 'tblTempVendorCDR_20' ) end [2025-03-06 05:03:18] Production.INFO: ProcessCDR(1,14618211,1,1,2) [2025-03-06 05:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14618211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 05:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14618211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 05:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14618211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 05:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14618211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 05:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618211', 'tblTempUsageDetail_20' ) start [2025-03-06 05:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618211', 'tblTempUsageDetail_20' ) end [2025-03-06 05:03:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 05:03:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 05:03:21] Production.INFO: ==21189== Releasing lock... [2025-03-06 05:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 05:03:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-06 05:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 02:04:05 [end_date_ymd] => 2025-03-06 05:04:05 [RateCDR] => 1 ) [2025-03-06 05:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 02:04:05' and `end` < '2025-03-06 05:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 05:04:18] Production.INFO: count ==168 [2025-03-06 05:04:18] Production.ERROR: pbx CDR StartTime 2025-03-06 02:04:05 - End Time 2025-03-06 05:04:05 [2025-03-06 05:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618216', 'tblTempUsageDetail_20' ) start [2025-03-06 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618216', 'tblTempUsageDetail_20' ) end [2025-03-06 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618216', 'tblTempVendorCDR_20' ) start [2025-03-06 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618216', 'tblTempVendorCDR_20' ) end [2025-03-06 05:04:18] Production.INFO: ProcessCDR(1,14618216,1,1,2) [2025-03-06 05:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14618216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 05:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14618216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 05:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14618216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 05:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14618216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 05:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618216', 'tblTempUsageDetail_20' ) start [2025-03-06 05:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618216', 'tblTempUsageDetail_20' ) end [2025-03-06 05:04:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 05:04:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 05:04:21] Production.INFO: ==21259== Releasing lock... [2025-03-06 05:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 05:04:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-06 05:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 02:05:05 [end_date_ymd] => 2025-03-06 05:05:05 [RateCDR] => 1 ) [2025-03-06 05:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 02:05:05' and `end` < '2025-03-06 05:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 05:05:17] Production.INFO: count ==168 [2025-03-06 05:05:17] Production.ERROR: pbx CDR StartTime 2025-03-06 02:05:05 - End Time 2025-03-06 05:05:05 [2025-03-06 05:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 05:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618221', 'tblTempUsageDetail_20' ) start [2025-03-06 05:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618221', 'tblTempUsageDetail_20' ) end [2025-03-06 05:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618221', 'tblTempVendorCDR_20' ) start [2025-03-06 05:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618221', 'tblTempVendorCDR_20' ) end [2025-03-06 05:05:17] Production.INFO: ProcessCDR(1,14618221,1,1,2) [2025-03-06 05:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14618221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 05:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14618221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 05:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14618221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 05:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14618221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 05:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618221', 'tblTempUsageDetail_20' ) start [2025-03-06 05:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618221', 'tblTempUsageDetail_20' ) end [2025-03-06 05:05:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 05:05:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 05:05:21] Production.INFO: ==21329== Releasing lock... [2025-03-06 05:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 05:05:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-06 05:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 02:06:06 [end_date_ymd] => 2025-03-06 05:06:06 [RateCDR] => 1 ) [2025-03-06 05: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-03-06 02:06:06' and `end` < '2025-03-06 05: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-03-06 05:06:18] Production.INFO: count ==168 [2025-03-06 05:06:18] Production.ERROR: pbx CDR StartTime 2025-03-06 02:06:06 - End Time 2025-03-06 05:06:06 [2025-03-06 05:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618226', 'tblTempUsageDetail_20' ) start [2025-03-06 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618226', 'tblTempUsageDetail_20' ) end [2025-03-06 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618226', 'tblTempVendorCDR_20' ) start [2025-03-06 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618226', 'tblTempVendorCDR_20' ) end [2025-03-06 05:06:18] Production.INFO: ProcessCDR(1,14618226,1,1,2) [2025-03-06 05:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14618226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 05:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14618226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 05:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14618226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 05:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14618226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 05:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618226', 'tblTempUsageDetail_20' ) start [2025-03-06 05:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618226', 'tblTempUsageDetail_20' ) end [2025-03-06 05:06:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 05:06:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 05:06:22] Production.INFO: ==21399== Releasing lock... [2025-03-06 05:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 05:06:22] Production.INFO: 28.5 MB #Memory Used# [2025-03-06 05:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 02:07:05 [end_date_ymd] => 2025-03-06 05:07:05 [RateCDR] => 1 ) [2025-03-06 05:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 02:07:05' and `end` < '2025-03-06 05:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 05:07:17] Production.INFO: count ==168 [2025-03-06 05:07:17] Production.ERROR: pbx CDR StartTime 2025-03-06 02:07:05 - End Time 2025-03-06 05:07:05 [2025-03-06 05:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 05:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618231', 'tblTempUsageDetail_20' ) start [2025-03-06 05:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618231', 'tblTempUsageDetail_20' ) end [2025-03-06 05:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618231', 'tblTempVendorCDR_20' ) start [2025-03-06 05:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618231', 'tblTempVendorCDR_20' ) end [2025-03-06 05:07:17] Production.INFO: ProcessCDR(1,14618231,1,1,2) [2025-03-06 05:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14618231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 05:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14618231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 05:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14618231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 05:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14618231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 05:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618231', 'tblTempUsageDetail_20' ) start [2025-03-06 05:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618231', 'tblTempUsageDetail_20' ) end [2025-03-06 05:07:20] Production.ERROR: pbx prc_insertCDR start [2025-03-06 05:07:20] Production.ERROR: pbx prc_insertCDR end [2025-03-06 05:07:20] Production.INFO: ==21471== Releasing lock... [2025-03-06 05:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 05:07:20] Production.INFO: 28.5 MB #Memory Used# [2025-03-06 05:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 02:08:06 [end_date_ymd] => 2025-03-06 05:08:06 [RateCDR] => 1 ) [2025-03-06 05: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-03-06 02:08:06' and `end` < '2025-03-06 05: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-03-06 05:08:18] Production.INFO: count ==168 [2025-03-06 05:08:18] Production.ERROR: pbx CDR StartTime 2025-03-06 02:08:06 - End Time 2025-03-06 05:08:06 [2025-03-06 05:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 05:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618236', 'tblTempUsageDetail_20' ) start [2025-03-06 05:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618236', 'tblTempUsageDetail_20' ) end [2025-03-06 05:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618236', 'tblTempVendorCDR_20' ) start [2025-03-06 05:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618236', 'tblTempVendorCDR_20' ) end [2025-03-06 05:08:18] Production.INFO: ProcessCDR(1,14618236,1,1,2) [2025-03-06 05:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14618236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 05:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14618236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 05:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14618236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 05:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14618236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 05:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618236', 'tblTempUsageDetail_20' ) start [2025-03-06 05:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618236', 'tblTempUsageDetail_20' ) end [2025-03-06 05:08:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 05:08:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 05:08:21] Production.INFO: ==21542== Releasing lock... [2025-03-06 05:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 05:08:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-06 05:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 02:09:05 [end_date_ymd] => 2025-03-06 05:09:05 [RateCDR] => 1 ) [2025-03-06 05:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 02:09:05' and `end` < '2025-03-06 05:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 05:09:17] Production.INFO: count ==168 [2025-03-06 05:09:17] Production.ERROR: pbx CDR StartTime 2025-03-06 02:09:05 - End Time 2025-03-06 05:09:05 [2025-03-06 05:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 05:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618241', 'tblTempUsageDetail_20' ) start [2025-03-06 05:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618241', 'tblTempUsageDetail_20' ) end [2025-03-06 05:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618241', 'tblTempVendorCDR_20' ) start [2025-03-06 05:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618241', 'tblTempVendorCDR_20' ) end [2025-03-06 05:09:17] Production.INFO: ProcessCDR(1,14618241,1,1,2) [2025-03-06 05:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14618241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 05:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14618241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 05:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14618241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 05:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14618241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 05:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618241', 'tblTempUsageDetail_20' ) start [2025-03-06 05:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618241', 'tblTempUsageDetail_20' ) end [2025-03-06 05:09:20] Production.ERROR: pbx prc_insertCDR start [2025-03-06 05:09:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 05:09:21] Production.INFO: ==21611== Releasing lock... [2025-03-06 05:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 05:09:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-06 05:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 02:10:05 [end_date_ymd] => 2025-03-06 05:10:05 [RateCDR] => 1 ) [2025-03-06 05:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 02:10:05' and `end` < '2025-03-06 05:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 05:10:17] Production.INFO: count ==166 [2025-03-06 05:10:17] Production.ERROR: pbx CDR StartTime 2025-03-06 02:10:05 - End Time 2025-03-06 05:10:05 [2025-03-06 05:10:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 05:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618247', 'tblTempUsageDetail_20' ) start [2025-03-06 05:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618247', 'tblTempUsageDetail_20' ) end [2025-03-06 05:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618247', 'tblTempVendorCDR_20' ) start [2025-03-06 05:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618247', 'tblTempVendorCDR_20' ) end [2025-03-06 05:10:17] Production.INFO: ProcessCDR(1,14618247,1,1,2) [2025-03-06 05:10:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14618247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 05:10:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14618247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 05:10:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14618247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 05:10:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14618247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 05:10:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618247', 'tblTempUsageDetail_20' ) start [2025-03-06 05:10:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618247', 'tblTempUsageDetail_20' ) end [2025-03-06 05:10:20] Production.ERROR: pbx prc_insertCDR start [2025-03-06 05:10:20] Production.ERROR: pbx prc_insertCDR end [2025-03-06 05:10:20] Production.INFO: ==21684== Releasing lock... [2025-03-06 05:10:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 05:10:20] Production.INFO: 28.5 MB #Memory Used# [2025-03-06 05:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 02:11:05 [end_date_ymd] => 2025-03-06 05:11:05 [RateCDR] => 1 ) [2025-03-06 05:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 02:11:05' and `end` < '2025-03-06 05:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 05:11:17] Production.INFO: count ==162 [2025-03-06 05:11:17] Production.ERROR: pbx CDR StartTime 2025-03-06 02:11:05 - End Time 2025-03-06 05:11:05 [2025-03-06 05:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 05:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618252', 'tblTempUsageDetail_20' ) start [2025-03-06 05:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618252', 'tblTempUsageDetail_20' ) end [2025-03-06 05:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618252', 'tblTempVendorCDR_20' ) start [2025-03-06 05:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618252', 'tblTempVendorCDR_20' ) end [2025-03-06 05:11:17] Production.INFO: ProcessCDR(1,14618252,1,1,2) [2025-03-06 05:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14618252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 05:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14618252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 05:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14618252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 05:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14618252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 05:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618252', 'tblTempUsageDetail_20' ) start [2025-03-06 05:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618252', 'tblTempUsageDetail_20' ) end [2025-03-06 05:11:20] Production.ERROR: pbx prc_insertCDR start [2025-03-06 05:11:20] Production.ERROR: pbx prc_insertCDR end [2025-03-06 05:11:20] Production.INFO: ==21798== Releasing lock... [2025-03-06 05:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 05:11:20] Production.INFO: 28.5 MB #Memory Used# [2025-03-06 05:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 02:12:06 [end_date_ymd] => 2025-03-06 05:12:06 [RateCDR] => 1 ) [2025-03-06 05: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-03-06 02:12:06' and `end` < '2025-03-06 05: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-03-06 05:12:18] Production.INFO: count ==162 [2025-03-06 05:12:18] Production.ERROR: pbx CDR StartTime 2025-03-06 02:12:06 - End Time 2025-03-06 05:12:06 [2025-03-06 05:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618257', 'tblTempUsageDetail_20' ) start [2025-03-06 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618257', 'tblTempUsageDetail_20' ) end [2025-03-06 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618257', 'tblTempVendorCDR_20' ) start [2025-03-06 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618257', 'tblTempVendorCDR_20' ) end [2025-03-06 05:12:18] Production.INFO: ProcessCDR(1,14618257,1,1,2) [2025-03-06 05:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14618257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 05:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14618257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 05:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14618257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 05:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14618257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 05:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618257', 'tblTempUsageDetail_20' ) start [2025-03-06 05:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618257', 'tblTempUsageDetail_20' ) end [2025-03-06 05:12:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 05:12:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 05:12:21] Production.INFO: ==21870== Releasing lock... [2025-03-06 05:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 05:12:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-06 05:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 02:13:05 [end_date_ymd] => 2025-03-06 05:13:05 [RateCDR] => 1 ) [2025-03-06 05:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 02:13:05' and `end` < '2025-03-06 05:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 05:13:17] Production.INFO: count ==162 [2025-03-06 05:13:17] Production.ERROR: pbx CDR StartTime 2025-03-06 02:13:05 - End Time 2025-03-06 05:13:05 [2025-03-06 05:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 05:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618262', 'tblTempUsageDetail_20' ) start [2025-03-06 05:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618262', 'tblTempUsageDetail_20' ) end [2025-03-06 05:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618262', 'tblTempVendorCDR_20' ) start [2025-03-06 05:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618262', 'tblTempVendorCDR_20' ) end [2025-03-06 05:13:17] Production.INFO: ProcessCDR(1,14618262,1,1,2) [2025-03-06 05:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14618262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 05:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14618262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 05:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14618262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 05:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14618262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 05:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618262', 'tblTempUsageDetail_20' ) start [2025-03-06 05:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618262', 'tblTempUsageDetail_20' ) end [2025-03-06 05:13:20] Production.ERROR: pbx prc_insertCDR start [2025-03-06 05:13:20] Production.ERROR: pbx prc_insertCDR end [2025-03-06 05:13:20] Production.INFO: ==21946== Releasing lock... [2025-03-06 05:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 05:13:20] Production.INFO: 28.5 MB #Memory Used# [2025-03-06 05:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 02:14:06 [end_date_ymd] => 2025-03-06 05:14:06 [RateCDR] => 1 ) [2025-03-06 05: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-03-06 02:14:06' and `end` < '2025-03-06 05: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-03-06 05:14:18] Production.INFO: count ==162 [2025-03-06 05:14:18] Production.ERROR: pbx CDR StartTime 2025-03-06 02:14:06 - End Time 2025-03-06 05:14:06 [2025-03-06 05:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618267', 'tblTempUsageDetail_20' ) start [2025-03-06 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618267', 'tblTempUsageDetail_20' ) end [2025-03-06 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618267', 'tblTempVendorCDR_20' ) start [2025-03-06 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618267', 'tblTempVendorCDR_20' ) end [2025-03-06 05:14:18] Production.INFO: ProcessCDR(1,14618267,1,1,2) [2025-03-06 05:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14618267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 05:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14618267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 05:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14618267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 05:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14618267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 05:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618267', 'tblTempUsageDetail_20' ) start [2025-03-06 05:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618267', 'tblTempUsageDetail_20' ) end [2025-03-06 05:14:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 05:14:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 05:14:21] Production.INFO: ==22019== Releasing lock... [2025-03-06 05:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 05:14:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-06 05:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 02:15:05 [end_date_ymd] => 2025-03-06 05:15:05 [RateCDR] => 1 ) [2025-03-06 05:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 02:15:05' and `end` < '2025-03-06 05:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 05:15:17] Production.INFO: count ==162 [2025-03-06 05:15:17] Production.ERROR: pbx CDR StartTime 2025-03-06 02:15:05 - End Time 2025-03-06 05:15:05 [2025-03-06 05:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 05:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618272', 'tblTempUsageDetail_20' ) start [2025-03-06 05:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618272', 'tblTempUsageDetail_20' ) end [2025-03-06 05:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618272', 'tblTempVendorCDR_20' ) start [2025-03-06 05:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618272', 'tblTempVendorCDR_20' ) end [2025-03-06 05:15:17] Production.INFO: ProcessCDR(1,14618272,1,1,2) [2025-03-06 05:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14618272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 05:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14618272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 05:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14618272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 05:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14618272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 05:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618272', 'tblTempUsageDetail_20' ) start [2025-03-06 05:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618272', 'tblTempUsageDetail_20' ) end [2025-03-06 05:15:20] Production.ERROR: pbx prc_insertCDR start [2025-03-06 05:15:20] Production.ERROR: pbx prc_insertCDR end [2025-03-06 05:15:20] Production.INFO: ==22089== Releasing lock... [2025-03-06 05:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 05:15:20] Production.INFO: 28.5 MB #Memory Used# [2025-03-06 05:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 02:16:06 [end_date_ymd] => 2025-03-06 05:16:06 [RateCDR] => 1 ) [2025-03-06 05: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-03-06 02:16:06' and `end` < '2025-03-06 05: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-03-06 05:16:18] Production.INFO: count ==162 [2025-03-06 05:16:18] Production.ERROR: pbx CDR StartTime 2025-03-06 02:16:06 - End Time 2025-03-06 05:16:06 [2025-03-06 05:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 05:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618277', 'tblTempUsageDetail_20' ) start [2025-03-06 05:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618277', 'tblTempUsageDetail_20' ) end [2025-03-06 05:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618277', 'tblTempVendorCDR_20' ) start [2025-03-06 05:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618277', 'tblTempVendorCDR_20' ) end [2025-03-06 05:16:18] Production.INFO: ProcessCDR(1,14618277,1,1,2) [2025-03-06 05:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14618277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 05:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14618277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 05:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14618277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 05:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14618277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 05:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618277', 'tblTempUsageDetail_20' ) start [2025-03-06 05:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618277', 'tblTempUsageDetail_20' ) end [2025-03-06 05:16:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 05:16:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 05:16:21] Production.INFO: ==22163== Releasing lock... [2025-03-06 05:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 05:16:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-06 05:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 02:17:05 [end_date_ymd] => 2025-03-06 05:17:05 [RateCDR] => 1 ) [2025-03-06 05:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 02:17:05' and `end` < '2025-03-06 05:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 05:17:17] Production.INFO: count ==162 [2025-03-06 05:17:17] Production.ERROR: pbx CDR StartTime 2025-03-06 02:17:05 - End Time 2025-03-06 05:17:05 [2025-03-06 05:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 05:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618282', 'tblTempUsageDetail_20' ) start [2025-03-06 05:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618282', 'tblTempUsageDetail_20' ) end [2025-03-06 05:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618282', 'tblTempVendorCDR_20' ) start [2025-03-06 05:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618282', 'tblTempVendorCDR_20' ) end [2025-03-06 05:17:17] Production.INFO: ProcessCDR(1,14618282,1,1,2) [2025-03-06 05:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14618282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 05:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14618282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 05:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14618282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 05:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14618282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 05:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618282', 'tblTempUsageDetail_20' ) start [2025-03-06 05:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618282', 'tblTempUsageDetail_20' ) end [2025-03-06 05:17:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 05:17:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 05:17:21] Production.INFO: ==22234== Releasing lock... [2025-03-06 05:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 05:17:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-06 05:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 02:18:05 [end_date_ymd] => 2025-03-06 05:18:05 [RateCDR] => 1 ) [2025-03-06 05:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 02:18:05' and `end` < '2025-03-06 05:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 05:18:17] Production.INFO: count ==162 [2025-03-06 05:18:17] Production.ERROR: pbx CDR StartTime 2025-03-06 02:18:05 - End Time 2025-03-06 05:18:05 [2025-03-06 05:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 05:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618287', 'tblTempUsageDetail_20' ) start [2025-03-06 05:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618287', 'tblTempUsageDetail_20' ) end [2025-03-06 05:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618287', 'tblTempVendorCDR_20' ) start [2025-03-06 05:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618287', 'tblTempVendorCDR_20' ) end [2025-03-06 05:18:17] Production.INFO: ProcessCDR(1,14618287,1,1,2) [2025-03-06 05:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14618287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 05:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14618287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 05:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14618287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 05:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14618287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 05:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618287', 'tblTempUsageDetail_20' ) start [2025-03-06 05:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618287', 'tblTempUsageDetail_20' ) end [2025-03-06 05:18:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 05:18:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 05:18:21] Production.INFO: ==22304== Releasing lock... [2025-03-06 05:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 05:18:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-06 05:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 02:19:05 [end_date_ymd] => 2025-03-06 05:19:05 [RateCDR] => 1 ) [2025-03-06 05:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 02:19:05' and `end` < '2025-03-06 05:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 05:19:17] Production.INFO: count ==162 [2025-03-06 05:19:17] Production.ERROR: pbx CDR StartTime 2025-03-06 02:19:05 - End Time 2025-03-06 05:19:05 [2025-03-06 05:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 05:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618292', 'tblTempUsageDetail_20' ) start [2025-03-06 05:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618292', 'tblTempUsageDetail_20' ) end [2025-03-06 05:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618292', 'tblTempVendorCDR_20' ) start [2025-03-06 05:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618292', 'tblTempVendorCDR_20' ) end [2025-03-06 05:19:17] Production.INFO: ProcessCDR(1,14618292,1,1,2) [2025-03-06 05:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14618292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 05:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14618292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 05:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14618292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 05:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14618292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 05:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618292', 'tblTempUsageDetail_20' ) start [2025-03-06 05:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618292', 'tblTempUsageDetail_20' ) end [2025-03-06 05:19:20] Production.ERROR: pbx prc_insertCDR start [2025-03-06 05:19:20] Production.ERROR: pbx prc_insertCDR end [2025-03-06 05:19:20] Production.INFO: ==22401== Releasing lock... [2025-03-06 05:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 05:19:20] Production.INFO: 28.5 MB #Memory Used# [2025-03-06 05:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 02:20:06 [end_date_ymd] => 2025-03-06 05:20:06 [RateCDR] => 1 ) [2025-03-06 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-03-06 02:20:06' and `end` < '2025-03-06 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-03-06 05:20:18] Production.INFO: count ==155 [2025-03-06 05:20:18] Production.ERROR: pbx CDR StartTime 2025-03-06 02:20:06 - End Time 2025-03-06 05:20:06 [2025-03-06 05:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 05:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618298', 'tblTempUsageDetail_20' ) start [2025-03-06 05:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618298', 'tblTempUsageDetail_20' ) end [2025-03-06 05:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618298', 'tblTempVendorCDR_20' ) start [2025-03-06 05:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618298', 'tblTempVendorCDR_20' ) end [2025-03-06 05:20:18] Production.INFO: ProcessCDR(1,14618298,1,1,2) [2025-03-06 05:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14618298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 05:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14618298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 05:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14618298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 05:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14618298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 05:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618298', 'tblTempUsageDetail_20' ) start [2025-03-06 05:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618298', 'tblTempUsageDetail_20' ) end [2025-03-06 05:20:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 05:20:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 05:20:21] Production.INFO: ==22473== Releasing lock... [2025-03-06 05:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 05:20:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-06 05:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 02:21:05 [end_date_ymd] => 2025-03-06 05:21:05 [RateCDR] => 1 ) [2025-03-06 05:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 02:21:05' and `end` < '2025-03-06 05:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 05:21:17] Production.INFO: count ==155 [2025-03-06 05:21:17] Production.ERROR: pbx CDR StartTime 2025-03-06 02:21:05 - End Time 2025-03-06 05:21:05 [2025-03-06 05:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 05:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618303', 'tblTempUsageDetail_20' ) start [2025-03-06 05:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618303', 'tblTempUsageDetail_20' ) end [2025-03-06 05:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618303', 'tblTempVendorCDR_20' ) start [2025-03-06 05:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618303', 'tblTempVendorCDR_20' ) end [2025-03-06 05:21:17] Production.INFO: ProcessCDR(1,14618303,1,1,2) [2025-03-06 05:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14618303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 05:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14618303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 05:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14618303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 05:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14618303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 05:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618303', 'tblTempUsageDetail_20' ) start [2025-03-06 05:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618303', 'tblTempUsageDetail_20' ) end [2025-03-06 05:21:20] Production.ERROR: pbx prc_insertCDR start [2025-03-06 05:21:20] Production.ERROR: pbx prc_insertCDR end [2025-03-06 05:21:20] Production.INFO: ==22544== Releasing lock... [2025-03-06 05:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 05:21:20] Production.INFO: 28.5 MB #Memory Used# [2025-03-06 05:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 02:22:06 [end_date_ymd] => 2025-03-06 05:22:06 [RateCDR] => 1 ) [2025-03-06 05:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 02:22:06' and `end` < '2025-03-06 05:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 05:22:18] Production.INFO: count ==155 [2025-03-06 05:22:18] Production.ERROR: pbx CDR StartTime 2025-03-06 02:22:06 - End Time 2025-03-06 05:22:06 [2025-03-06 05:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618308', 'tblTempUsageDetail_20' ) start [2025-03-06 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618308', 'tblTempUsageDetail_20' ) end [2025-03-06 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618308', 'tblTempVendorCDR_20' ) start [2025-03-06 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618308', 'tblTempVendorCDR_20' ) end [2025-03-06 05:22:18] Production.INFO: ProcessCDR(1,14618308,1,1,2) [2025-03-06 05:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14618308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 05:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14618308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 05:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14618308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 05:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14618308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 05:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618308', 'tblTempUsageDetail_20' ) start [2025-03-06 05:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618308', 'tblTempUsageDetail_20' ) end [2025-03-06 05:22:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 05:22:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 05:22:21] Production.INFO: ==22616== Releasing lock... [2025-03-06 05:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 05:22:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-06 05:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 02:23:05 [end_date_ymd] => 2025-03-06 05:23:05 [RateCDR] => 1 ) [2025-03-06 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-03-06 02:23:05' and `end` < '2025-03-06 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-03-06 05:23:17] Production.INFO: count ==155 [2025-03-06 05:23:17] Production.ERROR: pbx CDR StartTime 2025-03-06 02:23:05 - End Time 2025-03-06 05:23:05 [2025-03-06 05:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 05:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618313', 'tblTempUsageDetail_20' ) start [2025-03-06 05:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618313', 'tblTempUsageDetail_20' ) end [2025-03-06 05:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618313', 'tblTempVendorCDR_20' ) start [2025-03-06 05:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618313', 'tblTempVendorCDR_20' ) end [2025-03-06 05:23:17] Production.INFO: ProcessCDR(1,14618313,1,1,2) [2025-03-06 05:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14618313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 05:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14618313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 05:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14618313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 05:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14618313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 05:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618313', 'tblTempUsageDetail_20' ) start [2025-03-06 05:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618313', 'tblTempUsageDetail_20' ) end [2025-03-06 05:23:20] Production.ERROR: pbx prc_insertCDR start [2025-03-06 05:23:20] Production.ERROR: pbx prc_insertCDR end [2025-03-06 05:23:20] Production.INFO: ==22693== Releasing lock... [2025-03-06 05:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 05:23:20] Production.INFO: 28.5 MB #Memory Used# [2025-03-06 05:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 02:24:05 [end_date_ymd] => 2025-03-06 05:24:05 [RateCDR] => 1 ) [2025-03-06 05:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 02:24:05' and `end` < '2025-03-06 05:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 05:24:18] Production.INFO: count ==155 [2025-03-06 05:24:18] Production.ERROR: pbx CDR StartTime 2025-03-06 02:24:05 - End Time 2025-03-06 05:24:05 [2025-03-06 05:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618318', 'tblTempUsageDetail_20' ) start [2025-03-06 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618318', 'tblTempUsageDetail_20' ) end [2025-03-06 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618318', 'tblTempVendorCDR_20' ) start [2025-03-06 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618318', 'tblTempVendorCDR_20' ) end [2025-03-06 05:24:18] Production.INFO: ProcessCDR(1,14618318,1,1,2) [2025-03-06 05:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14618318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 05:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14618318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 05:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14618318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 05:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14618318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 05:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618318', 'tblTempUsageDetail_20' ) start [2025-03-06 05:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618318', 'tblTempUsageDetail_20' ) end [2025-03-06 05:24:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 05:24:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 05:24:21] Production.INFO: ==22773== Releasing lock... [2025-03-06 05:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 05:24:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-06 05:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 02:25:05 [end_date_ymd] => 2025-03-06 05:25:05 [RateCDR] => 1 ) [2025-03-06 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-03-06 02:25:05' and `end` < '2025-03-06 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-03-06 05:25:17] Production.INFO: count ==155 [2025-03-06 05:25:17] Production.ERROR: pbx CDR StartTime 2025-03-06 02:25:05 - End Time 2025-03-06 05:25:05 [2025-03-06 05:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618323', 'tblTempUsageDetail_20' ) start [2025-03-06 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618323', 'tblTempUsageDetail_20' ) end [2025-03-06 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618323', 'tblTempVendorCDR_20' ) start [2025-03-06 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618323', 'tblTempVendorCDR_20' ) end [2025-03-06 05:25:17] Production.INFO: ProcessCDR(1,14618323,1,1,2) [2025-03-06 05:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14618323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 05:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14618323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 05:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14618323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 05:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14618323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 05:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618323', 'tblTempUsageDetail_20' ) start [2025-03-06 05:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618323', 'tblTempUsageDetail_20' ) end [2025-03-06 05:25:20] Production.ERROR: pbx prc_insertCDR start [2025-03-06 05:25:20] Production.ERROR: pbx prc_insertCDR end [2025-03-06 05:25:20] Production.INFO: ==22852== Releasing lock... [2025-03-06 05:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 05:25:20] Production.INFO: 28.5 MB #Memory Used# [2025-03-06 05:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 02:26:06 [end_date_ymd] => 2025-03-06 05:26:06 [RateCDR] => 1 ) [2025-03-06 05: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-03-06 02:26:06' and `end` < '2025-03-06 05: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-03-06 05:26:18] Production.INFO: count ==155 [2025-03-06 05:26:18] Production.ERROR: pbx CDR StartTime 2025-03-06 02:26:06 - End Time 2025-03-06 05:26:06 [2025-03-06 05:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618328', 'tblTempUsageDetail_20' ) start [2025-03-06 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618328', 'tblTempUsageDetail_20' ) end [2025-03-06 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618328', 'tblTempVendorCDR_20' ) start [2025-03-06 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618328', 'tblTempVendorCDR_20' ) end [2025-03-06 05:26:18] Production.INFO: ProcessCDR(1,14618328,1,1,2) [2025-03-06 05:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14618328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 05:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14618328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 05:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14618328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 05:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14618328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 05:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618328', 'tblTempUsageDetail_20' ) start [2025-03-06 05:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618328', 'tblTempUsageDetail_20' ) end [2025-03-06 05:26:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 05:26:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 05:26:21] Production.INFO: ==22973== Releasing lock... [2025-03-06 05:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 05:26:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-06 05:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 02:27:05 [end_date_ymd] => 2025-03-06 05:27:05 [RateCDR] => 1 ) [2025-03-06 05:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 02:27:05' and `end` < '2025-03-06 05:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 05:27:17] Production.INFO: count ==152 [2025-03-06 05:27:17] Production.ERROR: pbx CDR StartTime 2025-03-06 02:27:05 - End Time 2025-03-06 05:27:05 [2025-03-06 05:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 05:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618333', 'tblTempUsageDetail_20' ) start [2025-03-06 05:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618333', 'tblTempUsageDetail_20' ) end [2025-03-06 05:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618333', 'tblTempVendorCDR_20' ) start [2025-03-06 05:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618333', 'tblTempVendorCDR_20' ) end [2025-03-06 05:27:17] Production.INFO: ProcessCDR(1,14618333,1,1,2) [2025-03-06 05:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14618333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 05:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14618333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 05:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14618333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 05:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14618333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 05:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618333', 'tblTempUsageDetail_20' ) start [2025-03-06 05:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618333', 'tblTempUsageDetail_20' ) end [2025-03-06 05:27:20] Production.ERROR: pbx prc_insertCDR start [2025-03-06 05:27:20] Production.ERROR: pbx prc_insertCDR end [2025-03-06 05:27:20] Production.INFO: ==23055== Releasing lock... [2025-03-06 05:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 05:27:20] Production.INFO: 28.5 MB #Memory Used# [2025-03-06 05:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 02:28:05 [end_date_ymd] => 2025-03-06 05:28:05 [RateCDR] => 1 ) [2025-03-06 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-03-06 02:28:05' and `end` < '2025-03-06 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-03-06 05:28:17] Production.INFO: count ==152 [2025-03-06 05:28:17] Production.ERROR: pbx CDR StartTime 2025-03-06 02:28:05 - End Time 2025-03-06 05:28:05 [2025-03-06 05:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 05:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618338', 'tblTempUsageDetail_20' ) start [2025-03-06 05:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618338', 'tblTempUsageDetail_20' ) end [2025-03-06 05:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618338', 'tblTempVendorCDR_20' ) start [2025-03-06 05:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618338', 'tblTempVendorCDR_20' ) end [2025-03-06 05:28:17] Production.INFO: ProcessCDR(1,14618338,1,1,2) [2025-03-06 05:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14618338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 05:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14618338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 05:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14618338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 05:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14618338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 05:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618338', 'tblTempUsageDetail_20' ) start [2025-03-06 05:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618338', 'tblTempUsageDetail_20' ) end [2025-03-06 05:28:20] Production.ERROR: pbx prc_insertCDR start [2025-03-06 05:28:20] Production.ERROR: pbx prc_insertCDR end [2025-03-06 05:28:20] Production.INFO: ==23135== Releasing lock... [2025-03-06 05:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 05:28:20] Production.INFO: 28.5 MB #Memory Used# [2025-03-06 05:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 02:29:05 [end_date_ymd] => 2025-03-06 05:29:05 [RateCDR] => 1 ) [2025-03-06 05:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 02:29:05' and `end` < '2025-03-06 05:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 05:29:17] Production.INFO: count ==152 [2025-03-06 05:29:17] Production.ERROR: pbx CDR StartTime 2025-03-06 02:29:05 - End Time 2025-03-06 05:29:05 [2025-03-06 05:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 05:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618343', 'tblTempUsageDetail_20' ) start [2025-03-06 05:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618343', 'tblTempUsageDetail_20' ) end [2025-03-06 05:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618343', 'tblTempVendorCDR_20' ) start [2025-03-06 05:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618343', 'tblTempVendorCDR_20' ) end [2025-03-06 05:29:17] Production.INFO: ProcessCDR(1,14618343,1,1,2) [2025-03-06 05:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14618343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 05:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14618343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 05:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14618343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 05:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14618343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 05:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618343', 'tblTempUsageDetail_20' ) start [2025-03-06 05:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618343', 'tblTempUsageDetail_20' ) end [2025-03-06 05:29:20] Production.ERROR: pbx prc_insertCDR start [2025-03-06 05:29:20] Production.ERROR: pbx prc_insertCDR end [2025-03-06 05:29:20] Production.INFO: ==23213== Releasing lock... [2025-03-06 05:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 05:29:20] Production.INFO: 28.5 MB #Memory Used# [2025-03-06 05:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 02:30:06 [end_date_ymd] => 2025-03-06 05:30:06 [RateCDR] => 1 ) [2025-03-06 05:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 02:30:06' and `end` < '2025-03-06 05:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 05:30:18] Production.INFO: count ==154 [2025-03-06 05:30:18] Production.ERROR: pbx CDR StartTime 2025-03-06 02:30:06 - End Time 2025-03-06 05:30:06 [2025-03-06 05:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618349', 'tblTempUsageDetail_20' ) start [2025-03-06 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618349', 'tblTempUsageDetail_20' ) end [2025-03-06 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618349', 'tblTempVendorCDR_20' ) start [2025-03-06 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618349', 'tblTempVendorCDR_20' ) end [2025-03-06 05:30:18] Production.INFO: ProcessCDR(1,14618349,1,1,2) [2025-03-06 05:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14618349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 05:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14618349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 05:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14618349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 05:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14618349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 05:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618349', 'tblTempUsageDetail_20' ) start [2025-03-06 05:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618349', 'tblTempUsageDetail_20' ) end [2025-03-06 05:30:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 05:30:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 05:30:21] Production.INFO: ==23291== Releasing lock... [2025-03-06 05:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 05:30:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-06 05:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 02:31:05 [end_date_ymd] => 2025-03-06 05:31:05 [RateCDR] => 1 ) [2025-03-06 05:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 02:31:05' and `end` < '2025-03-06 05:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 05:31:17] Production.INFO: count ==155 [2025-03-06 05:31:17] Production.ERROR: pbx CDR StartTime 2025-03-06 02:31:05 - End Time 2025-03-06 05:31:05 [2025-03-06 05:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 05:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618354', 'tblTempUsageDetail_20' ) start [2025-03-06 05:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618354', 'tblTempUsageDetail_20' ) end [2025-03-06 05:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618354', 'tblTempVendorCDR_20' ) start [2025-03-06 05:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618354', 'tblTempVendorCDR_20' ) end [2025-03-06 05:31:17] Production.INFO: ProcessCDR(1,14618354,1,1,2) [2025-03-06 05:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14618354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 05:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14618354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 05:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14618354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 05:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14618354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 05:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618354', 'tblTempUsageDetail_20' ) start [2025-03-06 05:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618354', 'tblTempUsageDetail_20' ) end [2025-03-06 05:31:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 05:31:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 05:31:22] Production.INFO: ==23364== Releasing lock... [2025-03-06 05:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 05:31:22] Production.INFO: 28.5 MB #Memory Used# [2025-03-06 05:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 02:32:05 [end_date_ymd] => 2025-03-06 05:32:05 [RateCDR] => 1 ) [2025-03-06 05:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 02:32:05' and `end` < '2025-03-06 05:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 05:32:17] Production.INFO: count ==155 [2025-03-06 05:32:17] Production.ERROR: pbx CDR StartTime 2025-03-06 02:32:05 - End Time 2025-03-06 05:32:05 [2025-03-06 05:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 05:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618359', 'tblTempUsageDetail_20' ) start [2025-03-06 05:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618359', 'tblTempUsageDetail_20' ) end [2025-03-06 05:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618359', 'tblTempVendorCDR_20' ) start [2025-03-06 05:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618359', 'tblTempVendorCDR_20' ) end [2025-03-06 05:32:17] Production.INFO: ProcessCDR(1,14618359,1,1,2) [2025-03-06 05:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14618359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 05:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14618359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 05:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14618359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 05:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14618359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 05:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618359', 'tblTempUsageDetail_20' ) start [2025-03-06 05:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618359', 'tblTempUsageDetail_20' ) end [2025-03-06 05:32:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 05:32:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 05:32:21] Production.INFO: ==23440== Releasing lock... [2025-03-06 05:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 05:32:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-06 05:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 02:33:06 [end_date_ymd] => 2025-03-06 05:33:06 [RateCDR] => 1 ) [2025-03-06 05: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-03-06 02:33:06' and `end` < '2025-03-06 05: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-03-06 05:33:18] Production.INFO: count ==157 [2025-03-06 05:33:18] Production.ERROR: pbx CDR StartTime 2025-03-06 02:33:06 - End Time 2025-03-06 05:33:06 [2025-03-06 05:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 05:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618364', 'tblTempUsageDetail_20' ) start [2025-03-06 05:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618364', 'tblTempUsageDetail_20' ) end [2025-03-06 05:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618364', 'tblTempVendorCDR_20' ) start [2025-03-06 05:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618364', 'tblTempVendorCDR_20' ) end [2025-03-06 05:33:18] Production.INFO: ProcessCDR(1,14618364,1,1,2) [2025-03-06 05:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14618364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 05:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14618364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 05:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14618364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 05:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14618364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 05:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618364', 'tblTempUsageDetail_20' ) start [2025-03-06 05:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618364', 'tblTempUsageDetail_20' ) end [2025-03-06 05:33:23] Production.ERROR: pbx prc_insertCDR start [2025-03-06 05:33:23] Production.ERROR: pbx prc_insertCDR end [2025-03-06 05:33:23] Production.INFO: ==23516== Releasing lock... [2025-03-06 05:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 05:33:23] Production.INFO: 28.5 MB #Memory Used# [2025-03-06 05:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 02:34:05 [end_date_ymd] => 2025-03-06 05:34:05 [RateCDR] => 1 ) [2025-03-06 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-03-06 02:34:05' and `end` < '2025-03-06 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-03-06 05:34:17] Production.INFO: count ==157 [2025-03-06 05:34:17] Production.ERROR: pbx CDR StartTime 2025-03-06 02:34:05 - End Time 2025-03-06 05:34:05 [2025-03-06 05:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 05:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618369', 'tblTempUsageDetail_20' ) start [2025-03-06 05:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618369', 'tblTempUsageDetail_20' ) end [2025-03-06 05:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618369', 'tblTempVendorCDR_20' ) start [2025-03-06 05:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618369', 'tblTempVendorCDR_20' ) end [2025-03-06 05:34:17] Production.INFO: ProcessCDR(1,14618369,1,1,2) [2025-03-06 05:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14618369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 05:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14618369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 05:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14618369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 05:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14618369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 05:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618369', 'tblTempUsageDetail_20' ) start [2025-03-06 05:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618369', 'tblTempUsageDetail_20' ) end [2025-03-06 05:34:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 05:34:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 05:34:21] Production.INFO: ==23590== Releasing lock... [2025-03-06 05:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 05:34:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-06 05:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 02:35:05 [end_date_ymd] => 2025-03-06 05:35:05 [RateCDR] => 1 ) [2025-03-06 05:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 02:35:05' and `end` < '2025-03-06 05:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 05:35:17] Production.INFO: count ==157 [2025-03-06 05:35:17] Production.ERROR: pbx CDR StartTime 2025-03-06 02:35:05 - End Time 2025-03-06 05:35:05 [2025-03-06 05:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 05:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618374', 'tblTempUsageDetail_20' ) start [2025-03-06 05:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618374', 'tblTempUsageDetail_20' ) end [2025-03-06 05:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618374', 'tblTempVendorCDR_20' ) start [2025-03-06 05:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618374', 'tblTempVendorCDR_20' ) end [2025-03-06 05:35:17] Production.INFO: ProcessCDR(1,14618374,1,1,2) [2025-03-06 05:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14618374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 05:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14618374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 05:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14618374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 05:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14618374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 05:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618374', 'tblTempUsageDetail_20' ) start [2025-03-06 05:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618374', 'tblTempUsageDetail_20' ) end [2025-03-06 05:35:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 05:35:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 05:35:21] Production.INFO: ==23662== Releasing lock... [2025-03-06 05:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 05:35:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-06 05:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 02:36:05 [end_date_ymd] => 2025-03-06 05:36:05 [RateCDR] => 1 ) [2025-03-06 05:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 02:36:05' and `end` < '2025-03-06 05:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 05:36:17] Production.INFO: count ==157 [2025-03-06 05:36:17] Production.ERROR: pbx CDR StartTime 2025-03-06 02:36:05 - End Time 2025-03-06 05:36:05 [2025-03-06 05:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 05:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618379', 'tblTempUsageDetail_20' ) start [2025-03-06 05:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618379', 'tblTempUsageDetail_20' ) end [2025-03-06 05:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618379', 'tblTempVendorCDR_20' ) start [2025-03-06 05:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618379', 'tblTempVendorCDR_20' ) end [2025-03-06 05:36:17] Production.INFO: ProcessCDR(1,14618379,1,1,2) [2025-03-06 05:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14618379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 05:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14618379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 05:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14618379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 05:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14618379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 05:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618379', 'tblTempUsageDetail_20' ) start [2025-03-06 05:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618379', 'tblTempUsageDetail_20' ) end [2025-03-06 05:36:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 05:36:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 05:36:21] Production.INFO: ==23735== Releasing lock... [2025-03-06 05:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 05:36:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-06 05:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 02:37:06 [end_date_ymd] => 2025-03-06 05:37:06 [RateCDR] => 1 ) [2025-03-06 05:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 02:37:06' and `end` < '2025-03-06 05:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 05:37:18] Production.INFO: count ==157 [2025-03-06 05:37:18] Production.ERROR: pbx CDR StartTime 2025-03-06 02:37:06 - End Time 2025-03-06 05:37:06 [2025-03-06 05:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 05:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618384', 'tblTempUsageDetail_20' ) start [2025-03-06 05:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618384', 'tblTempUsageDetail_20' ) end [2025-03-06 05:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618384', 'tblTempVendorCDR_20' ) start [2025-03-06 05:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618384', 'tblTempVendorCDR_20' ) end [2025-03-06 05:37:18] Production.INFO: ProcessCDR(1,14618384,1,1,2) [2025-03-06 05:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14618384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 05:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14618384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 05:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14618384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 05:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14618384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 05:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618384', 'tblTempUsageDetail_20' ) start [2025-03-06 05:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618384', 'tblTempUsageDetail_20' ) end [2025-03-06 05:37:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 05:37:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 05:37:21] Production.INFO: ==23805== Releasing lock... [2025-03-06 05:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 05:37:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-06 05:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 02:38:05 [end_date_ymd] => 2025-03-06 05:38:05 [RateCDR] => 1 ) [2025-03-06 05:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 02:38:05' and `end` < '2025-03-06 05:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 05:38:17] Production.INFO: count ==157 [2025-03-06 05:38:17] Production.ERROR: pbx CDR StartTime 2025-03-06 02:38:05 - End Time 2025-03-06 05:38:05 [2025-03-06 05:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 05:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618389', 'tblTempUsageDetail_20' ) start [2025-03-06 05:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618389', 'tblTempUsageDetail_20' ) end [2025-03-06 05:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618389', 'tblTempVendorCDR_20' ) start [2025-03-06 05:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618389', 'tblTempVendorCDR_20' ) end [2025-03-06 05:38:17] Production.INFO: ProcessCDR(1,14618389,1,1,2) [2025-03-06 05:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14618389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 05:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14618389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 05:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14618389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 05:38:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14618389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 05:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618389', 'tblTempUsageDetail_20' ) start [2025-03-06 05:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618389', 'tblTempUsageDetail_20' ) end [2025-03-06 05:38:20] Production.ERROR: pbx prc_insertCDR start [2025-03-06 05:38:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 05:38:21] Production.INFO: ==23879== Releasing lock... [2025-03-06 05:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 05:38:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-06 05:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 02:39:05 [end_date_ymd] => 2025-03-06 05:39:05 [RateCDR] => 1 ) [2025-03-06 05: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-03-06 02:39:05' and `end` < '2025-03-06 05: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-03-06 05:39:17] Production.INFO: count ==157 [2025-03-06 05:39:17] Production.ERROR: pbx CDR StartTime 2025-03-06 02:39:05 - End Time 2025-03-06 05:39:05 [2025-03-06 05:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 05:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618394', 'tblTempUsageDetail_20' ) start [2025-03-06 05:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618394', 'tblTempUsageDetail_20' ) end [2025-03-06 05:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618394', 'tblTempVendorCDR_20' ) start [2025-03-06 05:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618394', 'tblTempVendorCDR_20' ) end [2025-03-06 05:39:17] Production.INFO: ProcessCDR(1,14618394,1,1,2) [2025-03-06 05:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14618394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 05:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14618394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 05:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14618394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 05:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14618394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 05:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618394', 'tblTempUsageDetail_20' ) start [2025-03-06 05:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618394', 'tblTempUsageDetail_20' ) end [2025-03-06 05:39:20] Production.ERROR: pbx prc_insertCDR start [2025-03-06 05:39:20] Production.ERROR: pbx prc_insertCDR end [2025-03-06 05:39:20] Production.INFO: ==23948== Releasing lock... [2025-03-06 05:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 05:39:20] Production.INFO: 28.5 MB #Memory Used# [2025-03-06 05:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 02:40:05 [end_date_ymd] => 2025-03-06 05:40:05 [RateCDR] => 1 ) [2025-03-06 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-03-06 02:40:05' and `end` < '2025-03-06 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-03-06 05:40:17] Production.INFO: count ==155 [2025-03-06 05:40:17] Production.ERROR: pbx CDR StartTime 2025-03-06 02:40:05 - End Time 2025-03-06 05:40:05 [2025-03-06 05:40:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 05:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618400', 'tblTempUsageDetail_20' ) start [2025-03-06 05:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618400', 'tblTempUsageDetail_20' ) end [2025-03-06 05:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618400', 'tblTempVendorCDR_20' ) start [2025-03-06 05:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618400', 'tblTempVendorCDR_20' ) end [2025-03-06 05:40:17] Production.INFO: ProcessCDR(1,14618400,1,1,2) [2025-03-06 05:40:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14618400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 05:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14618400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 05:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14618400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 05:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14618400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 05:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618400', 'tblTempUsageDetail_20' ) start [2025-03-06 05:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618400', 'tblTempUsageDetail_20' ) end [2025-03-06 05:40:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 05:40:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 05:40:21] Production.INFO: ==24020== Releasing lock... [2025-03-06 05:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 05:40:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-06 05:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 02:41:05 [end_date_ymd] => 2025-03-06 05:41:05 [RateCDR] => 1 ) [2025-03-06 05:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 02:41:05' and `end` < '2025-03-06 05:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 05:41:17] Production.INFO: count ==147 [2025-03-06 05:41:17] Production.ERROR: pbx CDR StartTime 2025-03-06 02:41:05 - End Time 2025-03-06 05:41:05 [2025-03-06 05:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 05:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618405', 'tblTempUsageDetail_20' ) start [2025-03-06 05:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618405', 'tblTempUsageDetail_20' ) end [2025-03-06 05:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618405', 'tblTempVendorCDR_20' ) start [2025-03-06 05:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618405', 'tblTempVendorCDR_20' ) end [2025-03-06 05:41:17] Production.INFO: ProcessCDR(1,14618405,1,1,2) [2025-03-06 05:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14618405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 05:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14618405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 05:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14618405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 05:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14618405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 05:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618405', 'tblTempUsageDetail_20' ) start [2025-03-06 05:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618405', 'tblTempUsageDetail_20' ) end [2025-03-06 05:41:20] Production.ERROR: pbx prc_insertCDR start [2025-03-06 05:41:20] Production.ERROR: pbx prc_insertCDR end [2025-03-06 05:41:20] Production.INFO: ==24097== Releasing lock... [2025-03-06 05:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 05:41:20] Production.INFO: 28.5 MB #Memory Used# [2025-03-06 05:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 02:42:05 [end_date_ymd] => 2025-03-06 05:42:05 [RateCDR] => 1 ) [2025-03-06 05:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 02:42:05' and `end` < '2025-03-06 05:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 05:42:17] Production.INFO: count ==147 [2025-03-06 05:42:17] Production.ERROR: pbx CDR StartTime 2025-03-06 02:42:05 - End Time 2025-03-06 05:42:05 [2025-03-06 05:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 05:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618410', 'tblTempUsageDetail_20' ) start [2025-03-06 05:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618410', 'tblTempUsageDetail_20' ) end [2025-03-06 05:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618410', 'tblTempVendorCDR_20' ) start [2025-03-06 05:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618410', 'tblTempVendorCDR_20' ) end [2025-03-06 05:42:17] Production.INFO: ProcessCDR(1,14618410,1,1,2) [2025-03-06 05:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14618410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 05:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14618410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 05:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14618410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 05:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14618410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 05:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618410', 'tblTempUsageDetail_20' ) start [2025-03-06 05:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618410', 'tblTempUsageDetail_20' ) end [2025-03-06 05:42:20] Production.ERROR: pbx prc_insertCDR start [2025-03-06 05:42:20] Production.ERROR: pbx prc_insertCDR end [2025-03-06 05:42:20] Production.INFO: ==24207== Releasing lock... [2025-03-06 05:42:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 05:42:20] Production.INFO: 28.5 MB #Memory Used# [2025-03-06 05:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 02:43:05 [end_date_ymd] => 2025-03-06 05:43:05 [RateCDR] => 1 ) [2025-03-06 05:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 02:43:05' and `end` < '2025-03-06 05:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 05:43:17] Production.INFO: count ==147 [2025-03-06 05:43:17] Production.ERROR: pbx CDR StartTime 2025-03-06 02:43:05 - End Time 2025-03-06 05:43:05 [2025-03-06 05:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 05:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618415', 'tblTempUsageDetail_20' ) start [2025-03-06 05:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618415', 'tblTempUsageDetail_20' ) end [2025-03-06 05:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618415', 'tblTempVendorCDR_20' ) start [2025-03-06 05:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618415', 'tblTempVendorCDR_20' ) end [2025-03-06 05:43:17] Production.INFO: ProcessCDR(1,14618415,1,1,2) [2025-03-06 05:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14618415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 05:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14618415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 05:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14618415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 05:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14618415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 05:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618415', 'tblTempUsageDetail_20' ) start [2025-03-06 05:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618415', 'tblTempUsageDetail_20' ) end [2025-03-06 05:43:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 05:43:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 05:43:21] Production.INFO: ==24278== Releasing lock... [2025-03-06 05:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 05:43:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-06 05:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 02:44:06 [end_date_ymd] => 2025-03-06 05:44:06 [RateCDR] => 1 ) [2025-03-06 05:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 02:44:06' and `end` < '2025-03-06 05:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 05:44:18] Production.INFO: count ==147 [2025-03-06 05:44:18] Production.ERROR: pbx CDR StartTime 2025-03-06 02:44:06 - End Time 2025-03-06 05:44:06 [2025-03-06 05:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618420', 'tblTempUsageDetail_20' ) start [2025-03-06 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618420', 'tblTempUsageDetail_20' ) end [2025-03-06 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618420', 'tblTempVendorCDR_20' ) start [2025-03-06 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618420', 'tblTempVendorCDR_20' ) end [2025-03-06 05:44:18] Production.INFO: ProcessCDR(1,14618420,1,1,2) [2025-03-06 05:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14618420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 05:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14618420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 05:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14618420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 05:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14618420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 05:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618420', 'tblTempUsageDetail_20' ) start [2025-03-06 05:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618420', 'tblTempUsageDetail_20' ) end [2025-03-06 05:44:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 05:44:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 05:44:21] Production.INFO: ==24350== Releasing lock... [2025-03-06 05:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 05:44:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-06 05:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 02:45:05 [end_date_ymd] => 2025-03-06 05:45:05 [RateCDR] => 1 ) [2025-03-06 05:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 02:45:05' and `end` < '2025-03-06 05:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 05:45:17] Production.INFO: count ==148 [2025-03-06 05:45:17] Production.ERROR: pbx CDR StartTime 2025-03-06 02:45:05 - End Time 2025-03-06 05:45:05 [2025-03-06 05:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 05:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618425', 'tblTempUsageDetail_20' ) start [2025-03-06 05:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618425', 'tblTempUsageDetail_20' ) end [2025-03-06 05:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618425', 'tblTempVendorCDR_20' ) start [2025-03-06 05:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618425', 'tblTempVendorCDR_20' ) end [2025-03-06 05:45:17] Production.INFO: ProcessCDR(1,14618425,1,1,2) [2025-03-06 05:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14618425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 05:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14618425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 05:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14618425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 05:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14618425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 05:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618425', 'tblTempUsageDetail_20' ) start [2025-03-06 05:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618425', 'tblTempUsageDetail_20' ) end [2025-03-06 05:45:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 05:45:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 05:45:22] Production.INFO: ==24420== Releasing lock... [2025-03-06 05:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 05:45:22] Production.INFO: 28.5 MB #Memory Used# [2025-03-06 05:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 02:46:05 [end_date_ymd] => 2025-03-06 05:46:05 [RateCDR] => 1 ) [2025-03-06 05:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 02:46:05' and `end` < '2025-03-06 05:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 05:46:17] Production.INFO: count ==148 [2025-03-06 05:46:17] Production.ERROR: pbx CDR StartTime 2025-03-06 02:46:05 - End Time 2025-03-06 05:46:05 [2025-03-06 05:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 05:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618430', 'tblTempUsageDetail_20' ) start [2025-03-06 05:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618430', 'tblTempUsageDetail_20' ) end [2025-03-06 05:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618430', 'tblTempVendorCDR_20' ) start [2025-03-06 05:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618430', 'tblTempVendorCDR_20' ) end [2025-03-06 05:46:17] Production.INFO: ProcessCDR(1,14618430,1,1,2) [2025-03-06 05:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14618430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 05:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14618430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 05:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14618430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 05:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14618430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 05:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618430', 'tblTempUsageDetail_20' ) start [2025-03-06 05:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618430', 'tblTempUsageDetail_20' ) end [2025-03-06 05:46:20] Production.ERROR: pbx prc_insertCDR start [2025-03-06 05:46:20] Production.ERROR: pbx prc_insertCDR end [2025-03-06 05:46:20] Production.INFO: ==24496== Releasing lock... [2025-03-06 05:46:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 05:46:20] Production.INFO: 28.5 MB #Memory Used# [2025-03-06 05:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 02:47:05 [end_date_ymd] => 2025-03-06 05:47:05 [RateCDR] => 1 ) [2025-03-06 05:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 02:47:05' and `end` < '2025-03-06 05:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 05:47:17] Production.INFO: count ==151 [2025-03-06 05:47:17] Production.ERROR: pbx CDR StartTime 2025-03-06 02:47:05 - End Time 2025-03-06 05:47:05 [2025-03-06 05:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 05:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618435', 'tblTempUsageDetail_20' ) start [2025-03-06 05:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618435', 'tblTempUsageDetail_20' ) end [2025-03-06 05:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618435', 'tblTempVendorCDR_20' ) start [2025-03-06 05:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618435', 'tblTempVendorCDR_20' ) end [2025-03-06 05:47:17] Production.INFO: ProcessCDR(1,14618435,1,1,2) [2025-03-06 05:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14618435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 05:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14618435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 05:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14618435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 05:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14618435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 05:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618435', 'tblTempUsageDetail_20' ) start [2025-03-06 05:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618435', 'tblTempUsageDetail_20' ) end [2025-03-06 05:47:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 05:47:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 05:47:21] Production.INFO: ==24567== Releasing lock... [2025-03-06 05:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 05:47:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-06 05:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 02:48:06 [end_date_ymd] => 2025-03-06 05:48:06 [RateCDR] => 1 ) [2025-03-06 05: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-03-06 02:48:06' and `end` < '2025-03-06 05: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-03-06 05:48:18] Production.INFO: count ==148 [2025-03-06 05:48:18] Production.ERROR: pbx CDR StartTime 2025-03-06 02:48:06 - End Time 2025-03-06 05:48:06 [2025-03-06 05:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618440', 'tblTempUsageDetail_20' ) start [2025-03-06 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618440', 'tblTempUsageDetail_20' ) end [2025-03-06 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618440', 'tblTempVendorCDR_20' ) start [2025-03-06 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618440', 'tblTempVendorCDR_20' ) end [2025-03-06 05:48:18] Production.INFO: ProcessCDR(1,14618440,1,1,2) [2025-03-06 05:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14618440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 05:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14618440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 05:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14618440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 05:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14618440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 05:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618440', 'tblTempUsageDetail_20' ) start [2025-03-06 05:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618440', 'tblTempUsageDetail_20' ) end [2025-03-06 05:48:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 05:48:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 05:48:21] Production.INFO: ==24637== Releasing lock... [2025-03-06 05:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 05:48:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-06 05:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 02:49:05 [end_date_ymd] => 2025-03-06 05:49:05 [RateCDR] => 1 ) [2025-03-06 05: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-03-06 02:49:05' and `end` < '2025-03-06 05: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-03-06 05:49:17] Production.INFO: count ==148 [2025-03-06 05:49:17] Production.ERROR: pbx CDR StartTime 2025-03-06 02:49:05 - End Time 2025-03-06 05:49:05 [2025-03-06 05:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 05:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618445', 'tblTempUsageDetail_20' ) start [2025-03-06 05:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618445', 'tblTempUsageDetail_20' ) end [2025-03-06 05:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618445', 'tblTempVendorCDR_20' ) start [2025-03-06 05:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618445', 'tblTempVendorCDR_20' ) end [2025-03-06 05:49:17] Production.INFO: ProcessCDR(1,14618445,1,1,2) [2025-03-06 05:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14618445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 05:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14618445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 05:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14618445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 05:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14618445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 05:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618445', 'tblTempUsageDetail_20' ) start [2025-03-06 05:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618445', 'tblTempUsageDetail_20' ) end [2025-03-06 05:49:20] Production.ERROR: pbx prc_insertCDR start [2025-03-06 05:49:20] Production.ERROR: pbx prc_insertCDR end [2025-03-06 05:49:20] Production.INFO: ==24716== Releasing lock... [2025-03-06 05:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 05:49:20] Production.INFO: 28.5 MB #Memory Used# [2025-03-06 05:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 02:50:06 [end_date_ymd] => 2025-03-06 05:50:06 [RateCDR] => 1 ) [2025-03-06 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-03-06 02:50:06' and `end` < '2025-03-06 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-03-06 05:50:18] Production.INFO: count ==144 [2025-03-06 05:50:18] Production.ERROR: pbx CDR StartTime 2025-03-06 02:50:06 - End Time 2025-03-06 05:50:06 [2025-03-06 05:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618450', 'tblTempUsageDetail_20' ) start [2025-03-06 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618450', 'tblTempUsageDetail_20' ) end [2025-03-06 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618450', 'tblTempVendorCDR_20' ) start [2025-03-06 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618450', 'tblTempVendorCDR_20' ) end [2025-03-06 05:50:18] Production.INFO: ProcessCDR(1,14618450,1,1,2) [2025-03-06 05:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14618450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 05:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14618450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 05:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14618450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 05:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14618450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 05:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618450', 'tblTempUsageDetail_20' ) start [2025-03-06 05:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618450', 'tblTempUsageDetail_20' ) end [2025-03-06 05:50:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 05:50:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 05:50:21] Production.INFO: ==24795== Releasing lock... [2025-03-06 05:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 05:50:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-06 05:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 02:51:05 [end_date_ymd] => 2025-03-06 05:51:05 [RateCDR] => 1 ) [2025-03-06 05: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-03-06 02:51:05' and `end` < '2025-03-06 05: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-03-06 05:51:17] Production.INFO: count ==131 [2025-03-06 05:51:17] Production.ERROR: pbx CDR StartTime 2025-03-06 02:51:05 - End Time 2025-03-06 05:51:05 [2025-03-06 05:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 05:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618456', 'tblTempUsageDetail_20' ) start [2025-03-06 05:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618456', 'tblTempUsageDetail_20' ) end [2025-03-06 05:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618456', 'tblTempVendorCDR_20' ) start [2025-03-06 05:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618456', 'tblTempVendorCDR_20' ) end [2025-03-06 05:51:17] Production.INFO: ProcessCDR(1,14618456,1,1,2) [2025-03-06 05:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14618456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 05:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14618456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 05:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14618456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 05:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14618456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 05:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618456', 'tblTempUsageDetail_20' ) start [2025-03-06 05:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618456', 'tblTempUsageDetail_20' ) end [2025-03-06 05:51:20] Production.ERROR: pbx prc_insertCDR start [2025-03-06 05:51:20] Production.ERROR: pbx prc_insertCDR end [2025-03-06 05:51:20] Production.INFO: ==24870== Releasing lock... [2025-03-06 05:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 05:51:20] Production.INFO: 28.25 MB #Memory Used# [2025-03-06 05:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 02:52:06 [end_date_ymd] => 2025-03-06 05:52:06 [RateCDR] => 1 ) [2025-03-06 05: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-03-06 02:52:06' and `end` < '2025-03-06 05: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-03-06 05:52:18] Production.INFO: count ==131 [2025-03-06 05:52:18] Production.ERROR: pbx CDR StartTime 2025-03-06 02:52:06 - End Time 2025-03-06 05:52:06 [2025-03-06 05:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618461', 'tblTempUsageDetail_20' ) start [2025-03-06 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618461', 'tblTempUsageDetail_20' ) end [2025-03-06 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618461', 'tblTempVendorCDR_20' ) start [2025-03-06 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618461', 'tblTempVendorCDR_20' ) end [2025-03-06 05:52:18] Production.INFO: ProcessCDR(1,14618461,1,1,2) [2025-03-06 05:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14618461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 05:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14618461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 05:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14618461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 05:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14618461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 05:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618461', 'tblTempUsageDetail_20' ) start [2025-03-06 05:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618461', 'tblTempUsageDetail_20' ) end [2025-03-06 05:52:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 05:52:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 05:52:21] Production.INFO: ==24955== Releasing lock... [2025-03-06 05:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 05:52:21] Production.INFO: 28.25 MB #Memory Used# [2025-03-06 05:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 02:53:05 [end_date_ymd] => 2025-03-06 05:53:05 [RateCDR] => 1 ) [2025-03-06 05:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 02:53:05' and `end` < '2025-03-06 05:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 05:53:17] Production.INFO: count ==131 [2025-03-06 05:53:17] Production.ERROR: pbx CDR StartTime 2025-03-06 02:53:05 - End Time 2025-03-06 05:53:05 [2025-03-06 05:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 05:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618463', 'tblTempUsageDetail_20' ) start [2025-03-06 05:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618463', 'tblTempUsageDetail_20' ) end [2025-03-06 05:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618463', 'tblTempVendorCDR_20' ) start [2025-03-06 05:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618463', 'tblTempVendorCDR_20' ) end [2025-03-06 05:53:17] Production.INFO: ProcessCDR(1,14618463,1,1,2) [2025-03-06 05:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14618463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 05:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14618463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 05:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14618463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 05:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14618463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 05:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618463', 'tblTempUsageDetail_20' ) start [2025-03-06 05:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618463', 'tblTempUsageDetail_20' ) end [2025-03-06 05:53:20] Production.ERROR: pbx prc_insertCDR start [2025-03-06 05:53:20] Production.ERROR: pbx prc_insertCDR end [2025-03-06 05:53:20] Production.INFO: ==25028== Releasing lock... [2025-03-06 05:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 05:53:20] Production.INFO: 28.25 MB #Memory Used# [2025-03-06 05:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 02:54:05 [end_date_ymd] => 2025-03-06 05:54:05 [RateCDR] => 1 ) [2025-03-06 05:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 02:54:05' and `end` < '2025-03-06 05:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 05:54:17] Production.INFO: count ==132 [2025-03-06 05:54:17] Production.ERROR: pbx CDR StartTime 2025-03-06 02:54:05 - End Time 2025-03-06 05:54:05 [2025-03-06 05:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 05:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618471', 'tblTempUsageDetail_20' ) start [2025-03-06 05:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618471', 'tblTempUsageDetail_20' ) end [2025-03-06 05:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618471', 'tblTempVendorCDR_20' ) start [2025-03-06 05:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618471', 'tblTempVendorCDR_20' ) end [2025-03-06 05:54:17] Production.INFO: ProcessCDR(1,14618471,1,1,2) [2025-03-06 05:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14618471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 05:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14618471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 05:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14618471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 05:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14618471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 05:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618471', 'tblTempUsageDetail_20' ) start [2025-03-06 05:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618471', 'tblTempUsageDetail_20' ) end [2025-03-06 05:54:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 05:54:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 05:54:22] Production.INFO: ==25107== Releasing lock... [2025-03-06 05:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 05:54:22] Production.INFO: 28.25 MB #Memory Used# [2025-03-06 05:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 02:55:06 [end_date_ymd] => 2025-03-06 05:55:06 [RateCDR] => 1 ) [2025-03-06 05: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-03-06 02:55:06' and `end` < '2025-03-06 05: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-03-06 05:55:18] Production.INFO: count ==133 [2025-03-06 05:55:18] Production.ERROR: pbx CDR StartTime 2025-03-06 02:55:06 - End Time 2025-03-06 05:55:06 [2025-03-06 05:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618476', 'tblTempUsageDetail_20' ) start [2025-03-06 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618476', 'tblTempUsageDetail_20' ) end [2025-03-06 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618476', 'tblTempVendorCDR_20' ) start [2025-03-06 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618476', 'tblTempVendorCDR_20' ) end [2025-03-06 05:55:18] Production.INFO: ProcessCDR(1,14618476,1,1,2) [2025-03-06 05:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14618476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 05:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14618476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 05:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14618476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 05:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14618476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 05:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618476', 'tblTempUsageDetail_20' ) start [2025-03-06 05:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618476', 'tblTempUsageDetail_20' ) end [2025-03-06 05:55:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 05:55:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 05:55:22] Production.INFO: ==25186== Releasing lock... [2025-03-06 05:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 05:55:22] Production.INFO: 28.25 MB #Memory Used# [2025-03-06 05:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 02:56:05 [end_date_ymd] => 2025-03-06 05:56:05 [RateCDR] => 1 ) [2025-03-06 05:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 02:56:05' and `end` < '2025-03-06 05:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 05:56:17] Production.INFO: count ==135 [2025-03-06 05:56:17] Production.ERROR: pbx CDR StartTime 2025-03-06 02:56:05 - End Time 2025-03-06 05:56:05 [2025-03-06 05:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 05:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618481', 'tblTempUsageDetail_20' ) start [2025-03-06 05:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618481', 'tblTempUsageDetail_20' ) end [2025-03-06 05:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618481', 'tblTempVendorCDR_20' ) start [2025-03-06 05:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618481', 'tblTempVendorCDR_20' ) end [2025-03-06 05:56:17] Production.INFO: ProcessCDR(1,14618481,1,1,2) [2025-03-06 05:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14618481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 05:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14618481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 05:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14618481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 05:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14618481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 05:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618481', 'tblTempUsageDetail_20' ) start [2025-03-06 05:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618481', 'tblTempUsageDetail_20' ) end [2025-03-06 05:56:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 05:56:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 05:56:21] Production.INFO: ==25263== Releasing lock... [2025-03-06 05:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 05:56:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-06 05:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 02:57:06 [end_date_ymd] => 2025-03-06 05:57:06 [RateCDR] => 1 ) [2025-03-06 05: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-03-06 02:57:06' and `end` < '2025-03-06 05: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-03-06 05:57:18] Production.INFO: count ==135 [2025-03-06 05:57:18] Production.ERROR: pbx CDR StartTime 2025-03-06 02:57:06 - End Time 2025-03-06 05:57:06 [2025-03-06 05:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 05:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618486', 'tblTempUsageDetail_20' ) start [2025-03-06 05:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618486', 'tblTempUsageDetail_20' ) end [2025-03-06 05:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618486', 'tblTempVendorCDR_20' ) start [2025-03-06 05:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618486', 'tblTempVendorCDR_20' ) end [2025-03-06 05:57:18] Production.INFO: ProcessCDR(1,14618486,1,1,2) [2025-03-06 05:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14618486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 05:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14618486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 05:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14618486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 05:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14618486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 05:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618486', 'tblTempUsageDetail_20' ) start [2025-03-06 05:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618486', 'tblTempUsageDetail_20' ) end [2025-03-06 05:57:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 05:57:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 05:57:21] Production.INFO: ==25381== Releasing lock... [2025-03-06 05:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 05:57:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-06 05:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 02:58:05 [end_date_ymd] => 2025-03-06 05:58:05 [RateCDR] => 1 ) [2025-03-06 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-03-06 02:58:05' and `end` < '2025-03-06 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-03-06 05:58:17] Production.INFO: count ==135 [2025-03-06 05:58:17] Production.ERROR: pbx CDR StartTime 2025-03-06 02:58:05 - End Time 2025-03-06 05:58:05 [2025-03-06 05:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 05:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618491', 'tblTempUsageDetail_20' ) start [2025-03-06 05:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618491', 'tblTempUsageDetail_20' ) end [2025-03-06 05:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618491', 'tblTempVendorCDR_20' ) start [2025-03-06 05:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618491', 'tblTempVendorCDR_20' ) end [2025-03-06 05:58:17] Production.INFO: ProcessCDR(1,14618491,1,1,2) [2025-03-06 05:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14618491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 05:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14618491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 05:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14618491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 05:58:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14618491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 05:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618491', 'tblTempUsageDetail_20' ) start [2025-03-06 05:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618491', 'tblTempUsageDetail_20' ) end [2025-03-06 05:58:20] Production.ERROR: pbx prc_insertCDR start [2025-03-06 05:58:20] Production.ERROR: pbx prc_insertCDR end [2025-03-06 05:58:20] Production.INFO: ==25460== Releasing lock... [2025-03-06 05:58:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 05:58:20] Production.INFO: 28.5 MB #Memory Used# [2025-03-06 05:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 02:59:06 [end_date_ymd] => 2025-03-06 05:59:06 [RateCDR] => 1 ) [2025-03-06 05: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-03-06 02:59:06' and `end` < '2025-03-06 05: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-03-06 05:59:18] Production.INFO: count ==135 [2025-03-06 05:59:18] Production.ERROR: pbx CDR StartTime 2025-03-06 02:59:06 - End Time 2025-03-06 05:59:06 [2025-03-06 05:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 05:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618496', 'tblTempUsageDetail_20' ) start [2025-03-06 05:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618496', 'tblTempUsageDetail_20' ) end [2025-03-06 05:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618496', 'tblTempVendorCDR_20' ) start [2025-03-06 05:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618496', 'tblTempVendorCDR_20' ) end [2025-03-06 05:59:18] Production.INFO: ProcessCDR(1,14618496,1,1,2) [2025-03-06 05:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14618496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 05:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14618496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 05:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14618496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 05:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14618496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 05:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618496', 'tblTempUsageDetail_20' ) start [2025-03-06 05:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618496', 'tblTempUsageDetail_20' ) end [2025-03-06 05:59:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 05:59:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 05:59:21] Production.INFO: ==25532== Releasing lock... [2025-03-06 05:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 05:59:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-06 06:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 03:00:06 [end_date_ymd] => 2025-03-06 06:00:06 [RateCDR] => 1 ) [2025-03-06 06:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 03:00:06' and `end` < '2025-03-06 06:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 06:00:18] Production.INFO: count ==131 [2025-03-06 06:00:18] Production.ERROR: pbx CDR StartTime 2025-03-06 03:00:06 - End Time 2025-03-06 06:00:06 [2025-03-06 06:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618501', 'tblTempUsageDetail_20' ) start [2025-03-06 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618501', 'tblTempUsageDetail_20' ) end [2025-03-06 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618501', 'tblTempVendorCDR_20' ) start [2025-03-06 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618501', 'tblTempVendorCDR_20' ) end [2025-03-06 06:00:18] Production.INFO: ProcessCDR(1,14618501,1,1,2) [2025-03-06 06:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14618501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 06:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14618501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 06:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14618501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 06:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14618501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 06:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618501', 'tblTempUsageDetail_20' ) start [2025-03-06 06:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618501', 'tblTempUsageDetail_20' ) end [2025-03-06 06:00:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 06:00:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 06:00:22] Production.INFO: ==25614== Releasing lock... [2025-03-06 06:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 06:00:22] Production.INFO: 28.25 MB #Memory Used# [2025-03-06 06:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 03:01:06 [end_date_ymd] => 2025-03-06 06:01:06 [RateCDR] => 1 ) [2025-03-06 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-03-06 03:01:06' and `end` < '2025-03-06 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-03-06 06:01:18] Production.INFO: count ==123 [2025-03-06 06:01:18] Production.ERROR: pbx CDR StartTime 2025-03-06 03:01:06 - End Time 2025-03-06 06:01:06 [2025-03-06 06:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618507', 'tblTempUsageDetail_20' ) start [2025-03-06 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618507', 'tblTempUsageDetail_20' ) end [2025-03-06 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618507', 'tblTempVendorCDR_20' ) start [2025-03-06 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618507', 'tblTempVendorCDR_20' ) end [2025-03-06 06:01:18] Production.INFO: ProcessCDR(1,14618507,1,1,2) [2025-03-06 06:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14618507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 06:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14618507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 06:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14618507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 06:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14618507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 06:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618507', 'tblTempUsageDetail_20' ) start [2025-03-06 06:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618507', 'tblTempUsageDetail_20' ) end [2025-03-06 06:01:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 06:01:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 06:01:21] Production.INFO: ==25706== Releasing lock... [2025-03-06 06:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 06:01:21] Production.INFO: 28.25 MB #Memory Used# [2025-03-06 06:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 03:02:05 [end_date_ymd] => 2025-03-06 06:02:05 [RateCDR] => 1 ) [2025-03-06 06:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 03:02:05' and `end` < '2025-03-06 06:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 06:02:17] Production.INFO: count ==123 [2025-03-06 06:02:17] Production.ERROR: pbx CDR StartTime 2025-03-06 03:02:05 - End Time 2025-03-06 06:02:05 [2025-03-06 06:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 06:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618512', 'tblTempUsageDetail_20' ) start [2025-03-06 06:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618512', 'tblTempUsageDetail_20' ) end [2025-03-06 06:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618512', 'tblTempVendorCDR_20' ) start [2025-03-06 06:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618512', 'tblTempVendorCDR_20' ) end [2025-03-06 06:02:17] Production.INFO: ProcessCDR(1,14618512,1,1,2) [2025-03-06 06:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14618512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 06:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14618512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 06:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14618512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 06:02:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14618512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 06:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618512', 'tblTempUsageDetail_20' ) start [2025-03-06 06:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618512', 'tblTempUsageDetail_20' ) end [2025-03-06 06:02:20] Production.ERROR: pbx prc_insertCDR start [2025-03-06 06:02:20] Production.ERROR: pbx prc_insertCDR end [2025-03-06 06:02:20] Production.INFO: ==25789== Releasing lock... [2025-03-06 06:02:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 06:02:20] Production.INFO: 28.25 MB #Memory Used# [2025-03-06 06:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 03:03:06 [end_date_ymd] => 2025-03-06 06:03:06 [RateCDR] => 1 ) [2025-03-06 06:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 03:03:06' and `end` < '2025-03-06 06:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 06:03:18] Production.INFO: count ==123 [2025-03-06 06:03:18] Production.ERROR: pbx CDR StartTime 2025-03-06 03:03:06 - End Time 2025-03-06 06:03:06 [2025-03-06 06:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 06:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618517', 'tblTempUsageDetail_20' ) start [2025-03-06 06:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618517', 'tblTempUsageDetail_20' ) end [2025-03-06 06:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618517', 'tblTempVendorCDR_20' ) start [2025-03-06 06:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618517', 'tblTempVendorCDR_20' ) end [2025-03-06 06:03:18] Production.INFO: ProcessCDR(1,14618517,1,1,2) [2025-03-06 06:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14618517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 06:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14618517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 06:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14618517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 06:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14618517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 06:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618517', 'tblTempUsageDetail_20' ) start [2025-03-06 06:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618517', 'tblTempUsageDetail_20' ) end [2025-03-06 06:03:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 06:03:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 06:03:21] Production.INFO: ==25864== Releasing lock... [2025-03-06 06:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 06:03:21] Production.INFO: 28.25 MB #Memory Used# [2025-03-06 06:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 03:04:05 [end_date_ymd] => 2025-03-06 06:04:05 [RateCDR] => 1 ) [2025-03-06 06:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 03:04:05' and `end` < '2025-03-06 06:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 06:04:17] Production.INFO: count ==123 [2025-03-06 06:04:17] Production.ERROR: pbx CDR StartTime 2025-03-06 03:04:05 - End Time 2025-03-06 06:04:05 [2025-03-06 06:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 06:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618522', 'tblTempUsageDetail_20' ) start [2025-03-06 06:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618522', 'tblTempUsageDetail_20' ) end [2025-03-06 06:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618522', 'tblTempVendorCDR_20' ) start [2025-03-06 06:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618522', 'tblTempVendorCDR_20' ) end [2025-03-06 06:04:17] Production.INFO: ProcessCDR(1,14618522,1,1,2) [2025-03-06 06:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14618522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 06:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14618522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 06:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14618522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 06:04:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14618522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 06:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618522', 'tblTempUsageDetail_20' ) start [2025-03-06 06:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618522', 'tblTempUsageDetail_20' ) end [2025-03-06 06:04:20] Production.ERROR: pbx prc_insertCDR start [2025-03-06 06:04:20] Production.ERROR: pbx prc_insertCDR end [2025-03-06 06:04:20] Production.INFO: ==25941== Releasing lock... [2025-03-06 06:04:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 06:04:20] Production.INFO: 28.25 MB #Memory Used# [2025-03-06 06:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 03:05:05 [end_date_ymd] => 2025-03-06 06:05:05 [RateCDR] => 1 ) [2025-03-06 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-03-06 03:05:05' and `end` < '2025-03-06 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-03-06 06:05:18] Production.INFO: count ==123 [2025-03-06 06:05:18] Production.ERROR: pbx CDR StartTime 2025-03-06 03:05:05 - End Time 2025-03-06 06:05:05 [2025-03-06 06:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 06:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618527', 'tblTempUsageDetail_20' ) start [2025-03-06 06:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618527', 'tblTempUsageDetail_20' ) end [2025-03-06 06:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618527', 'tblTempVendorCDR_20' ) start [2025-03-06 06:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618527', 'tblTempVendorCDR_20' ) end [2025-03-06 06:05:18] Production.INFO: ProcessCDR(1,14618527,1,1,2) [2025-03-06 06:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14618527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 06:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14618527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 06:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14618527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 06:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14618527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 06:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618527', 'tblTempUsageDetail_20' ) start [2025-03-06 06:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618527', 'tblTempUsageDetail_20' ) end [2025-03-06 06:05:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 06:05:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 06:05:21] Production.INFO: ==26022== Releasing lock... [2025-03-06 06:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 06:05:21] Production.INFO: 28.25 MB #Memory Used# [2025-03-06 06:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 03:06:05 [end_date_ymd] => 2025-03-06 06:06:05 [RateCDR] => 1 ) [2025-03-06 06:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 03:06:05' and `end` < '2025-03-06 06:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 06:06:17] Production.INFO: count ==123 [2025-03-06 06:06:17] Production.ERROR: pbx CDR StartTime 2025-03-06 03:06:05 - End Time 2025-03-06 06:06:05 [2025-03-06 06:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 06:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618532', 'tblTempUsageDetail_20' ) start [2025-03-06 06:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618532', 'tblTempUsageDetail_20' ) end [2025-03-06 06:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618532', 'tblTempVendorCDR_20' ) start [2025-03-06 06:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618532', 'tblTempVendorCDR_20' ) end [2025-03-06 06:06:17] Production.INFO: ProcessCDR(1,14618532,1,1,2) [2025-03-06 06:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14618532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 06:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14618532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 06:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14618532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 06:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14618532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 06:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618532', 'tblTempUsageDetail_20' ) start [2025-03-06 06:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618532', 'tblTempUsageDetail_20' ) end [2025-03-06 06:06:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 06:06:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 06:06:21] Production.INFO: ==26098== Releasing lock... [2025-03-06 06:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 06:06:21] Production.INFO: 28.25 MB #Memory Used# [2025-03-06 06:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 03:07:06 [end_date_ymd] => 2025-03-06 06:07:06 [RateCDR] => 1 ) [2025-03-06 06: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-03-06 03:07:06' and `end` < '2025-03-06 06: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-03-06 06:07:18] Production.INFO: count ==123 [2025-03-06 06:07:18] Production.ERROR: pbx CDR StartTime 2025-03-06 03:07:06 - End Time 2025-03-06 06:07:06 [2025-03-06 06:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 06:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618537', 'tblTempUsageDetail_20' ) start [2025-03-06 06:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618537', 'tblTempUsageDetail_20' ) end [2025-03-06 06:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618537', 'tblTempVendorCDR_20' ) start [2025-03-06 06:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618537', 'tblTempVendorCDR_20' ) end [2025-03-06 06:07:18] Production.INFO: ProcessCDR(1,14618537,1,1,2) [2025-03-06 06:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14618537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 06:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14618537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 06:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14618537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 06:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14618537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 06:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618537', 'tblTempUsageDetail_20' ) start [2025-03-06 06:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618537', 'tblTempUsageDetail_20' ) end [2025-03-06 06:07:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 06:07:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 06:07:21] Production.INFO: ==26178== Releasing lock... [2025-03-06 06:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 06:07:21] Production.INFO: 28.25 MB #Memory Used# [2025-03-06 06:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 03:08:05 [end_date_ymd] => 2025-03-06 06:08:05 [RateCDR] => 1 ) [2025-03-06 06:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 03:08:05' and `end` < '2025-03-06 06:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 06:08:17] Production.INFO: count ==123 [2025-03-06 06:08:17] Production.ERROR: pbx CDR StartTime 2025-03-06 03:08:05 - End Time 2025-03-06 06:08:05 [2025-03-06 06:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 06:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618542', 'tblTempUsageDetail_20' ) start [2025-03-06 06:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618542', 'tblTempUsageDetail_20' ) end [2025-03-06 06:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618542', 'tblTempVendorCDR_20' ) start [2025-03-06 06:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618542', 'tblTempVendorCDR_20' ) end [2025-03-06 06:08:17] Production.INFO: ProcessCDR(1,14618542,1,1,2) [2025-03-06 06:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14618542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 06:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14618542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 06:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14618542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 06:08:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14618542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 06:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618542', 'tblTempUsageDetail_20' ) start [2025-03-06 06:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618542', 'tblTempUsageDetail_20' ) end [2025-03-06 06:08:20] Production.ERROR: pbx prc_insertCDR start [2025-03-06 06:08:20] Production.ERROR: pbx prc_insertCDR end [2025-03-06 06:08:20] Production.INFO: ==26257== Releasing lock... [2025-03-06 06:08:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 06:08:20] Production.INFO: 28.25 MB #Memory Used# [2025-03-06 06:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 03:09:05 [end_date_ymd] => 2025-03-06 06:09:05 [RateCDR] => 1 ) [2025-03-06 06:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 03:09:05' and `end` < '2025-03-06 06:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 06:09:17] Production.INFO: count ==123 [2025-03-06 06:09:17] Production.ERROR: pbx CDR StartTime 2025-03-06 03:09:05 - End Time 2025-03-06 06:09:05 [2025-03-06 06:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 06:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618547', 'tblTempUsageDetail_20' ) start [2025-03-06 06:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618547', 'tblTempUsageDetail_20' ) end [2025-03-06 06:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618547', 'tblTempVendorCDR_20' ) start [2025-03-06 06:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618547', 'tblTempVendorCDR_20' ) end [2025-03-06 06:09:17] Production.INFO: ProcessCDR(1,14618547,1,1,2) [2025-03-06 06:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14618547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 06:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14618547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 06:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14618547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 06:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14618547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 06:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618547', 'tblTempUsageDetail_20' ) start [2025-03-06 06:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618547', 'tblTempUsageDetail_20' ) end [2025-03-06 06:09:20] Production.ERROR: pbx prc_insertCDR start [2025-03-06 06:09:20] Production.ERROR: pbx prc_insertCDR end [2025-03-06 06:09:20] Production.INFO: ==26332== Releasing lock... [2025-03-06 06:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 06:09:20] Production.INFO: 28.25 MB #Memory Used# [2025-03-06 06:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 03:10:06 [end_date_ymd] => 2025-03-06 06:10:06 [RateCDR] => 1 ) [2025-03-06 06: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-03-06 03:10:06' and `end` < '2025-03-06 06: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-03-06 06:10:18] Production.INFO: count ==123 [2025-03-06 06:10:18] Production.ERROR: pbx CDR StartTime 2025-03-06 03:10:06 - End Time 2025-03-06 06:10:06 [2025-03-06 06:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618553', 'tblTempUsageDetail_20' ) start [2025-03-06 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618553', 'tblTempUsageDetail_20' ) end [2025-03-06 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618553', 'tblTempVendorCDR_20' ) start [2025-03-06 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618553', 'tblTempVendorCDR_20' ) end [2025-03-06 06:10:18] Production.INFO: ProcessCDR(1,14618553,1,1,2) [2025-03-06 06:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14618553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 06:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14618553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 06:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14618553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 06:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14618553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 06:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618553', 'tblTempUsageDetail_20' ) start [2025-03-06 06:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618553', 'tblTempUsageDetail_20' ) end [2025-03-06 06:10:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 06:10:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 06:10:21] Production.INFO: ==26420== Releasing lock... [2025-03-06 06:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 06:10:21] Production.INFO: 28.25 MB #Memory Used# [2025-03-06 06:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 03:11:05 [end_date_ymd] => 2025-03-06 06:11:05 [RateCDR] => 1 ) [2025-03-06 06:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 03:11:05' and `end` < '2025-03-06 06:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 06:11:17] Production.INFO: count ==123 [2025-03-06 06:11:17] Production.ERROR: pbx CDR StartTime 2025-03-06 03:11:05 - End Time 2025-03-06 06:11:05 [2025-03-06 06:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 06:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618558', 'tblTempUsageDetail_20' ) start [2025-03-06 06:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618558', 'tblTempUsageDetail_20' ) end [2025-03-06 06:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618558', 'tblTempVendorCDR_20' ) start [2025-03-06 06:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618558', 'tblTempVendorCDR_20' ) end [2025-03-06 06:11:17] Production.INFO: ProcessCDR(1,14618558,1,1,2) [2025-03-06 06:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14618558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 06:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14618558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 06:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14618558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 06:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14618558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 06:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618558', 'tblTempUsageDetail_20' ) start [2025-03-06 06:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618558', 'tblTempUsageDetail_20' ) end [2025-03-06 06:11:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 06:11:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 06:11:21] Production.INFO: ==26508== Releasing lock... [2025-03-06 06:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 06:11:21] Production.INFO: 28.25 MB #Memory Used# [2025-03-06 06:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 03:12:06 [end_date_ymd] => 2025-03-06 06:12:06 [RateCDR] => 1 ) [2025-03-06 06: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-03-06 03:12:06' and `end` < '2025-03-06 06: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-03-06 06:12:18] Production.INFO: count ==123 [2025-03-06 06:12:18] Production.ERROR: pbx CDR StartTime 2025-03-06 03:12:06 - End Time 2025-03-06 06:12:06 [2025-03-06 06:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618563', 'tblTempUsageDetail_20' ) start [2025-03-06 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618563', 'tblTempUsageDetail_20' ) end [2025-03-06 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618563', 'tblTempVendorCDR_20' ) start [2025-03-06 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618563', 'tblTempVendorCDR_20' ) end [2025-03-06 06:12:18] Production.INFO: ProcessCDR(1,14618563,1,1,2) [2025-03-06 06:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14618563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 06:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14618563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 06:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14618563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 06:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14618563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 06:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618563', 'tblTempUsageDetail_20' ) start [2025-03-06 06:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618563', 'tblTempUsageDetail_20' ) end [2025-03-06 06:12:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 06:12:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 06:12:21] Production.INFO: ==26584== Releasing lock... [2025-03-06 06:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 06:12:21] Production.INFO: 28.25 MB #Memory Used# [2025-03-06 06:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 03:13:05 [end_date_ymd] => 2025-03-06 06:13:05 [RateCDR] => 1 ) [2025-03-06 06:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 03:13:05' and `end` < '2025-03-06 06:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 06:13:17] Production.INFO: count ==123 [2025-03-06 06:13:17] Production.ERROR: pbx CDR StartTime 2025-03-06 03:13:05 - End Time 2025-03-06 06:13:05 [2025-03-06 06:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 06:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618568', 'tblTempUsageDetail_20' ) start [2025-03-06 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618568', 'tblTempUsageDetail_20' ) end [2025-03-06 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618568', 'tblTempVendorCDR_20' ) start [2025-03-06 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618568', 'tblTempVendorCDR_20' ) end [2025-03-06 06:13:18] Production.INFO: ProcessCDR(1,14618568,1,1,2) [2025-03-06 06:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14618568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 06:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14618568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 06:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14618568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 06:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14618568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 06:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618568', 'tblTempUsageDetail_20' ) start [2025-03-06 06:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618568', 'tblTempUsageDetail_20' ) end [2025-03-06 06:13:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 06:13:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 06:13:21] Production.INFO: ==26704== Releasing lock... [2025-03-06 06:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 06:13:21] Production.INFO: 28.25 MB #Memory Used# [2025-03-06 06:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 03:14:06 [end_date_ymd] => 2025-03-06 06:14:06 [RateCDR] => 1 ) [2025-03-06 06: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-03-06 03:14:06' and `end` < '2025-03-06 06: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-03-06 06:14:18] Production.INFO: count ==124 [2025-03-06 06:14:18] Production.ERROR: pbx CDR StartTime 2025-03-06 03:14:06 - End Time 2025-03-06 06:14:06 [2025-03-06 06:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618573', 'tblTempUsageDetail_20' ) start [2025-03-06 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618573', 'tblTempUsageDetail_20' ) end [2025-03-06 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618573', 'tblTempVendorCDR_20' ) start [2025-03-06 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618573', 'tblTempVendorCDR_20' ) end [2025-03-06 06:14:18] Production.INFO: ProcessCDR(1,14618573,1,1,2) [2025-03-06 06:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14618573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 06:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14618573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 06:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14618573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 06:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14618573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 06:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618573', 'tblTempUsageDetail_20' ) start [2025-03-06 06:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618573', 'tblTempUsageDetail_20' ) end [2025-03-06 06:14:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 06:14:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 06:14:22] Production.INFO: ==26789== Releasing lock... [2025-03-06 06:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 06:14:22] Production.INFO: 28.25 MB #Memory Used# [2025-03-06 06:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 03:15:05 [end_date_ymd] => 2025-03-06 06:15:05 [RateCDR] => 1 ) [2025-03-06 06:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 03:15:05' and `end` < '2025-03-06 06:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 06:15:17] Production.INFO: count ==123 [2025-03-06 06:15:17] Production.ERROR: pbx CDR StartTime 2025-03-06 03:15:05 - End Time 2025-03-06 06:15:05 [2025-03-06 06:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 06:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618578', 'tblTempUsageDetail_20' ) start [2025-03-06 06:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618578', 'tblTempUsageDetail_20' ) end [2025-03-06 06:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618578', 'tblTempVendorCDR_20' ) start [2025-03-06 06:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618578', 'tblTempVendorCDR_20' ) end [2025-03-06 06:15:17] Production.INFO: ProcessCDR(1,14618578,1,1,2) [2025-03-06 06:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14618578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 06:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14618578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 06:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14618578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 06:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14618578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 06:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618578', 'tblTempUsageDetail_20' ) start [2025-03-06 06:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618578', 'tblTempUsageDetail_20' ) end [2025-03-06 06:15:20] Production.ERROR: pbx prc_insertCDR start [2025-03-06 06:15:20] Production.ERROR: pbx prc_insertCDR end [2025-03-06 06:15:20] Production.INFO: ==26873== Releasing lock... [2025-03-06 06:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 06:15:20] Production.INFO: 28.25 MB #Memory Used# [2025-03-06 06:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 03:16:06 [end_date_ymd] => 2025-03-06 06:16:06 [RateCDR] => 1 ) [2025-03-06 06: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-03-06 03:16:06' and `end` < '2025-03-06 06: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-03-06 06:16:18] Production.INFO: count ==123 [2025-03-06 06:16:18] Production.ERROR: pbx CDR StartTime 2025-03-06 03:16:06 - End Time 2025-03-06 06:16:06 [2025-03-06 06:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618583', 'tblTempUsageDetail_20' ) start [2025-03-06 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618583', 'tblTempUsageDetail_20' ) end [2025-03-06 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618583', 'tblTempVendorCDR_20' ) start [2025-03-06 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618583', 'tblTempVendorCDR_20' ) end [2025-03-06 06:16:18] Production.INFO: ProcessCDR(1,14618583,1,1,2) [2025-03-06 06:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14618583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 06:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14618583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 06:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14618583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 06:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14618583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 06:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618583', 'tblTempUsageDetail_20' ) start [2025-03-06 06:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618583', 'tblTempUsageDetail_20' ) end [2025-03-06 06:16:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 06:16:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 06:16:21] Production.INFO: ==26951== Releasing lock... [2025-03-06 06:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 06:16:21] Production.INFO: 28.25 MB #Memory Used# [2025-03-06 06:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 03:17:05 [end_date_ymd] => 2025-03-06 06:17:05 [RateCDR] => 1 ) [2025-03-06 06:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 03:17:05' and `end` < '2025-03-06 06:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 06:17:17] Production.INFO: count ==126 [2025-03-06 06:17:17] Production.ERROR: pbx CDR StartTime 2025-03-06 03:17:05 - End Time 2025-03-06 06:17:05 [2025-03-06 06:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 06:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618587', 'tblTempUsageDetail_20' ) start [2025-03-06 06:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618587', 'tblTempUsageDetail_20' ) end [2025-03-06 06:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618587', 'tblTempVendorCDR_20' ) start [2025-03-06 06:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618587', 'tblTempVendorCDR_20' ) end [2025-03-06 06:17:17] Production.INFO: ProcessCDR(1,14618587,1,1,2) [2025-03-06 06:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14618587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 06:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14618587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 06:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14618587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 06:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14618587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 06:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618587', 'tblTempUsageDetail_20' ) start [2025-03-06 06:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618587', 'tblTempUsageDetail_20' ) end [2025-03-06 06:17:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 06:17:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 06:17:21] Production.INFO: ==27029== Releasing lock... [2025-03-06 06:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 06:17:21] Production.INFO: 28.25 MB #Memory Used# [2025-03-06 06:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 03:18:05 [end_date_ymd] => 2025-03-06 06:18:05 [RateCDR] => 1 ) [2025-03-06 06:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 03:18:05' and `end` < '2025-03-06 06:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 06:18:17] Production.INFO: count ==129 [2025-03-06 06:18:17] Production.ERROR: pbx CDR StartTime 2025-03-06 03:18:05 - End Time 2025-03-06 06:18:05 [2025-03-06 06:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 06:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618593', 'tblTempUsageDetail_20' ) start [2025-03-06 06:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618593', 'tblTempUsageDetail_20' ) end [2025-03-06 06:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618593', 'tblTempVendorCDR_20' ) start [2025-03-06 06:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618593', 'tblTempVendorCDR_20' ) end [2025-03-06 06:18:17] Production.INFO: ProcessCDR(1,14618593,1,1,2) [2025-03-06 06:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14618593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 06:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14618593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 06:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14618593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 06:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14618593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 06:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618593', 'tblTempUsageDetail_20' ) start [2025-03-06 06:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618593', 'tblTempUsageDetail_20' ) end [2025-03-06 06:18:20] Production.ERROR: pbx prc_insertCDR start [2025-03-06 06:18:20] Production.ERROR: pbx prc_insertCDR end [2025-03-06 06:18:21] Production.INFO: ==27112== Releasing lock... [2025-03-06 06:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 06:18:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-06 06:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 03:19:05 [end_date_ymd] => 2025-03-06 06:19:05 [RateCDR] => 1 ) [2025-03-06 06:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 03:19:05' and `end` < '2025-03-06 06:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 06:19:17] Production.INFO: count ==129 [2025-03-06 06:19:17] Production.ERROR: pbx CDR StartTime 2025-03-06 03:19:05 - End Time 2025-03-06 06:19:05 [2025-03-06 06:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 06:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618598', 'tblTempUsageDetail_20' ) start [2025-03-06 06:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618598', 'tblTempUsageDetail_20' ) end [2025-03-06 06:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618598', 'tblTempVendorCDR_20' ) start [2025-03-06 06:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618598', 'tblTempVendorCDR_20' ) end [2025-03-06 06:19:17] Production.INFO: ProcessCDR(1,14618598,1,1,2) [2025-03-06 06:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14618598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 06:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14618598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 06:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14618598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 06:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14618598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 06:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618598', 'tblTempUsageDetail_20' ) start [2025-03-06 06:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618598', 'tblTempUsageDetail_20' ) end [2025-03-06 06:19:20] Production.ERROR: pbx prc_insertCDR start [2025-03-06 06:19:20] Production.ERROR: pbx prc_insertCDR end [2025-03-06 06:19:20] Production.INFO: ==27194== Releasing lock... [2025-03-06 06:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 06:19:20] Production.INFO: 28.5 MB #Memory Used# [2025-03-06 06:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 03:20:06 [end_date_ymd] => 2025-03-06 06:20:06 [RateCDR] => 1 ) [2025-03-06 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-03-06 03:20:06' and `end` < '2025-03-06 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-03-06 06:20:18] Production.INFO: count ==126 [2025-03-06 06:20:18] Production.ERROR: pbx CDR StartTime 2025-03-06 03:20:06 - End Time 2025-03-06 06:20:06 [2025-03-06 06:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618603', 'tblTempUsageDetail_20' ) start [2025-03-06 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618603', 'tblTempUsageDetail_20' ) end [2025-03-06 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618603', 'tblTempVendorCDR_20' ) start [2025-03-06 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618603', 'tblTempVendorCDR_20' ) end [2025-03-06 06:20:18] Production.INFO: ProcessCDR(1,14618603,1,1,2) [2025-03-06 06:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14618603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 06:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14618603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 06:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14618603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 06:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14618603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 06:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618603', 'tblTempUsageDetail_20' ) start [2025-03-06 06:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618603', 'tblTempUsageDetail_20' ) end [2025-03-06 06:20:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 06:20:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 06:20:21] Production.INFO: ==27276== Releasing lock... [2025-03-06 06:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 06:20:21] Production.INFO: 28.25 MB #Memory Used# [2025-03-06 06:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 03:21:05 [end_date_ymd] => 2025-03-06 06:21:05 [RateCDR] => 1 ) [2025-03-06 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-03-06 03:21:05' and `end` < '2025-03-06 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-03-06 06:21:17] Production.INFO: count ==122 [2025-03-06 06:21:17] Production.ERROR: pbx CDR StartTime 2025-03-06 03:21:05 - End Time 2025-03-06 06:21:05 [2025-03-06 06:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 06:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618609', 'tblTempUsageDetail_20' ) start [2025-03-06 06:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618609', 'tblTempUsageDetail_20' ) end [2025-03-06 06:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618609', 'tblTempVendorCDR_20' ) start [2025-03-06 06:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618609', 'tblTempVendorCDR_20' ) end [2025-03-06 06:21:17] Production.INFO: ProcessCDR(1,14618609,1,1,2) [2025-03-06 06:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14618609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 06:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14618609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 06:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14618609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 06:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14618609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 06:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618609', 'tblTempUsageDetail_20' ) start [2025-03-06 06:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618609', 'tblTempUsageDetail_20' ) end [2025-03-06 06:21:20] Production.ERROR: pbx prc_insertCDR start [2025-03-06 06:21:20] Production.ERROR: pbx prc_insertCDR end [2025-03-06 06:21:20] Production.INFO: ==27360== Releasing lock... [2025-03-06 06:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 06:21:20] Production.INFO: 28.25 MB #Memory Used# [2025-03-06 06:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 03:22:05 [end_date_ymd] => 2025-03-06 06:22:05 [RateCDR] => 1 ) [2025-03-06 06:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 03:22:05' and `end` < '2025-03-06 06:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 06:22:17] Production.INFO: count ==122 [2025-03-06 06:22:17] Production.ERROR: pbx CDR StartTime 2025-03-06 03:22:05 - End Time 2025-03-06 06:22:05 [2025-03-06 06:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 06:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618614', 'tblTempUsageDetail_20' ) start [2025-03-06 06:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618614', 'tblTempUsageDetail_20' ) end [2025-03-06 06:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618614', 'tblTempVendorCDR_20' ) start [2025-03-06 06:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618614', 'tblTempVendorCDR_20' ) end [2025-03-06 06:22:17] Production.INFO: ProcessCDR(1,14618614,1,1,2) [2025-03-06 06:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14618614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 06:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14618614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 06:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14618614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 06:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14618614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 06:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618614', 'tblTempUsageDetail_20' ) start [2025-03-06 06:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618614', 'tblTempUsageDetail_20' ) end [2025-03-06 06:22:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 06:22:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 06:22:21] Production.INFO: ==27442== Releasing lock... [2025-03-06 06:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 06:22:21] Production.INFO: 28.25 MB #Memory Used# [2025-03-06 06:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 03:23:06 [end_date_ymd] => 2025-03-06 06:23:06 [RateCDR] => 1 ) [2025-03-06 06:23:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 03:23:06' and `end` < '2025-03-06 06:23:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 06:23:18] Production.INFO: count ==122 [2025-03-06 06:23:18] Production.ERROR: pbx CDR StartTime 2025-03-06 03:23:06 - End Time 2025-03-06 06:23:06 [2025-03-06 06:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618619', 'tblTempUsageDetail_20' ) start [2025-03-06 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618619', 'tblTempUsageDetail_20' ) end [2025-03-06 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618619', 'tblTempVendorCDR_20' ) start [2025-03-06 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618619', 'tblTempVendorCDR_20' ) end [2025-03-06 06:23:18] Production.INFO: ProcessCDR(1,14618619,1,1,2) [2025-03-06 06:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14618619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 06:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14618619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 06:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14618619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 06:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14618619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 06:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618619', 'tblTempUsageDetail_20' ) start [2025-03-06 06:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618619', 'tblTempUsageDetail_20' ) end [2025-03-06 06:23:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 06:23:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 06:23:22] Production.INFO: ==27524== Releasing lock... [2025-03-06 06:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 06:23:22] Production.INFO: 28.25 MB #Memory Used# [2025-03-06 06:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 03:24:05 [end_date_ymd] => 2025-03-06 06:24:05 [RateCDR] => 1 ) [2025-03-06 06:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 03:24:05' and `end` < '2025-03-06 06:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 06:24:17] Production.INFO: count ==122 [2025-03-06 06:24:17] Production.ERROR: pbx CDR StartTime 2025-03-06 03:24:05 - End Time 2025-03-06 06:24:05 [2025-03-06 06:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 06:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618624', 'tblTempUsageDetail_20' ) start [2025-03-06 06:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618624', 'tblTempUsageDetail_20' ) end [2025-03-06 06:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618624', 'tblTempVendorCDR_20' ) start [2025-03-06 06:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618624', 'tblTempVendorCDR_20' ) end [2025-03-06 06:24:17] Production.INFO: ProcessCDR(1,14618624,1,1,2) [2025-03-06 06:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14618624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 06:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14618624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 06:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14618624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 06:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14618624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 06:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618624', 'tblTempUsageDetail_20' ) start [2025-03-06 06:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618624', 'tblTempUsageDetail_20' ) end [2025-03-06 06:24:20] Production.ERROR: pbx prc_insertCDR start [2025-03-06 06:24:20] Production.ERROR: pbx prc_insertCDR end [2025-03-06 06:24:20] Production.INFO: ==27606== Releasing lock... [2025-03-06 06:24:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 06:24:20] Production.INFO: 28.25 MB #Memory Used# [2025-03-06 06:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 03:25:05 [end_date_ymd] => 2025-03-06 06:25:05 [RateCDR] => 1 ) [2025-03-06 06:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 03:25:05' and `end` < '2025-03-06 06:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 06:25:17] Production.INFO: count ==122 [2025-03-06 06:25:17] Production.ERROR: pbx CDR StartTime 2025-03-06 03:25:05 - End Time 2025-03-06 06:25:05 [2025-03-06 06:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618629', 'tblTempUsageDetail_20' ) start [2025-03-06 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618629', 'tblTempUsageDetail_20' ) end [2025-03-06 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618629', 'tblTempVendorCDR_20' ) start [2025-03-06 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618629', 'tblTempVendorCDR_20' ) end [2025-03-06 06:25:17] Production.INFO: ProcessCDR(1,14618629,1,1,2) [2025-03-06 06:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14618629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 06:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14618629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 06:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14618629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 06:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14618629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 06:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618629', 'tblTempUsageDetail_20' ) start [2025-03-06 06:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618629', 'tblTempUsageDetail_20' ) end [2025-03-06 06:25:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 06:25:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 06:25:21] Production.INFO: ==27685== Releasing lock... [2025-03-06 06:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 06:25:21] Production.INFO: 28.25 MB #Memory Used# [2025-03-06 06:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 03:26:05 [end_date_ymd] => 2025-03-06 06:26:05 [RateCDR] => 1 ) [2025-03-06 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-03-06 03:26:05' and `end` < '2025-03-06 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-03-06 06:26:17] Production.INFO: count ==122 [2025-03-06 06:26:17] Production.ERROR: pbx CDR StartTime 2025-03-06 03:26:05 - End Time 2025-03-06 06:26:05 [2025-03-06 06:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 06:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618630', 'tblTempUsageDetail_20' ) start [2025-03-06 06:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618630', 'tblTempUsageDetail_20' ) end [2025-03-06 06:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618630', 'tblTempVendorCDR_20' ) start [2025-03-06 06:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618630', 'tblTempVendorCDR_20' ) end [2025-03-06 06:26:17] Production.INFO: ProcessCDR(1,14618630,1,1,2) [2025-03-06 06:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14618630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 06:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14618630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 06:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14618630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 06:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14618630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 06:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618630', 'tblTempUsageDetail_20' ) start [2025-03-06 06:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618630', 'tblTempUsageDetail_20' ) end [2025-03-06 06:26:20] Production.ERROR: pbx prc_insertCDR start [2025-03-06 06:26:20] Production.ERROR: pbx prc_insertCDR end [2025-03-06 06:26:20] Production.INFO: ==27764== Releasing lock... [2025-03-06 06:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 06:26:20] Production.INFO: 28.25 MB #Memory Used# [2025-03-06 06:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 03:27:05 [end_date_ymd] => 2025-03-06 06:27:05 [RateCDR] => 1 ) [2025-03-06 06:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 03:27:05' and `end` < '2025-03-06 06:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 06:27:17] Production.INFO: count ==122 [2025-03-06 06:27:17] Production.ERROR: pbx CDR StartTime 2025-03-06 03:27:05 - End Time 2025-03-06 06:27:05 [2025-03-06 06:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 06:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618639', 'tblTempUsageDetail_20' ) start [2025-03-06 06:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618639', 'tblTempUsageDetail_20' ) end [2025-03-06 06:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618639', 'tblTempVendorCDR_20' ) start [2025-03-06 06:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618639', 'tblTempVendorCDR_20' ) end [2025-03-06 06:27:17] Production.INFO: ProcessCDR(1,14618639,1,1,2) [2025-03-06 06:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14618639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 06:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14618639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 06:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14618639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 06:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14618639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 06:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618639', 'tblTempUsageDetail_20' ) start [2025-03-06 06:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618639', 'tblTempUsageDetail_20' ) end [2025-03-06 06:27:20] Production.ERROR: pbx prc_insertCDR start [2025-03-06 06:27:20] Production.ERROR: pbx prc_insertCDR end [2025-03-06 06:27:20] Production.INFO: ==27844== Releasing lock... [2025-03-06 06:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 06:27:20] Production.INFO: 28.25 MB #Memory Used# [2025-03-06 06:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 03:28:06 [end_date_ymd] => 2025-03-06 06:28:06 [RateCDR] => 1 ) [2025-03-06 06:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 03:28:06' and `end` < '2025-03-06 06:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 06:28:18] Production.INFO: count ==122 [2025-03-06 06:28:18] Production.ERROR: pbx CDR StartTime 2025-03-06 03:28:06 - End Time 2025-03-06 06:28:06 [2025-03-06 06:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618644', 'tblTempUsageDetail_20' ) start [2025-03-06 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618644', 'tblTempUsageDetail_20' ) end [2025-03-06 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618644', 'tblTempVendorCDR_20' ) start [2025-03-06 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618644', 'tblTempVendorCDR_20' ) end [2025-03-06 06:28:18] Production.INFO: ProcessCDR(1,14618644,1,1,2) [2025-03-06 06:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14618644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 06:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14618644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 06:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14618644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 06:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14618644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 06:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618644', 'tblTempUsageDetail_20' ) start [2025-03-06 06:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618644', 'tblTempUsageDetail_20' ) end [2025-03-06 06:28:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 06:28:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 06:28:21] Production.INFO: ==27965== Releasing lock... [2025-03-06 06:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 06:28:21] Production.INFO: 28.25 MB #Memory Used# [2025-03-06 06:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 03:29:05 [end_date_ymd] => 2025-03-06 06:29:05 [RateCDR] => 1 ) [2025-03-06 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-03-06 03:29:05' and `end` < '2025-03-06 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-03-06 06:29:17] Production.INFO: count ==122 [2025-03-06 06:29:17] Production.ERROR: pbx CDR StartTime 2025-03-06 03:29:05 - End Time 2025-03-06 06:29:05 [2025-03-06 06:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 06:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618649', 'tblTempUsageDetail_20' ) start [2025-03-06 06:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618649', 'tblTempUsageDetail_20' ) end [2025-03-06 06:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618649', 'tblTempVendorCDR_20' ) start [2025-03-06 06:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618649', 'tblTempVendorCDR_20' ) end [2025-03-06 06:29:17] Production.INFO: ProcessCDR(1,14618649,1,1,2) [2025-03-06 06:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14618649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 06:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14618649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 06:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14618649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 06:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14618649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 06:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618649', 'tblTempUsageDetail_20' ) start [2025-03-06 06:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618649', 'tblTempUsageDetail_20' ) end [2025-03-06 06:29:20] Production.ERROR: pbx prc_insertCDR start [2025-03-06 06:29:20] Production.ERROR: pbx prc_insertCDR end [2025-03-06 06:29:20] Production.INFO: ==28044== Releasing lock... [2025-03-06 06:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 06:29:20] Production.INFO: 28.25 MB #Memory Used# [2025-03-06 06:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 03:30:07 [end_date_ymd] => 2025-03-06 06:30:07 [RateCDR] => 1 ) [2025-03-06 06:30: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-03-06 03:30:07' and `end` < '2025-03-06 06:30: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-03-06 06:30:19] Production.INFO: count ==132 [2025-03-06 06:30:19] Production.ERROR: pbx CDR StartTime 2025-03-06 03:30:07 - End Time 2025-03-06 06:30:07 [2025-03-06 06:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 06:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618655', 'tblTempUsageDetail_20' ) start [2025-03-06 06:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618655', 'tblTempUsageDetail_20' ) end [2025-03-06 06:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618655', 'tblTempVendorCDR_20' ) start [2025-03-06 06:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618655', 'tblTempVendorCDR_20' ) end [2025-03-06 06:30:19] Production.INFO: ProcessCDR(1,14618655,1,1,2) [2025-03-06 06:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14618655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 06:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14618655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 06:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14618655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 06:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14618655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 06:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618655', 'tblTempUsageDetail_20' ) start [2025-03-06 06:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618655', 'tblTempUsageDetail_20' ) end [2025-03-06 06:30:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 06:30:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 06:30:22] Production.INFO: ==28127== Releasing lock... [2025-03-06 06:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 06:30:22] Production.INFO: 28.5 MB #Memory Used# [2025-03-06 06:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 03:31:05 [end_date_ymd] => 2025-03-06 06:31:05 [RateCDR] => 1 ) [2025-03-06 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-03-06 03:31:05' and `end` < '2025-03-06 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-03-06 06:31:17] Production.INFO: count ==132 [2025-03-06 06:31:17] Production.ERROR: pbx CDR StartTime 2025-03-06 03:31:05 - End Time 2025-03-06 06:31:05 [2025-03-06 06:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 06:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618660', 'tblTempUsageDetail_20' ) start [2025-03-06 06:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618660', 'tblTempUsageDetail_20' ) end [2025-03-06 06:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618660', 'tblTempVendorCDR_20' ) start [2025-03-06 06:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618660', 'tblTempVendorCDR_20' ) end [2025-03-06 06:31:17] Production.INFO: ProcessCDR(1,14618660,1,1,2) [2025-03-06 06:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14618660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 06:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14618660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 06:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14618660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 06:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14618660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 06:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618660', 'tblTempUsageDetail_20' ) start [2025-03-06 06:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618660', 'tblTempUsageDetail_20' ) end [2025-03-06 06:31:20] Production.ERROR: pbx prc_insertCDR start [2025-03-06 06:31:20] Production.ERROR: pbx prc_insertCDR end [2025-03-06 06:31:21] Production.INFO: ==28210== Releasing lock... [2025-03-06 06:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 06:31:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-06 06:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 03:32:05 [end_date_ymd] => 2025-03-06 06:32:05 [RateCDR] => 1 ) [2025-03-06 06:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 03:32:05' and `end` < '2025-03-06 06:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 06:32:17] Production.INFO: count ==132 [2025-03-06 06:32:17] Production.ERROR: pbx CDR StartTime 2025-03-06 03:32:05 - End Time 2025-03-06 06:32:05 [2025-03-06 06:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 06:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618665', 'tblTempUsageDetail_20' ) start [2025-03-06 06:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618665', 'tblTempUsageDetail_20' ) end [2025-03-06 06:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618665', 'tblTempVendorCDR_20' ) start [2025-03-06 06:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618665', 'tblTempVendorCDR_20' ) end [2025-03-06 06:32:17] Production.INFO: ProcessCDR(1,14618665,1,1,2) [2025-03-06 06:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14618665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 06:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14618665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 06:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14618665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 06:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14618665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 06:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618665', 'tblTempUsageDetail_20' ) start [2025-03-06 06:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618665', 'tblTempUsageDetail_20' ) end [2025-03-06 06:32:20] Production.ERROR: pbx prc_insertCDR start [2025-03-06 06:32:20] Production.ERROR: pbx prc_insertCDR end [2025-03-06 06:32:20] Production.INFO: ==28285== Releasing lock... [2025-03-06 06:32:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 06:32:20] Production.INFO: 28.5 MB #Memory Used# [2025-03-06 06:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 03:33:05 [end_date_ymd] => 2025-03-06 06:33:05 [RateCDR] => 1 ) [2025-03-06 06:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 03:33:05' and `end` < '2025-03-06 06:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 06:33:17] Production.INFO: count ==132 [2025-03-06 06:33:17] Production.ERROR: pbx CDR StartTime 2025-03-06 03:33:05 - End Time 2025-03-06 06:33:05 [2025-03-06 06:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 06:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618670', 'tblTempUsageDetail_20' ) start [2025-03-06 06:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618670', 'tblTempUsageDetail_20' ) end [2025-03-06 06:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618670', 'tblTempVendorCDR_20' ) start [2025-03-06 06:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618670', 'tblTempVendorCDR_20' ) end [2025-03-06 06:33:17] Production.INFO: ProcessCDR(1,14618670,1,1,2) [2025-03-06 06:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14618670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 06:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14618670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 06:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14618670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 06:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14618670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 06:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618670', 'tblTempUsageDetail_20' ) start [2025-03-06 06:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618670', 'tblTempUsageDetail_20' ) end [2025-03-06 06:33:20] Production.ERROR: pbx prc_insertCDR start [2025-03-06 06:33:20] Production.ERROR: pbx prc_insertCDR end [2025-03-06 06:33:20] Production.INFO: ==28359== Releasing lock... [2025-03-06 06:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 06:33:20] Production.INFO: 28.5 MB #Memory Used# [2025-03-06 06:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 03:34:05 [end_date_ymd] => 2025-03-06 06:34:05 [RateCDR] => 1 ) [2025-03-06 06:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 03:34:05' and `end` < '2025-03-06 06:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 06:34:16] Production.INFO: count ==132 [2025-03-06 06:34:16] Production.ERROR: pbx CDR StartTime 2025-03-06 03:34:05 - End Time 2025-03-06 06:34:05 [2025-03-06 06:34:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 06:34:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618672', 'tblTempUsageDetail_20' ) start [2025-03-06 06:34:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618672', 'tblTempUsageDetail_20' ) end [2025-03-06 06:34:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618672', 'tblTempVendorCDR_20' ) start [2025-03-06 06:34:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618672', 'tblTempVendorCDR_20' ) end [2025-03-06 06:34:16] Production.INFO: ProcessCDR(1,14618672,1,1,2) [2025-03-06 06:34:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14618672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 06:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14618672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 06:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14618672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 06:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14618672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 06:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618672', 'tblTempUsageDetail_20' ) start [2025-03-06 06:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618672', 'tblTempUsageDetail_20' ) end [2025-03-06 06:34:20] Production.ERROR: pbx prc_insertCDR start [2025-03-06 06:34:20] Production.ERROR: pbx prc_insertCDR end [2025-03-06 06:34:20] Production.INFO: ==28439== Releasing lock... [2025-03-06 06:34:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 06:34:20] Production.INFO: 28.5 MB #Memory Used# [2025-03-06 06:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 03:35:05 [end_date_ymd] => 2025-03-06 06:35:05 [RateCDR] => 1 ) [2025-03-06 06:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 03:35:05' and `end` < '2025-03-06 06:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 06:35:17] Production.INFO: count ==132 [2025-03-06 06:35:17] Production.ERROR: pbx CDR StartTime 2025-03-06 03:35:05 - End Time 2025-03-06 06:35:05 [2025-03-06 06:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 06:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618680', 'tblTempUsageDetail_20' ) start [2025-03-06 06:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618680', 'tblTempUsageDetail_20' ) end [2025-03-06 06:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618680', 'tblTempVendorCDR_20' ) start [2025-03-06 06:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618680', 'tblTempVendorCDR_20' ) end [2025-03-06 06:35:17] Production.INFO: ProcessCDR(1,14618680,1,1,2) [2025-03-06 06:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14618680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 06:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14618680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 06:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14618680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 06:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14618680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 06:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618680', 'tblTempUsageDetail_20' ) start [2025-03-06 06:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618680', 'tblTempUsageDetail_20' ) end [2025-03-06 06:35:20] Production.ERROR: pbx prc_insertCDR start [2025-03-06 06:35:20] Production.ERROR: pbx prc_insertCDR end [2025-03-06 06:35:20] Production.INFO: ==28510== Releasing lock... [2025-03-06 06:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 06:35:20] Production.INFO: 28.5 MB #Memory Used# [2025-03-06 06:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 03:36:05 [end_date_ymd] => 2025-03-06 06:36:05 [RateCDR] => 1 ) [2025-03-06 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-03-06 03:36:05' and `end` < '2025-03-06 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-03-06 06:36:17] Production.INFO: count ==131 [2025-03-06 06:36:17] Production.ERROR: pbx CDR StartTime 2025-03-06 03:36:05 - End Time 2025-03-06 06:36:05 [2025-03-06 06:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 06:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618685', 'tblTempUsageDetail_20' ) start [2025-03-06 06:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618685', 'tblTempUsageDetail_20' ) end [2025-03-06 06:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618685', 'tblTempVendorCDR_20' ) start [2025-03-06 06:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618685', 'tblTempVendorCDR_20' ) end [2025-03-06 06:36:17] Production.INFO: ProcessCDR(1,14618685,1,1,2) [2025-03-06 06:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14618685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 06:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14618685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 06:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14618685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 06:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14618685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 06:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618685', 'tblTempUsageDetail_20' ) start [2025-03-06 06:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618685', 'tblTempUsageDetail_20' ) end [2025-03-06 06:36:20] Production.ERROR: pbx prc_insertCDR start [2025-03-06 06:36:20] Production.ERROR: pbx prc_insertCDR end [2025-03-06 06:36:20] Production.INFO: ==28588== Releasing lock... [2025-03-06 06:36:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 06:36:20] Production.INFO: 28.5 MB #Memory Used# [2025-03-06 06:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 03:37:05 [end_date_ymd] => 2025-03-06 06:37:05 [RateCDR] => 1 ) [2025-03-06 06:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 03:37:05' and `end` < '2025-03-06 06:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 06:37:17] Production.INFO: count ==131 [2025-03-06 06:37:17] Production.ERROR: pbx CDR StartTime 2025-03-06 03:37:05 - End Time 2025-03-06 06:37:05 [2025-03-06 06:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 06:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618690', 'tblTempUsageDetail_20' ) start [2025-03-06 06:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618690', 'tblTempUsageDetail_20' ) end [2025-03-06 06:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618690', 'tblTempVendorCDR_20' ) start [2025-03-06 06:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618690', 'tblTempVendorCDR_20' ) end [2025-03-06 06:37:17] Production.INFO: ProcessCDR(1,14618690,1,1,2) [2025-03-06 06:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14618690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 06:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14618690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 06:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14618690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 06:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14618690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 06:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618690', 'tblTempUsageDetail_20' ) start [2025-03-06 06:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618690', 'tblTempUsageDetail_20' ) end [2025-03-06 06:37:20] Production.ERROR: pbx prc_insertCDR start [2025-03-06 06:37:20] Production.ERROR: pbx prc_insertCDR end [2025-03-06 06:37:20] Production.INFO: ==28662== Releasing lock... [2025-03-06 06:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 06:37:20] Production.INFO: 28.5 MB #Memory Used# [2025-03-06 06:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 03:38:05 [end_date_ymd] => 2025-03-06 06:38:05 [RateCDR] => 1 ) [2025-03-06 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-03-06 03:38:05' and `end` < '2025-03-06 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-03-06 06:38:17] Production.INFO: count ==131 [2025-03-06 06:38:17] Production.ERROR: pbx CDR StartTime 2025-03-06 03:38:05 - End Time 2025-03-06 06:38:05 [2025-03-06 06:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 06:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618695', 'tblTempUsageDetail_20' ) start [2025-03-06 06:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618695', 'tblTempUsageDetail_20' ) end [2025-03-06 06:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618695', 'tblTempVendorCDR_20' ) start [2025-03-06 06:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618695', 'tblTempVendorCDR_20' ) end [2025-03-06 06:38:17] Production.INFO: ProcessCDR(1,14618695,1,1,2) [2025-03-06 06:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14618695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 06:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14618695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 06:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14618695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 06:38:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14618695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 06:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618695', 'tblTempUsageDetail_20' ) start [2025-03-06 06:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618695', 'tblTempUsageDetail_20' ) end [2025-03-06 06:38:20] Production.ERROR: pbx prc_insertCDR start [2025-03-06 06:38:20] Production.ERROR: pbx prc_insertCDR end [2025-03-06 06:38:20] Production.INFO: ==28737== Releasing lock... [2025-03-06 06:38:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 06:38:20] Production.INFO: 28.5 MB #Memory Used# [2025-03-06 06:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 03:39:05 [end_date_ymd] => 2025-03-06 06:39:05 [RateCDR] => 1 ) [2025-03-06 06:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 03:39:05' and `end` < '2025-03-06 06:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 06:39:17] Production.INFO: count ==131 [2025-03-06 06:39:17] Production.ERROR: pbx CDR StartTime 2025-03-06 03:39:05 - End Time 2025-03-06 06:39:05 [2025-03-06 06:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 06:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618700', 'tblTempUsageDetail_20' ) start [2025-03-06 06:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618700', 'tblTempUsageDetail_20' ) end [2025-03-06 06:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618700', 'tblTempVendorCDR_20' ) start [2025-03-06 06:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618700', 'tblTempVendorCDR_20' ) end [2025-03-06 06:39:17] Production.INFO: ProcessCDR(1,14618700,1,1,2) [2025-03-06 06:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14618700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 06:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14618700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 06:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14618700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 06:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14618700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 06:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618700', 'tblTempUsageDetail_20' ) start [2025-03-06 06:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618700', 'tblTempUsageDetail_20' ) end [2025-03-06 06:39:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 06:39:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 06:39:21] Production.INFO: ==28811== Releasing lock... [2025-03-06 06:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 06:39:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-06 06:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 03:40:06 [end_date_ymd] => 2025-03-06 06:40:06 [RateCDR] => 1 ) [2025-03-06 06:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 03:40:06' and `end` < '2025-03-06 06:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 06:40:18] Production.INFO: count ==127 [2025-03-06 06:40:18] Production.ERROR: pbx CDR StartTime 2025-03-06 03:40:06 - End Time 2025-03-06 06:40:06 [2025-03-06 06:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618706', 'tblTempUsageDetail_20' ) start [2025-03-06 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618706', 'tblTempUsageDetail_20' ) end [2025-03-06 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618706', 'tblTempVendorCDR_20' ) start [2025-03-06 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618706', 'tblTempVendorCDR_20' ) end [2025-03-06 06:40:18] Production.INFO: ProcessCDR(1,14618706,1,1,2) [2025-03-06 06:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14618706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 06:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14618706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 06:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14618706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 06:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14618706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 06:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618706', 'tblTempUsageDetail_20' ) start [2025-03-06 06:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618706', 'tblTempUsageDetail_20' ) end [2025-03-06 06:40:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 06:40:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 06:40:21] Production.INFO: ==28891== Releasing lock... [2025-03-06 06:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 06:40:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-06 06:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 03:41:06 [end_date_ymd] => 2025-03-06 06:41:06 [RateCDR] => 1 ) [2025-03-06 06:41:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 03:41:06' and `end` < '2025-03-06 06:41:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 06:41:18] Production.INFO: count ==123 [2025-03-06 06:41:18] Production.ERROR: pbx CDR StartTime 2025-03-06 03:41:06 - End Time 2025-03-06 06:41:06 [2025-03-06 06:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618711', 'tblTempUsageDetail_20' ) start [2025-03-06 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618711', 'tblTempUsageDetail_20' ) end [2025-03-06 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618711', 'tblTempVendorCDR_20' ) start [2025-03-06 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618711', 'tblTempVendorCDR_20' ) end [2025-03-06 06:41:18] Production.INFO: ProcessCDR(1,14618711,1,1,2) [2025-03-06 06:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14618711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 06:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14618711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 06:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14618711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 06:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14618711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 06:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618711', 'tblTempUsageDetail_20' ) start [2025-03-06 06:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618711', 'tblTempUsageDetail_20' ) end [2025-03-06 06:41:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 06:41:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 06:41:21] Production.INFO: ==28966== Releasing lock... [2025-03-06 06:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 06:41:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-06 06:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 03:42:05 [end_date_ymd] => 2025-03-06 06:42:05 [RateCDR] => 1 ) [2025-03-06 06:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 03:42:05' and `end` < '2025-03-06 06:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 06:42:17] Production.INFO: count ==123 [2025-03-06 06:42:17] Production.ERROR: pbx CDR StartTime 2025-03-06 03:42:05 - End Time 2025-03-06 06:42:05 [2025-03-06 06:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 06:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618716', 'tblTempUsageDetail_20' ) start [2025-03-06 06:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618716', 'tblTempUsageDetail_20' ) end [2025-03-06 06:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618716', 'tblTempVendorCDR_20' ) start [2025-03-06 06:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618716', 'tblTempVendorCDR_20' ) end [2025-03-06 06:42:17] Production.INFO: ProcessCDR(1,14618716,1,1,2) [2025-03-06 06:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14618716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 06:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14618716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 06:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14618716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 06:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14618716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 06:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618716', 'tblTempUsageDetail_20' ) start [2025-03-06 06:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618716', 'tblTempUsageDetail_20' ) end [2025-03-06 06:42:20] Production.ERROR: pbx prc_insertCDR start [2025-03-06 06:42:20] Production.ERROR: pbx prc_insertCDR end [2025-03-06 06:42:20] Production.INFO: ==29040== Releasing lock... [2025-03-06 06:42:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 06:42:20] Production.INFO: 28.5 MB #Memory Used# [2025-03-06 06:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 03:43:05 [end_date_ymd] => 2025-03-06 06:43:05 [RateCDR] => 1 ) [2025-03-06 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-03-06 03:43:05' and `end` < '2025-03-06 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-03-06 06:43:17] Production.INFO: count ==123 [2025-03-06 06:43:17] Production.ERROR: pbx CDR StartTime 2025-03-06 03:43:05 - End Time 2025-03-06 06:43:05 [2025-03-06 06:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 06:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618721', 'tblTempUsageDetail_20' ) start [2025-03-06 06:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618721', 'tblTempUsageDetail_20' ) end [2025-03-06 06:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618721', 'tblTempVendorCDR_20' ) start [2025-03-06 06:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618721', 'tblTempVendorCDR_20' ) end [2025-03-06 06:43:17] Production.INFO: ProcessCDR(1,14618721,1,1,2) [2025-03-06 06:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14618721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 06:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14618721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 06:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14618721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 06:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14618721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 06:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618721', 'tblTempUsageDetail_20' ) start [2025-03-06 06:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618721', 'tblTempUsageDetail_20' ) end [2025-03-06 06:43:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 06:43:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 06:43:21] Production.INFO: ==29113== Releasing lock... [2025-03-06 06:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 06:43:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-06 06:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 03:44:05 [end_date_ymd] => 2025-03-06 06:44:05 [RateCDR] => 1 ) [2025-03-06 06:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 03:44:05' and `end` < '2025-03-06 06:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 06:44:17] Production.INFO: count ==123 [2025-03-06 06:44:17] Production.ERROR: pbx CDR StartTime 2025-03-06 03:44:05 - End Time 2025-03-06 06:44:05 [2025-03-06 06:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 06:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618726', 'tblTempUsageDetail_20' ) start [2025-03-06 06:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618726', 'tblTempUsageDetail_20' ) end [2025-03-06 06:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618726', 'tblTempVendorCDR_20' ) start [2025-03-06 06:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618726', 'tblTempVendorCDR_20' ) end [2025-03-06 06:44:17] Production.INFO: ProcessCDR(1,14618726,1,1,2) [2025-03-06 06:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14618726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 06:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14618726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 06:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14618726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 06:44:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14618726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 06:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618726', 'tblTempUsageDetail_20' ) start [2025-03-06 06:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618726', 'tblTempUsageDetail_20' ) end [2025-03-06 06:44:20] Production.ERROR: pbx prc_insertCDR start [2025-03-06 06:44:20] Production.ERROR: pbx prc_insertCDR end [2025-03-06 06:44:20] Production.INFO: ==29227== Releasing lock... [2025-03-06 06:44:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 06:44:20] Production.INFO: 28.5 MB #Memory Used# [2025-03-06 06:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 03:45:05 [end_date_ymd] => 2025-03-06 06:45:05 [RateCDR] => 1 ) [2025-03-06 06:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 03:45:05' and `end` < '2025-03-06 06:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 06:45:17] Production.INFO: count ==123 [2025-03-06 06:45:17] Production.ERROR: pbx CDR StartTime 2025-03-06 03:45:05 - End Time 2025-03-06 06:45:05 [2025-03-06 06:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 06:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618731', 'tblTempUsageDetail_20' ) start [2025-03-06 06:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618731', 'tblTempUsageDetail_20' ) end [2025-03-06 06:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618731', 'tblTempVendorCDR_20' ) start [2025-03-06 06:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618731', 'tblTempVendorCDR_20' ) end [2025-03-06 06:45:17] Production.INFO: ProcessCDR(1,14618731,1,1,2) [2025-03-06 06:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14618731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 06:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14618731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 06:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14618731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 06:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14618731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 06:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618731', 'tblTempUsageDetail_20' ) start [2025-03-06 06:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618731', 'tblTempUsageDetail_20' ) end [2025-03-06 06:45:20] Production.ERROR: pbx prc_insertCDR start [2025-03-06 06:45:20] Production.ERROR: pbx prc_insertCDR end [2025-03-06 06:45:20] Production.INFO: ==29303== Releasing lock... [2025-03-06 06:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 06:45:20] Production.INFO: 28.5 MB #Memory Used# [2025-03-06 06:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 03:46:06 [end_date_ymd] => 2025-03-06 06:46:06 [RateCDR] => 1 ) [2025-03-06 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-03-06 03:46:06' and `end` < '2025-03-06 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-03-06 06:46:18] Production.INFO: count ==123 [2025-03-06 06:46:18] Production.ERROR: pbx CDR StartTime 2025-03-06 03:46:06 - End Time 2025-03-06 06:46:06 [2025-03-06 06:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 06:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618736', 'tblTempUsageDetail_20' ) start [2025-03-06 06:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618736', 'tblTempUsageDetail_20' ) end [2025-03-06 06:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618736', 'tblTempVendorCDR_20' ) start [2025-03-06 06:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618736', 'tblTempVendorCDR_20' ) end [2025-03-06 06:46:18] Production.INFO: ProcessCDR(1,14618736,1,1,2) [2025-03-06 06:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14618736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 06:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14618736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 06:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14618736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 06:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14618736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 06:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618736', 'tblTempUsageDetail_20' ) start [2025-03-06 06:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618736', 'tblTempUsageDetail_20' ) end [2025-03-06 06:46:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 06:46:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 06:46:21] Production.INFO: ==29378== Releasing lock... [2025-03-06 06:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 06:46:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-06 06:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 03:47:05 [end_date_ymd] => 2025-03-06 06:47:05 [RateCDR] => 1 ) [2025-03-06 06:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 03:47:05' and `end` < '2025-03-06 06:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 06:47:17] Production.INFO: count ==123 [2025-03-06 06:47:17] Production.ERROR: pbx CDR StartTime 2025-03-06 03:47:05 - End Time 2025-03-06 06:47:05 [2025-03-06 06:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 06:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618741', 'tblTempUsageDetail_20' ) start [2025-03-06 06:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618741', 'tblTempUsageDetail_20' ) end [2025-03-06 06:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618741', 'tblTempVendorCDR_20' ) start [2025-03-06 06:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618741', 'tblTempVendorCDR_20' ) end [2025-03-06 06:47:17] Production.INFO: ProcessCDR(1,14618741,1,1,2) [2025-03-06 06:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14618741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 06:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14618741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 06:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14618741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 06:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14618741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 06:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618741', 'tblTempUsageDetail_20' ) start [2025-03-06 06:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618741', 'tblTempUsageDetail_20' ) end [2025-03-06 06:47:20] Production.ERROR: pbx prc_insertCDR start [2025-03-06 06:47:20] Production.ERROR: pbx prc_insertCDR end [2025-03-06 06:47:20] Production.INFO: ==29451== Releasing lock... [2025-03-06 06:47:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 06:47:20] Production.INFO: 28.5 MB #Memory Used# [2025-03-06 06:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 03:48:06 [end_date_ymd] => 2025-03-06 06:48:06 [RateCDR] => 1 ) [2025-03-06 06: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-03-06 03:48:06' and `end` < '2025-03-06 06: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-03-06 06:48:18] Production.INFO: count ==129 [2025-03-06 06:48:18] Production.ERROR: pbx CDR StartTime 2025-03-06 03:48:06 - End Time 2025-03-06 06:48:06 [2025-03-06 06:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618746', 'tblTempUsageDetail_20' ) start [2025-03-06 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618746', 'tblTempUsageDetail_20' ) end [2025-03-06 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618746', 'tblTempVendorCDR_20' ) start [2025-03-06 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618746', 'tblTempVendorCDR_20' ) end [2025-03-06 06:48:18] Production.INFO: ProcessCDR(1,14618746,1,1,2) [2025-03-06 06:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14618746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 06:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14618746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 06:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14618746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 06:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14618746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 06:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618746', 'tblTempUsageDetail_20' ) start [2025-03-06 06:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618746', 'tblTempUsageDetail_20' ) end [2025-03-06 06:48:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 06:48:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 06:48:21] Production.INFO: ==29527== Releasing lock... [2025-03-06 06:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 06:48:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-06 06:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 03:49:05 [end_date_ymd] => 2025-03-06 06:49:05 [RateCDR] => 1 ) [2025-03-06 06:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 03:49:05' and `end` < '2025-03-06 06:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 06:49:17] Production.INFO: count ==129 [2025-03-06 06:49:17] Production.ERROR: pbx CDR StartTime 2025-03-06 03:49:05 - End Time 2025-03-06 06:49:05 [2025-03-06 06:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 06:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618751', 'tblTempUsageDetail_20' ) start [2025-03-06 06:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618751', 'tblTempUsageDetail_20' ) end [2025-03-06 06:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618751', 'tblTempVendorCDR_20' ) start [2025-03-06 06:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618751', 'tblTempVendorCDR_20' ) end [2025-03-06 06:49:17] Production.INFO: ProcessCDR(1,14618751,1,1,2) [2025-03-06 06:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14618751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 06:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14618751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 06:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14618751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 06:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14618751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 06:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618751', 'tblTempUsageDetail_20' ) start [2025-03-06 06:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618751', 'tblTempUsageDetail_20' ) end [2025-03-06 06:49:20] Production.ERROR: pbx prc_insertCDR start [2025-03-06 06:49:20] Production.ERROR: pbx prc_insertCDR end [2025-03-06 06:49:20] Production.INFO: ==29600== Releasing lock... [2025-03-06 06:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 06:49:20] Production.INFO: 28.5 MB #Memory Used# [2025-03-06 06:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 03:50:06 [end_date_ymd] => 2025-03-06 06:50:06 [RateCDR] => 1 ) [2025-03-06 06: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-03-06 03:50:06' and `end` < '2025-03-06 06: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-03-06 06:50:18] Production.INFO: count ==131 [2025-03-06 06:50:18] Production.ERROR: pbx CDR StartTime 2025-03-06 03:50:06 - End Time 2025-03-06 06:50:06 [2025-03-06 06:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 06:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618757', 'tblTempUsageDetail_20' ) start [2025-03-06 06:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618757', 'tblTempUsageDetail_20' ) end [2025-03-06 06:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618757', 'tblTempVendorCDR_20' ) start [2025-03-06 06:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618757', 'tblTempVendorCDR_20' ) end [2025-03-06 06:50:18] Production.INFO: ProcessCDR(1,14618757,1,1,2) [2025-03-06 06:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14618757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 06:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14618757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 06:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14618757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 06:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14618757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 06:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618757', 'tblTempUsageDetail_20' ) start [2025-03-06 06:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618757', 'tblTempUsageDetail_20' ) end [2025-03-06 06:50:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 06:50:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 06:50:22] Production.INFO: ==29678== Releasing lock... [2025-03-06 06:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 06:50:22] Production.INFO: 28.5 MB #Memory Used# [2025-03-06 06:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 03:51:05 [end_date_ymd] => 2025-03-06 06:51:05 [RateCDR] => 1 ) [2025-03-06 06:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 03:51:05' and `end` < '2025-03-06 06:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 06:51:17] Production.INFO: count ==131 [2025-03-06 06:51:17] Production.ERROR: pbx CDR StartTime 2025-03-06 03:51:05 - End Time 2025-03-06 06:51:05 [2025-03-06 06:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 06:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618762', 'tblTempUsageDetail_20' ) start [2025-03-06 06:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618762', 'tblTempUsageDetail_20' ) end [2025-03-06 06:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618762', 'tblTempVendorCDR_20' ) start [2025-03-06 06:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618762', 'tblTempVendorCDR_20' ) end [2025-03-06 06:51:17] Production.INFO: ProcessCDR(1,14618762,1,1,2) [2025-03-06 06:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14618762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 06:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14618762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 06:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14618762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 06:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14618762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 06:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618762', 'tblTempUsageDetail_20' ) start [2025-03-06 06:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618762', 'tblTempUsageDetail_20' ) end [2025-03-06 06:51:20] Production.ERROR: pbx prc_insertCDR start [2025-03-06 06:51:20] Production.ERROR: pbx prc_insertCDR end [2025-03-06 06:51:20] Production.INFO: ==29754== Releasing lock... [2025-03-06 06:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 06:51:20] Production.INFO: 28.5 MB #Memory Used# [2025-03-06 06:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 03:52:05 [end_date_ymd] => 2025-03-06 06:52:05 [RateCDR] => 1 ) [2025-03-06 06:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 03:52:05' and `end` < '2025-03-06 06:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 06:52:17] Production.INFO: count ==131 [2025-03-06 06:52:17] Production.ERROR: pbx CDR StartTime 2025-03-06 03:52:05 - End Time 2025-03-06 06:52:05 [2025-03-06 06:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 06:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618767', 'tblTempUsageDetail_20' ) start [2025-03-06 06:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618767', 'tblTempUsageDetail_20' ) end [2025-03-06 06:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618767', 'tblTempVendorCDR_20' ) start [2025-03-06 06:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618767', 'tblTempVendorCDR_20' ) end [2025-03-06 06:52:17] Production.INFO: ProcessCDR(1,14618767,1,1,2) [2025-03-06 06:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14618767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 06:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14618767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 06:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14618767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 06:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14618767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 06:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618767', 'tblTempUsageDetail_20' ) start [2025-03-06 06:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618767', 'tblTempUsageDetail_20' ) end [2025-03-06 06:52:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 06:52:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 06:52:21] Production.INFO: ==29831== Releasing lock... [2025-03-06 06:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 06:52:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-06 06:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 03:53:05 [end_date_ymd] => 2025-03-06 06:53:05 [RateCDR] => 1 ) [2025-03-06 06: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-03-06 03:53:05' and `end` < '2025-03-06 06:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 06:53:17] Production.INFO: count ==131 [2025-03-06 06:53:17] Production.ERROR: pbx CDR StartTime 2025-03-06 03:53:05 - End Time 2025-03-06 06:53:05 [2025-03-06 06:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 06:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618772', 'tblTempUsageDetail_20' ) start [2025-03-06 06:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618772', 'tblTempUsageDetail_20' ) end [2025-03-06 06:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618772', 'tblTempVendorCDR_20' ) start [2025-03-06 06:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618772', 'tblTempVendorCDR_20' ) end [2025-03-06 06:53:17] Production.INFO: ProcessCDR(1,14618772,1,1,2) [2025-03-06 06:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14618772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 06:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14618772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 06:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14618772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 06:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14618772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 06:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618772', 'tblTempUsageDetail_20' ) start [2025-03-06 06:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618772', 'tblTempUsageDetail_20' ) end [2025-03-06 06:53:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 06:53:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 06:53:21] Production.INFO: ==29904== Releasing lock... [2025-03-06 06:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 06:53:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-06 06:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 03:54:05 [end_date_ymd] => 2025-03-06 06:54:05 [RateCDR] => 1 ) [2025-03-06 06:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 03:54:05' and `end` < '2025-03-06 06:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 06:54:17] Production.INFO: count ==135 [2025-03-06 06:54:17] Production.ERROR: pbx CDR StartTime 2025-03-06 03:54:05 - End Time 2025-03-06 06:54:05 [2025-03-06 06:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 06:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618777', 'tblTempUsageDetail_20' ) start [2025-03-06 06:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618777', 'tblTempUsageDetail_20' ) end [2025-03-06 06:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618777', 'tblTempVendorCDR_20' ) start [2025-03-06 06:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618777', 'tblTempVendorCDR_20' ) end [2025-03-06 06:54:17] Production.INFO: ProcessCDR(1,14618777,1,1,2) [2025-03-06 06:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14618777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 06:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14618777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 06:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14618777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 06:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14618777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 06:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618777', 'tblTempUsageDetail_20' ) start [2025-03-06 06:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618777', 'tblTempUsageDetail_20' ) end [2025-03-06 06:54:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 06:54:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 06:54:21] Production.INFO: ==29975== Releasing lock... [2025-03-06 06:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 06:54:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-06 06:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 03:55:05 [end_date_ymd] => 2025-03-06 06:55:05 [RateCDR] => 1 ) [2025-03-06 06:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 03:55:05' and `end` < '2025-03-06 06:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 06:55:17] Production.INFO: count ==135 [2025-03-06 06:55:17] Production.ERROR: pbx CDR StartTime 2025-03-06 03:55:05 - End Time 2025-03-06 06:55:05 [2025-03-06 06:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 06:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618782', 'tblTempUsageDetail_20' ) start [2025-03-06 06:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618782', 'tblTempUsageDetail_20' ) end [2025-03-06 06:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618782', 'tblTempVendorCDR_20' ) start [2025-03-06 06:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618782', 'tblTempVendorCDR_20' ) end [2025-03-06 06:55:17] Production.INFO: ProcessCDR(1,14618782,1,1,2) [2025-03-06 06:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14618782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 06:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14618782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 06:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14618782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 06:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14618782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 06:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618782', 'tblTempUsageDetail_20' ) start [2025-03-06 06:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618782', 'tblTempUsageDetail_20' ) end [2025-03-06 06:55:20] Production.ERROR: pbx prc_insertCDR start [2025-03-06 06:55:20] Production.ERROR: pbx prc_insertCDR end [2025-03-06 06:55:20] Production.INFO: ==30046== Releasing lock... [2025-03-06 06:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 06:55:20] Production.INFO: 28.5 MB #Memory Used# [2025-03-06 06:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 03:56:06 [end_date_ymd] => 2025-03-06 06:56:06 [RateCDR] => 1 ) [2025-03-06 06: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-03-06 03:56:06' and `end` < '2025-03-06 06: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-03-06 06:56:18] Production.INFO: count ==135 [2025-03-06 06:56:18] Production.ERROR: pbx CDR StartTime 2025-03-06 03:56:06 - End Time 2025-03-06 06:56:06 [2025-03-06 06:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618787', 'tblTempUsageDetail_20' ) start [2025-03-06 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618787', 'tblTempUsageDetail_20' ) end [2025-03-06 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618787', 'tblTempVendorCDR_20' ) start [2025-03-06 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618787', 'tblTempVendorCDR_20' ) end [2025-03-06 06:56:18] Production.INFO: ProcessCDR(1,14618787,1,1,2) [2025-03-06 06:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14618787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 06:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14618787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 06:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14618787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 06:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14618787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 06:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618787', 'tblTempUsageDetail_20' ) start [2025-03-06 06:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618787', 'tblTempUsageDetail_20' ) end [2025-03-06 06:56:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 06:56:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 06:56:21] Production.INFO: ==30120== Releasing lock... [2025-03-06 06:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 06:56:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-06 06:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 03:57:05 [end_date_ymd] => 2025-03-06 06:57:05 [RateCDR] => 1 ) [2025-03-06 06:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 03:57:05' and `end` < '2025-03-06 06:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 06:57:17] Production.INFO: count ==135 [2025-03-06 06:57:17] Production.ERROR: pbx CDR StartTime 2025-03-06 03:57:05 - End Time 2025-03-06 06:57:05 [2025-03-06 06:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 06:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618792', 'tblTempUsageDetail_20' ) start [2025-03-06 06:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618792', 'tblTempUsageDetail_20' ) end [2025-03-06 06:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618792', 'tblTempVendorCDR_20' ) start [2025-03-06 06:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618792', 'tblTempVendorCDR_20' ) end [2025-03-06 06:57:17] Production.INFO: ProcessCDR(1,14618792,1,1,2) [2025-03-06 06:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14618792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 06:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14618792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 06:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14618792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 06:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14618792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 06:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618792', 'tblTempUsageDetail_20' ) start [2025-03-06 06:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618792', 'tblTempUsageDetail_20' ) end [2025-03-06 06:57:20] Production.ERROR: pbx prc_insertCDR start [2025-03-06 06:57:20] Production.ERROR: pbx prc_insertCDR end [2025-03-06 06:57:20] Production.INFO: ==30191== Releasing lock... [2025-03-06 06:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 06:57:20] Production.INFO: 28.5 MB #Memory Used# [2025-03-06 06:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 03:58:05 [end_date_ymd] => 2025-03-06 06:58:05 [RateCDR] => 1 ) [2025-03-06 06:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 03:58:05' and `end` < '2025-03-06 06:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 06:58:17] Production.INFO: count ==135 [2025-03-06 06:58:17] Production.ERROR: pbx CDR StartTime 2025-03-06 03:58:05 - End Time 2025-03-06 06:58:05 [2025-03-06 06:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 06:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618797', 'tblTempUsageDetail_20' ) start [2025-03-06 06:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618797', 'tblTempUsageDetail_20' ) end [2025-03-06 06:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618797', 'tblTempVendorCDR_20' ) start [2025-03-06 06:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618797', 'tblTempVendorCDR_20' ) end [2025-03-06 06:58:17] Production.INFO: ProcessCDR(1,14618797,1,1,2) [2025-03-06 06:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14618797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 06:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14618797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 06:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14618797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 06:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14618797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 06:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618797', 'tblTempUsageDetail_20' ) start [2025-03-06 06:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618797', 'tblTempUsageDetail_20' ) end [2025-03-06 06:58:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 06:58:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 06:58:21] Production.INFO: ==30266== Releasing lock... [2025-03-06 06:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 06:58:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-06 06:59:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 03:59:04 [end_date_ymd] => 2025-03-06 06:59:04 [RateCDR] => 1 ) [2025-03-06 06: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-03-06 03:59:04' and `end` < '2025-03-06 06: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-03-06 06:59:16] Production.INFO: count ==135 [2025-03-06 06:59:16] Production.ERROR: pbx CDR StartTime 2025-03-06 03:59:04 - End Time 2025-03-06 06:59:04 [2025-03-06 06:59:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 06:59:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618802', 'tblTempUsageDetail_20' ) start [2025-03-06 06:59:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618802', 'tblTempUsageDetail_20' ) end [2025-03-06 06:59:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618802', 'tblTempVendorCDR_20' ) start [2025-03-06 06:59:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618802', 'tblTempVendorCDR_20' ) end [2025-03-06 06:59:16] Production.INFO: ProcessCDR(1,14618802,1,1,2) [2025-03-06 06:59:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14618802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 06:59:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14618802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 06:59:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14618802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 06:59:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14618802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 06:59:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618802', 'tblTempUsageDetail_20' ) start [2025-03-06 06:59:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618802', 'tblTempUsageDetail_20' ) end [2025-03-06 06:59:19] Production.ERROR: pbx prc_insertCDR start [2025-03-06 06:59:19] Production.ERROR: pbx prc_insertCDR end [2025-03-06 06:59:19] Production.INFO: ==30379== Releasing lock... [2025-03-06 06:59:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 06:59:19] Production.INFO: 28.5 MB #Memory Used# [2025-03-06 07:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 04:00:06 [end_date_ymd] => 2025-03-06 07:00:06 [RateCDR] => 1 ) [2025-03-06 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-03-06 04:00:06' and `end` < '2025-03-06 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-03-06 07:00:18] Production.INFO: count ==135 [2025-03-06 07:00:18] Production.ERROR: pbx CDR StartTime 2025-03-06 04:00:06 - End Time 2025-03-06 07:00:06 [2025-03-06 07:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618808', 'tblTempUsageDetail_20' ) start [2025-03-06 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618808', 'tblTempUsageDetail_20' ) end [2025-03-06 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618808', 'tblTempVendorCDR_20' ) start [2025-03-06 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618808', 'tblTempVendorCDR_20' ) end [2025-03-06 07:00:18] Production.INFO: ProcessCDR(1,14618808,1,1,2) [2025-03-06 07:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14618808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 07:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14618808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 07:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14618808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 07:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14618808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 07:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618808', 'tblTempUsageDetail_20' ) start [2025-03-06 07:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618808', 'tblTempUsageDetail_20' ) end [2025-03-06 07:00:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 07:00:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 07:00:21] Production.INFO: ==30459== Releasing lock... [2025-03-06 07:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 07:00:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-06 07:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 04:01:05 [end_date_ymd] => 2025-03-06 07:01:05 [RateCDR] => 1 ) [2025-03-06 07:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 04:01:05' and `end` < '2025-03-06 07:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 07:01:17] Production.INFO: count ==135 [2025-03-06 07:01:18] Production.ERROR: pbx CDR StartTime 2025-03-06 04:01:05 - End Time 2025-03-06 07:01:05 [2025-03-06 07:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 07:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618813', 'tblTempUsageDetail_20' ) start [2025-03-06 07:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618813', 'tblTempUsageDetail_20' ) end [2025-03-06 07:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618813', 'tblTempVendorCDR_20' ) start [2025-03-06 07:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618813', 'tblTempVendorCDR_20' ) end [2025-03-06 07:01:18] Production.INFO: ProcessCDR(1,14618813,1,1,2) [2025-03-06 07:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14618813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 07:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14618813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 07:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14618813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 07:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14618813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 07:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618813', 'tblTempUsageDetail_20' ) start [2025-03-06 07:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618813', 'tblTempUsageDetail_20' ) end [2025-03-06 07:01:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 07:01:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 07:01:21] Production.INFO: ==30545== Releasing lock... [2025-03-06 07:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 07:01:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-06 07:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 04:02:06 [end_date_ymd] => 2025-03-06 07:02:06 [RateCDR] => 1 ) [2025-03-06 07: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-03-06 04:02:06' and `end` < '2025-03-06 07: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-03-06 07:02:18] Production.INFO: count ==135 [2025-03-06 07:02:18] Production.ERROR: pbx CDR StartTime 2025-03-06 04:02:06 - End Time 2025-03-06 07:02:06 [2025-03-06 07:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 07:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618818', 'tblTempUsageDetail_20' ) start [2025-03-06 07:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618818', 'tblTempUsageDetail_20' ) end [2025-03-06 07:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618818', 'tblTempVendorCDR_20' ) start [2025-03-06 07:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618818', 'tblTempVendorCDR_20' ) end [2025-03-06 07:02:18] Production.INFO: ProcessCDR(1,14618818,1,1,2) [2025-03-06 07:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14618818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 07:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14618818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 07:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14618818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 07:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14618818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 07:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618818', 'tblTempUsageDetail_20' ) start [2025-03-06 07:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618818', 'tblTempUsageDetail_20' ) end [2025-03-06 07:02:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 07:02:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 07:02:21] Production.INFO: ==30695== Releasing lock... [2025-03-06 07:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 07:02:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-06 07:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 04:03:06 [end_date_ymd] => 2025-03-06 07:03:06 [RateCDR] => 1 ) [2025-03-06 07:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 04:03:06' and `end` < '2025-03-06 07:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 07:03:19] Production.INFO: count ==135 [2025-03-06 07:03:19] Production.ERROR: pbx CDR StartTime 2025-03-06 04:03:06 - End Time 2025-03-06 07:03:06 [2025-03-06 07:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 07:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618823', 'tblTempUsageDetail_20' ) start [2025-03-06 07:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618823', 'tblTempUsageDetail_20' ) end [2025-03-06 07:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618823', 'tblTempVendorCDR_20' ) start [2025-03-06 07:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618823', 'tblTempVendorCDR_20' ) end [2025-03-06 07:03:19] Production.INFO: ProcessCDR(1,14618823,1,1,2) [2025-03-06 07:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14618823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 07:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14618823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 07:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14618823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 07:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14618823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 07:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618823', 'tblTempUsageDetail_20' ) start [2025-03-06 07:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618823', 'tblTempUsageDetail_20' ) end [2025-03-06 07:03:23] Production.ERROR: pbx prc_insertCDR start [2025-03-06 07:03:23] Production.ERROR: pbx prc_insertCDR end [2025-03-06 07:03:23] Production.INFO: ==30767== Releasing lock... [2025-03-06 07:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 07:03:23] Production.INFO: 28.5 MB #Memory Used# [2025-03-06 07:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 04:04:06 [end_date_ymd] => 2025-03-06 07:04:06 [RateCDR] => 1 ) [2025-03-06 07:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 04:04:06' and `end` < '2025-03-06 07:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 07:04:20] Production.INFO: count ==135 [2025-03-06 07:04:20] Production.ERROR: pbx CDR StartTime 2025-03-06 04:04:06 - End Time 2025-03-06 07:04:06 [2025-03-06 07:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 07:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618828', 'tblTempUsageDetail_20' ) start [2025-03-06 07:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618828', 'tblTempUsageDetail_20' ) end [2025-03-06 07:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618828', 'tblTempVendorCDR_20' ) start [2025-03-06 07:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618828', 'tblTempVendorCDR_20' ) end [2025-03-06 07:04:20] Production.INFO: ProcessCDR(1,14618828,1,1,2) [2025-03-06 07:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14618828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 07:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14618828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 07:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14618828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 07:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14618828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 07:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618828', 'tblTempUsageDetail_20' ) start [2025-03-06 07:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618828', 'tblTempUsageDetail_20' ) end [2025-03-06 07:04:23] Production.ERROR: pbx prc_insertCDR start [2025-03-06 07:04:23] Production.ERROR: pbx prc_insertCDR end [2025-03-06 07:04:23] Production.INFO: ==30843== Releasing lock... [2025-03-06 07:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 07:04:23] Production.INFO: 28.5 MB #Memory Used# [2025-03-06 07:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 04:05:06 [end_date_ymd] => 2025-03-06 07:05:06 [RateCDR] => 1 ) [2025-03-06 07:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 04:05:06' and `end` < '2025-03-06 07:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 07:05:18] Production.INFO: count ==136 [2025-03-06 07:05:18] Production.ERROR: pbx CDR StartTime 2025-03-06 04:05:06 - End Time 2025-03-06 07:05:06 [2025-03-06 07:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 07:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618833', 'tblTempUsageDetail_20' ) start [2025-03-06 07:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618833', 'tblTempUsageDetail_20' ) end [2025-03-06 07:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618833', 'tblTempVendorCDR_20' ) start [2025-03-06 07:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618833', 'tblTempVendorCDR_20' ) end [2025-03-06 07:05:18] Production.INFO: ProcessCDR(1,14618833,1,1,2) [2025-03-06 07:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14618833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 07:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14618833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 07:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14618833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 07:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14618833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 07:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618833', 'tblTempUsageDetail_20' ) start [2025-03-06 07:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618833', 'tblTempUsageDetail_20' ) end [2025-03-06 07:05:23] Production.ERROR: pbx prc_insertCDR start [2025-03-06 07:05:23] Production.ERROR: pbx prc_insertCDR end [2025-03-06 07:05:23] Production.INFO: ==30995== Releasing lock... [2025-03-06 07:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 07:05:23] Production.INFO: 28.5 MB #Memory Used# [2025-03-06 07:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 04:06:05 [end_date_ymd] => 2025-03-06 07:06:05 [RateCDR] => 1 ) [2025-03-06 07: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-03-06 04:06:05' and `end` < '2025-03-06 07:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 07:06:18] Production.INFO: count ==133 [2025-03-06 07:06:18] Production.ERROR: pbx CDR StartTime 2025-03-06 04:06:05 - End Time 2025-03-06 07:06:05 [2025-03-06 07:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 07:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618838', 'tblTempUsageDetail_20' ) start [2025-03-06 07:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618838', 'tblTempUsageDetail_20' ) end [2025-03-06 07:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618838', 'tblTempVendorCDR_20' ) start [2025-03-06 07:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618838', 'tblTempVendorCDR_20' ) end [2025-03-06 07:06:18] Production.INFO: ProcessCDR(1,14618838,1,1,2) [2025-03-06 07:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14618838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 07:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14618838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 07:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14618838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 07:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14618838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 07:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618838', 'tblTempUsageDetail_20' ) start [2025-03-06 07:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618838', 'tblTempUsageDetail_20' ) end [2025-03-06 07:06:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 07:06:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 07:06:22] Production.INFO: ==31066== Releasing lock... [2025-03-06 07:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 07:06:22] Production.INFO: 28.5 MB #Memory Used# [2025-03-06 07:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 04:07:06 [end_date_ymd] => 2025-03-06 07:07:06 [RateCDR] => 1 ) [2025-03-06 07: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-03-06 04:07:06' and `end` < '2025-03-06 07: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-03-06 07:07:19] Production.INFO: count ==132 [2025-03-06 07:07:19] Production.ERROR: pbx CDR StartTime 2025-03-06 04:07:06 - End Time 2025-03-06 07:07:06 [2025-03-06 07:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 07:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618843', 'tblTempUsageDetail_20' ) start [2025-03-06 07:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618843', 'tblTempUsageDetail_20' ) end [2025-03-06 07:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618843', 'tblTempVendorCDR_20' ) start [2025-03-06 07:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618843', 'tblTempVendorCDR_20' ) end [2025-03-06 07:07:19] Production.INFO: ProcessCDR(1,14618843,1,1,2) [2025-03-06 07:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14618843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 07:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14618843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 07:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14618843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 07:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14618843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 07:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618843', 'tblTempUsageDetail_20' ) start [2025-03-06 07:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618843', 'tblTempUsageDetail_20' ) end [2025-03-06 07:07:23] Production.ERROR: pbx prc_insertCDR start [2025-03-06 07:07:23] Production.ERROR: pbx prc_insertCDR end [2025-03-06 07:07:23] Production.INFO: ==31138== Releasing lock... [2025-03-06 07:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 07:07:23] Production.INFO: 28.5 MB #Memory Used# [2025-03-06 07:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 04:08:05 [end_date_ymd] => 2025-03-06 07:08:05 [RateCDR] => 1 ) [2025-03-06 07:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 04:08:05' and `end` < '2025-03-06 07:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 07:08:17] Production.INFO: count ==138 [2025-03-06 07:08:17] Production.ERROR: pbx CDR StartTime 2025-03-06 04:08:05 - End Time 2025-03-06 07:08:05 [2025-03-06 07:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 07:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618848', 'tblTempUsageDetail_20' ) start [2025-03-06 07:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618848', 'tblTempUsageDetail_20' ) end [2025-03-06 07:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618848', 'tblTempVendorCDR_20' ) start [2025-03-06 07:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618848', 'tblTempVendorCDR_20' ) end [2025-03-06 07:08:17] Production.INFO: ProcessCDR(1,14618848,1,1,2) [2025-03-06 07:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14618848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 07:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14618848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 07:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14618848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 07:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14618848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 07:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618848', 'tblTempUsageDetail_20' ) start [2025-03-06 07:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618848', 'tblTempUsageDetail_20' ) end [2025-03-06 07:08:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 07:08:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 07:08:22] Production.INFO: ==31251== Releasing lock... [2025-03-06 07:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 07:08:22] Production.INFO: 28.75 MB #Memory Used# [2025-03-06 07:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 04:09:06 [end_date_ymd] => 2025-03-06 07:09:06 [RateCDR] => 1 ) [2025-03-06 07: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-03-06 04:09:06' and `end` < '2025-03-06 07: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-03-06 07:09:18] Production.INFO: count ==138 [2025-03-06 07:09:18] Production.ERROR: pbx CDR StartTime 2025-03-06 04:09:06 - End Time 2025-03-06 07:09:06 [2025-03-06 07:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 07:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618853', 'tblTempUsageDetail_20' ) start [2025-03-06 07:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618853', 'tblTempUsageDetail_20' ) end [2025-03-06 07:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618853', 'tblTempVendorCDR_20' ) start [2025-03-06 07:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618853', 'tblTempVendorCDR_20' ) end [2025-03-06 07:09:18] Production.INFO: ProcessCDR(1,14618853,1,1,2) [2025-03-06 07:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14618853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 07:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14618853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 07:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14618853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 07:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14618853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 07:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618853', 'tblTempUsageDetail_20' ) start [2025-03-06 07:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618853', 'tblTempUsageDetail_20' ) end [2025-03-06 07:09:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 07:09:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 07:09:22] Production.INFO: ==31368== Releasing lock... [2025-03-06 07:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 07:09:22] Production.INFO: 28.75 MB #Memory Used# [2025-03-06 07:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 04:10:07 [end_date_ymd] => 2025-03-06 07:10:07 [RateCDR] => 1 ) [2025-03-06 07:10: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-03-06 04:10:07' and `end` < '2025-03-06 07:10: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-03-06 07:10:20] Production.INFO: count ==146 [2025-03-06 07:10:20] Production.ERROR: pbx CDR StartTime 2025-03-06 04:10:07 - End Time 2025-03-06 07:10:07 [2025-03-06 07:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 07:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618858', 'tblTempUsageDetail_20' ) start [2025-03-06 07:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618858', 'tblTempUsageDetail_20' ) end [2025-03-06 07:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618858', 'tblTempVendorCDR_20' ) start [2025-03-06 07:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618858', 'tblTempVendorCDR_20' ) end [2025-03-06 07:10:20] Production.INFO: ProcessCDR(1,14618858,1,1,2) [2025-03-06 07:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14618858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 07:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14618858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 07:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14618858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 07:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14618858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 07:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618858', 'tblTempUsageDetail_20' ) start [2025-03-06 07:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618858', 'tblTempUsageDetail_20' ) end [2025-03-06 07:10:24] Production.ERROR: pbx prc_insertCDR start [2025-03-06 07:10:24] Production.ERROR: pbx prc_insertCDR end [2025-03-06 07:10:24] Production.INFO: ==31444== Releasing lock... [2025-03-06 07:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 07:10:24] Production.INFO: 28.75 MB #Memory Used# [2025-03-06 07:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 04:11:06 [end_date_ymd] => 2025-03-06 07:11:06 [RateCDR] => 1 ) [2025-03-06 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-03-06 04:11:06' and `end` < '2025-03-06 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-03-06 07:11:19] Production.INFO: count ==146 [2025-03-06 07:11:19] Production.ERROR: pbx CDR StartTime 2025-03-06 04:11:06 - End Time 2025-03-06 07:11:06 [2025-03-06 07:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 07:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618864', 'tblTempUsageDetail_20' ) start [2025-03-06 07:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618864', 'tblTempUsageDetail_20' ) end [2025-03-06 07:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618864', 'tblTempVendorCDR_20' ) start [2025-03-06 07:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618864', 'tblTempVendorCDR_20' ) end [2025-03-06 07:11:19] Production.INFO: ProcessCDR(1,14618864,1,1,2) [2025-03-06 07:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14618864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 07:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14618864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 07:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14618864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 07:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14618864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 07:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618864', 'tblTempUsageDetail_20' ) start [2025-03-06 07:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618864', 'tblTempUsageDetail_20' ) end [2025-03-06 07:11:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 07:11:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 07:11:22] Production.INFO: ==31520== Releasing lock... [2025-03-06 07:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 07:11:22] Production.INFO: 28.75 MB #Memory Used# [2025-03-06 07:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 04:12:06 [end_date_ymd] => 2025-03-06 07:12:06 [RateCDR] => 1 ) [2025-03-06 07: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-03-06 04:12:06' and `end` < '2025-03-06 07: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-03-06 07:12:18] Production.INFO: count ==145 [2025-03-06 07:12:18] Production.ERROR: pbx CDR StartTime 2025-03-06 04:12:06 - End Time 2025-03-06 07:12:06 [2025-03-06 07:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 07:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618869', 'tblTempUsageDetail_20' ) start [2025-03-06 07:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618869', 'tblTempUsageDetail_20' ) end [2025-03-06 07:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618869', 'tblTempVendorCDR_20' ) start [2025-03-06 07:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618869', 'tblTempVendorCDR_20' ) end [2025-03-06 07:12:18] Production.INFO: ProcessCDR(1,14618869,1,1,2) [2025-03-06 07:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14618869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 07:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14618869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 07:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14618869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 07:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14618869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 07:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618869', 'tblTempUsageDetail_20' ) start [2025-03-06 07:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618869', 'tblTempUsageDetail_20' ) end [2025-03-06 07:12:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 07:12:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 07:12:22] Production.INFO: ==31671== Releasing lock... [2025-03-06 07:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 07:12:22] Production.INFO: 28.75 MB #Memory Used# [2025-03-06 07:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 04:13:06 [end_date_ymd] => 2025-03-06 07:13:06 [RateCDR] => 1 ) [2025-03-06 07: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-03-06 04:13:06' and `end` < '2025-03-06 07: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-03-06 07:13:18] Production.INFO: count ==146 [2025-03-06 07:13:18] Production.ERROR: pbx CDR StartTime 2025-03-06 04:13:06 - End Time 2025-03-06 07:13:06 [2025-03-06 07:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 07:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618874', 'tblTempUsageDetail_20' ) start [2025-03-06 07:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618874', 'tblTempUsageDetail_20' ) end [2025-03-06 07:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618874', 'tblTempVendorCDR_20' ) start [2025-03-06 07:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618874', 'tblTempVendorCDR_20' ) end [2025-03-06 07:13:18] Production.INFO: ProcessCDR(1,14618874,1,1,2) [2025-03-06 07:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14618874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 07:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14618874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 07:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14618874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 07:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14618874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 07:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618874', 'tblTempUsageDetail_20' ) start [2025-03-06 07:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618874', 'tblTempUsageDetail_20' ) end [2025-03-06 07:13:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 07:13:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 07:13:22] Production.INFO: ==31743== Releasing lock... [2025-03-06 07:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 07:13:22] Production.INFO: 28.75 MB #Memory Used# [2025-03-06 07:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 04:14:05 [end_date_ymd] => 2025-03-06 07:14:05 [RateCDR] => 1 ) [2025-03-06 07:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 04:14:05' and `end` < '2025-03-06 07:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 07:14:18] Production.INFO: count ==150 [2025-03-06 07:14:18] Production.ERROR: pbx CDR StartTime 2025-03-06 04:14:05 - End Time 2025-03-06 07:14:05 [2025-03-06 07:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 07:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618879', 'tblTempUsageDetail_20' ) start [2025-03-06 07:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618879', 'tblTempUsageDetail_20' ) end [2025-03-06 07:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618879', 'tblTempVendorCDR_20' ) start [2025-03-06 07:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618879', 'tblTempVendorCDR_20' ) end [2025-03-06 07:14:18] Production.INFO: ProcessCDR(1,14618879,1,1,2) [2025-03-06 07:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14618879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 07:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14618879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 07:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14618879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 07:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14618879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 07:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618879', 'tblTempUsageDetail_20' ) start [2025-03-06 07:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618879', 'tblTempUsageDetail_20' ) end [2025-03-06 07:14:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 07:14:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 07:14:21] Production.INFO: ==31844== Releasing lock... [2025-03-06 07:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 07:14:21] Production.INFO: 29 MB #Memory Used# [2025-03-06 07:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 04:15:06 [end_date_ymd] => 2025-03-06 07:15:06 [RateCDR] => 1 ) [2025-03-06 07:15:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 04:15:06' and `end` < '2025-03-06 07:15:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 07:15:18] Production.INFO: count ==150 [2025-03-06 07:15:18] Production.ERROR: pbx CDR StartTime 2025-03-06 04:15:06 - End Time 2025-03-06 07:15:06 [2025-03-06 07:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 07:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618884', 'tblTempUsageDetail_20' ) start [2025-03-06 07:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618884', 'tblTempUsageDetail_20' ) end [2025-03-06 07:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618884', 'tblTempVendorCDR_20' ) start [2025-03-06 07:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618884', 'tblTempVendorCDR_20' ) end [2025-03-06 07:15:18] Production.INFO: ProcessCDR(1,14618884,1,1,2) [2025-03-06 07:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14618884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 07:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14618884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 07:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14618884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 07:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14618884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 07:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618884', 'tblTempUsageDetail_20' ) start [2025-03-06 07:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618884', 'tblTempUsageDetail_20' ) end [2025-03-06 07:15:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 07:15:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 07:15:22] Production.INFO: ==32010== Releasing lock... [2025-03-06 07:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 07:15:22] Production.INFO: 29 MB #Memory Used# [2025-03-06 07:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 04:16:06 [end_date_ymd] => 2025-03-06 07:16:06 [RateCDR] => 1 ) [2025-03-06 07: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-03-06 04:16:06' and `end` < '2025-03-06 07: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-03-06 07:16:18] Production.INFO: count ==150 [2025-03-06 07:16:18] Production.ERROR: pbx CDR StartTime 2025-03-06 04:16:06 - End Time 2025-03-06 07:16:06 [2025-03-06 07:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 07:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618889', 'tblTempUsageDetail_20' ) start [2025-03-06 07:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618889', 'tblTempUsageDetail_20' ) end [2025-03-06 07:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618889', 'tblTempVendorCDR_20' ) start [2025-03-06 07:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618889', 'tblTempVendorCDR_20' ) end [2025-03-06 07:16:18] Production.INFO: ProcessCDR(1,14618889,1,1,2) [2025-03-06 07:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14618889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 07:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14618889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 07:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14618889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 07:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14618889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 07:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618889', 'tblTempUsageDetail_20' ) start [2025-03-06 07:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618889', 'tblTempUsageDetail_20' ) end [2025-03-06 07:16:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 07:16:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 07:16:22] Production.INFO: ==32087== Releasing lock... [2025-03-06 07:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 07:16:22] Production.INFO: 29 MB #Memory Used# [2025-03-06 07:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 04:17:05 [end_date_ymd] => 2025-03-06 07:17:05 [RateCDR] => 1 ) [2025-03-06 07:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 04:17:05' and `end` < '2025-03-06 07:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 07:17:18] Production.INFO: count ==150 [2025-03-06 07:17:18] Production.ERROR: pbx CDR StartTime 2025-03-06 04:17:05 - End Time 2025-03-06 07:17:05 [2025-03-06 07:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 07:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618894', 'tblTempUsageDetail_20' ) start [2025-03-06 07:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618894', 'tblTempUsageDetail_20' ) end [2025-03-06 07:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618894', 'tblTempVendorCDR_20' ) start [2025-03-06 07:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618894', 'tblTempVendorCDR_20' ) end [2025-03-06 07:17:18] Production.INFO: ProcessCDR(1,14618894,1,1,2) [2025-03-06 07:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14618894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 07:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14618894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 07:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14618894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 07:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14618894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 07:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618894', 'tblTempUsageDetail_20' ) start [2025-03-06 07:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618894', 'tblTempUsageDetail_20' ) end [2025-03-06 07:17:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 07:17:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 07:17:21] Production.INFO: ==32160== Releasing lock... [2025-03-06 07:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 07:17:21] Production.INFO: 29 MB #Memory Used# [2025-03-06 07:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 04:18:05 [end_date_ymd] => 2025-03-06 07:18:05 [RateCDR] => 1 ) [2025-03-06 07:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 04:18:05' and `end` < '2025-03-06 07:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 07:18:18] Production.INFO: count ==150 [2025-03-06 07:18:18] Production.ERROR: pbx CDR StartTime 2025-03-06 04:18:05 - End Time 2025-03-06 07:18:05 [2025-03-06 07:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 07:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618899', 'tblTempUsageDetail_20' ) start [2025-03-06 07:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618899', 'tblTempUsageDetail_20' ) end [2025-03-06 07:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618899', 'tblTempVendorCDR_20' ) start [2025-03-06 07:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618899', 'tblTempVendorCDR_20' ) end [2025-03-06 07:18:18] Production.INFO: ProcessCDR(1,14618899,1,1,2) [2025-03-06 07:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14618899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 07:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14618899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 07:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14618899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 07:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14618899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 07:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618899', 'tblTempUsageDetail_20' ) start [2025-03-06 07:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618899', 'tblTempUsageDetail_20' ) end [2025-03-06 07:18:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 07:18:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 07:18:21] Production.INFO: ==32236== Releasing lock... [2025-03-06 07:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 07:18:21] Production.INFO: 29 MB #Memory Used# [2025-03-06 07:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 04:19:05 [end_date_ymd] => 2025-03-06 07:19:05 [RateCDR] => 1 ) [2025-03-06 07:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 04:19:05' and `end` < '2025-03-06 07:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 07:19:17] Production.INFO: count ==150 [2025-03-06 07:19:17] Production.ERROR: pbx CDR StartTime 2025-03-06 04:19:05 - End Time 2025-03-06 07:19:05 [2025-03-06 07:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 07:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618904', 'tblTempUsageDetail_20' ) start [2025-03-06 07:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618904', 'tblTempUsageDetail_20' ) end [2025-03-06 07:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618904', 'tblTempVendorCDR_20' ) start [2025-03-06 07:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618904', 'tblTempVendorCDR_20' ) end [2025-03-06 07:19:17] Production.INFO: ProcessCDR(1,14618904,1,1,2) [2025-03-06 07:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14618904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 07:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14618904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 07:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14618904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 07:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14618904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 07:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618904', 'tblTempUsageDetail_20' ) start [2025-03-06 07:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618904', 'tblTempUsageDetail_20' ) end [2025-03-06 07:19:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 07:19:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 07:19:21] Production.INFO: ==32310== Releasing lock... [2025-03-06 07:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 07:19:21] Production.INFO: 29 MB #Memory Used# [2025-03-06 07:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 04:20:06 [end_date_ymd] => 2025-03-06 07:20:06 [RateCDR] => 1 ) [2025-03-06 07:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 04:20:06' and `end` < '2025-03-06 07:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 07:20:18] Production.INFO: count ==150 [2025-03-06 07:20:18] Production.ERROR: pbx CDR StartTime 2025-03-06 04:20:06 - End Time 2025-03-06 07:20:06 [2025-03-06 07:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 07:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618909', 'tblTempUsageDetail_20' ) start [2025-03-06 07:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618909', 'tblTempUsageDetail_20' ) end [2025-03-06 07:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618909', 'tblTempVendorCDR_20' ) start [2025-03-06 07:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618909', 'tblTempVendorCDR_20' ) end [2025-03-06 07:20:18] Production.INFO: ProcessCDR(1,14618909,1,1,2) [2025-03-06 07:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14618909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 07:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14618909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 07:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14618909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 07:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14618909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 07:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618909', 'tblTempUsageDetail_20' ) start [2025-03-06 07:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618909', 'tblTempUsageDetail_20' ) end [2025-03-06 07:20:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 07:20:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 07:20:22] Production.INFO: ==32384== Releasing lock... [2025-03-06 07:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 07:20:22] Production.INFO: 29 MB #Memory Used# [2025-03-06 07:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 04:21:06 [end_date_ymd] => 2025-03-06 07:21:06 [RateCDR] => 1 ) [2025-03-06 07: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-03-06 04:21:06' and `end` < '2025-03-06 07: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-03-06 07:21:18] Production.INFO: count ==150 [2025-03-06 07:21:18] Production.ERROR: pbx CDR StartTime 2025-03-06 04:21:06 - End Time 2025-03-06 07:21:06 [2025-03-06 07:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 07:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618915', 'tblTempUsageDetail_20' ) start [2025-03-06 07:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618915', 'tblTempUsageDetail_20' ) end [2025-03-06 07:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618915', 'tblTempVendorCDR_20' ) start [2025-03-06 07:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618915', 'tblTempVendorCDR_20' ) end [2025-03-06 07:21:18] Production.INFO: ProcessCDR(1,14618915,1,1,2) [2025-03-06 07:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14618915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 07:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14618915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 07:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14618915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 07:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14618915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 07:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618915', 'tblTempUsageDetail_20' ) start [2025-03-06 07:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618915', 'tblTempUsageDetail_20' ) end [2025-03-06 07:21:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 07:21:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 07:21:22] Production.INFO: ==32461== Releasing lock... [2025-03-06 07:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 07:21:22] Production.INFO: 29 MB #Memory Used# [2025-03-06 07:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 04:22:06 [end_date_ymd] => 2025-03-06 07:22:06 [RateCDR] => 1 ) [2025-03-06 07:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 04:22:06' and `end` < '2025-03-06 07:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 07:22:20] Production.INFO: count ==150 [2025-03-06 07:22:20] Production.ERROR: pbx CDR StartTime 2025-03-06 04:22:06 - End Time 2025-03-06 07:22:06 [2025-03-06 07:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 07:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618920', 'tblTempUsageDetail_20' ) start [2025-03-06 07:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618920', 'tblTempUsageDetail_20' ) end [2025-03-06 07:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618920', 'tblTempVendorCDR_20' ) start [2025-03-06 07:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618920', 'tblTempVendorCDR_20' ) end [2025-03-06 07:22:20] Production.INFO: ProcessCDR(1,14618920,1,1,2) [2025-03-06 07:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14618920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 07:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14618920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 07:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14618920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 07:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14618920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 07:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618920', 'tblTempUsageDetail_20' ) start [2025-03-06 07:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618920', 'tblTempUsageDetail_20' ) end [2025-03-06 07:22:23] Production.ERROR: pbx prc_insertCDR start [2025-03-06 07:22:23] Production.ERROR: pbx prc_insertCDR end [2025-03-06 07:22:23] Production.INFO: ==32535== Releasing lock... [2025-03-06 07:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 07:22:23] Production.INFO: 29 MB #Memory Used# [2025-03-06 07:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 04:23:06 [end_date_ymd] => 2025-03-06 07:23:06 [RateCDR] => 1 ) [2025-03-06 07:23:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 04:23:06' and `end` < '2025-03-06 07:23:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 07:23:18] Production.INFO: count ==150 [2025-03-06 07:23:18] Production.ERROR: pbx CDR StartTime 2025-03-06 04:23:06 - End Time 2025-03-06 07:23:06 [2025-03-06 07:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618925', 'tblTempUsageDetail_20' ) start [2025-03-06 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618925', 'tblTempUsageDetail_20' ) end [2025-03-06 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618925', 'tblTempVendorCDR_20' ) start [2025-03-06 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618925', 'tblTempVendorCDR_20' ) end [2025-03-06 07:23:18] Production.INFO: ProcessCDR(1,14618925,1,1,2) [2025-03-06 07:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14618925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 07:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14618925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 07:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14618925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 07:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14618925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 07:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618925', 'tblTempUsageDetail_20' ) start [2025-03-06 07:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618925', 'tblTempUsageDetail_20' ) end [2025-03-06 07:23:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 07:23:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 07:23:21] Production.INFO: ==32610== Releasing lock... [2025-03-06 07:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 07:23:21] Production.INFO: 29 MB #Memory Used# [2025-03-06 07:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 04:24:05 [end_date_ymd] => 2025-03-06 07:24:05 [RateCDR] => 1 ) [2025-03-06 07:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 04:24:05' and `end` < '2025-03-06 07:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 07:24:17] Production.INFO: count ==150 [2025-03-06 07:24:17] Production.ERROR: pbx CDR StartTime 2025-03-06 04:24:05 - End Time 2025-03-06 07:24:05 [2025-03-06 07:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 07:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618930', 'tblTempUsageDetail_20' ) start [2025-03-06 07:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618930', 'tblTempUsageDetail_20' ) end [2025-03-06 07:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618930', 'tblTempVendorCDR_20' ) start [2025-03-06 07:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618930', 'tblTempVendorCDR_20' ) end [2025-03-06 07:24:17] Production.INFO: ProcessCDR(1,14618930,1,1,2) [2025-03-06 07:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14618930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 07:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14618930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 07:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14618930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 07:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14618930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 07:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618930', 'tblTempUsageDetail_20' ) start [2025-03-06 07:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618930', 'tblTempUsageDetail_20' ) end [2025-03-06 07:24:20] Production.ERROR: pbx prc_insertCDR start [2025-03-06 07:24:20] Production.ERROR: pbx prc_insertCDR end [2025-03-06 07:24:20] Production.INFO: ==32681== Releasing lock... [2025-03-06 07:24:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 07:24:20] Production.INFO: 29 MB #Memory Used# [2025-03-06 07:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 04:25:06 [end_date_ymd] => 2025-03-06 07:25:06 [RateCDR] => 1 ) [2025-03-06 07: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-03-06 04:25:06' and `end` < '2025-03-06 07: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-03-06 07:25:18] Production.INFO: count ==150 [2025-03-06 07:25:18] Production.ERROR: pbx CDR StartTime 2025-03-06 04:25:06 - End Time 2025-03-06 07:25:06 [2025-03-06 07:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618935', 'tblTempUsageDetail_20' ) start [2025-03-06 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618935', 'tblTempUsageDetail_20' ) end [2025-03-06 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618935', 'tblTempVendorCDR_20' ) start [2025-03-06 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618935', 'tblTempVendorCDR_20' ) end [2025-03-06 07:25:18] Production.INFO: ProcessCDR(1,14618935,1,1,2) [2025-03-06 07:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14618935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 07:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14618935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 07:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14618935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 07:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14618935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 07:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618935', 'tblTempUsageDetail_20' ) start [2025-03-06 07:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618935', 'tblTempUsageDetail_20' ) end [2025-03-06 07:25:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 07:25:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 07:25:21] Production.INFO: ==32758== Releasing lock... [2025-03-06 07:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 07:25:21] Production.INFO: 29 MB #Memory Used# [2025-03-06 07:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 04:26:05 [end_date_ymd] => 2025-03-06 07:26:05 [RateCDR] => 1 ) [2025-03-06 07:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 04:26:05' and `end` < '2025-03-06 07:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 07:26:17] Production.INFO: count ==150 [2025-03-06 07:26:17] Production.ERROR: pbx CDR StartTime 2025-03-06 04:26:05 - End Time 2025-03-06 07:26:05 [2025-03-06 07:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 07:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618940', 'tblTempUsageDetail_20' ) start [2025-03-06 07:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618940', 'tblTempUsageDetail_20' ) end [2025-03-06 07:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618940', 'tblTempVendorCDR_20' ) start [2025-03-06 07:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618940', 'tblTempVendorCDR_20' ) end [2025-03-06 07:26:17] Production.INFO: ProcessCDR(1,14618940,1,1,2) [2025-03-06 07:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14618940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 07:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14618940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 07:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14618940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 07:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14618940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 07:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618940', 'tblTempUsageDetail_20' ) start [2025-03-06 07:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618940', 'tblTempUsageDetail_20' ) end [2025-03-06 07:26:20] Production.ERROR: pbx prc_insertCDR start [2025-03-06 07:26:20] Production.ERROR: pbx prc_insertCDR end [2025-03-06 07:26:20] Production.INFO: ==381== Releasing lock... [2025-03-06 07:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 07:26:20] Production.INFO: 29 MB #Memory Used# [2025-03-06 07:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 04:27:05 [end_date_ymd] => 2025-03-06 07:27:05 [RateCDR] => 1 ) [2025-03-06 07:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 04:27:05' and `end` < '2025-03-06 07:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 07:27:17] Production.INFO: count ==153 [2025-03-06 07:27:17] Production.ERROR: pbx CDR StartTime 2025-03-06 04:27:05 - End Time 2025-03-06 07:27:05 [2025-03-06 07:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 07:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618945', 'tblTempUsageDetail_20' ) start [2025-03-06 07:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618945', 'tblTempUsageDetail_20' ) end [2025-03-06 07:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618945', 'tblTempVendorCDR_20' ) start [2025-03-06 07:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618945', 'tblTempVendorCDR_20' ) end [2025-03-06 07:27:17] Production.INFO: ProcessCDR(1,14618945,1,1,2) [2025-03-06 07:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14618945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 07:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14618945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 07:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14618945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 07:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14618945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 07:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618945', 'tblTempUsageDetail_20' ) start [2025-03-06 07:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618945', 'tblTempUsageDetail_20' ) end [2025-03-06 07:27:20] Production.ERROR: pbx prc_insertCDR start [2025-03-06 07:27:20] Production.ERROR: pbx prc_insertCDR end [2025-03-06 07:27:20] Production.INFO: ==455== Releasing lock... [2025-03-06 07:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 07:27:20] Production.INFO: 29 MB #Memory Used# [2025-03-06 07:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 04:28:06 [end_date_ymd] => 2025-03-06 07:28:06 [RateCDR] => 1 ) [2025-03-06 07:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 04:28:06' and `end` < '2025-03-06 07:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 07:28:18] Production.INFO: count ==156 [2025-03-06 07:28:18] Production.ERROR: pbx CDR StartTime 2025-03-06 04:28:06 - End Time 2025-03-06 07:28:06 [2025-03-06 07:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618950', 'tblTempUsageDetail_20' ) start [2025-03-06 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618950', 'tblTempUsageDetail_20' ) end [2025-03-06 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618950', 'tblTempVendorCDR_20' ) start [2025-03-06 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618950', 'tblTempVendorCDR_20' ) end [2025-03-06 07:28:18] Production.INFO: ProcessCDR(1,14618950,1,1,2) [2025-03-06 07:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14618950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 07:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14618950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 07:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14618950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 07:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14618950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 07:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618950', 'tblTempUsageDetail_20' ) start [2025-03-06 07:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618950', 'tblTempUsageDetail_20' ) end [2025-03-06 07:28:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 07:28:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 07:28:21] Production.INFO: ==528== Releasing lock... [2025-03-06 07:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 07:28:21] Production.INFO: 29 MB #Memory Used# [2025-03-06 07:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 04:29:05 [end_date_ymd] => 2025-03-06 07:29:05 [RateCDR] => 1 ) [2025-03-06 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-03-06 04:29:05' and `end` < '2025-03-06 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-03-06 07:29:17] Production.INFO: count ==161 [2025-03-06 07:29:17] Production.ERROR: pbx CDR StartTime 2025-03-06 04:29:05 - End Time 2025-03-06 07:29:05 [2025-03-06 07:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 07:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618955', 'tblTempUsageDetail_20' ) start [2025-03-06 07:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618955', 'tblTempUsageDetail_20' ) end [2025-03-06 07:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618955', 'tblTempVendorCDR_20' ) start [2025-03-06 07:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618955', 'tblTempVendorCDR_20' ) end [2025-03-06 07:29:17] Production.INFO: ProcessCDR(1,14618955,1,1,2) [2025-03-06 07:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14618955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 07:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14618955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 07:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14618955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 07:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14618955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 07:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618955', 'tblTempUsageDetail_20' ) start [2025-03-06 07:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618955', 'tblTempUsageDetail_20' ) end [2025-03-06 07:29:20] Production.ERROR: pbx prc_insertCDR start [2025-03-06 07:29:20] Production.ERROR: pbx prc_insertCDR end [2025-03-06 07:29:20] Production.INFO: ==610== Releasing lock... [2025-03-06 07:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 07:29:20] Production.INFO: 29 MB #Memory Used# [2025-03-06 07:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 04:30:06 [end_date_ymd] => 2025-03-06 07:30:06 [RateCDR] => 1 ) [2025-03-06 07:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 04:30:06' and `end` < '2025-03-06 07:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 07:30:18] Production.INFO: count ==161 [2025-03-06 07:30:18] Production.ERROR: pbx CDR StartTime 2025-03-06 04:30:06 - End Time 2025-03-06 07:30:06 [2025-03-06 07:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 07:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618961', 'tblTempUsageDetail_20' ) start [2025-03-06 07:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618961', 'tblTempUsageDetail_20' ) end [2025-03-06 07:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618961', 'tblTempVendorCDR_20' ) start [2025-03-06 07:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618961', 'tblTempVendorCDR_20' ) end [2025-03-06 07:30:18] Production.INFO: ProcessCDR(1,14618961,1,1,2) [2025-03-06 07:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14618961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 07:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14618961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 07:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14618961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 07:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14618961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 07:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618961', 'tblTempUsageDetail_20' ) start [2025-03-06 07:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618961', 'tblTempUsageDetail_20' ) end [2025-03-06 07:30:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 07:30:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 07:30:22] Production.INFO: ==762== Releasing lock... [2025-03-06 07:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 07:30:22] Production.INFO: 29 MB #Memory Used# [2025-03-06 07:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 04:31:05 [end_date_ymd] => 2025-03-06 07:31:05 [RateCDR] => 1 ) [2025-03-06 07:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 04:31:05' and `end` < '2025-03-06 07:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 07:31:17] Production.INFO: count ==161 [2025-03-06 07:31:17] Production.ERROR: pbx CDR StartTime 2025-03-06 04:31:05 - End Time 2025-03-06 07:31:05 [2025-03-06 07:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 07:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618966', 'tblTempUsageDetail_20' ) start [2025-03-06 07:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618966', 'tblTempUsageDetail_20' ) end [2025-03-06 07:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618966', 'tblTempVendorCDR_20' ) start [2025-03-06 07:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618966', 'tblTempVendorCDR_20' ) end [2025-03-06 07:31:17] Production.INFO: ProcessCDR(1,14618966,1,1,2) [2025-03-06 07:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14618966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 07:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14618966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 07:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14618966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 07:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14618966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 07:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618966', 'tblTempUsageDetail_20' ) start [2025-03-06 07:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618966', 'tblTempUsageDetail_20' ) end [2025-03-06 07:31:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 07:31:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 07:31:21] Production.INFO: ==839== Releasing lock... [2025-03-06 07:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 07:31:21] Production.INFO: 29 MB #Memory Used# [2025-03-06 07:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 04:32:05 [end_date_ymd] => 2025-03-06 07:32:05 [RateCDR] => 1 ) [2025-03-06 07:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 04:32:05' and `end` < '2025-03-06 07:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 07:32:17] Production.INFO: count ==161 [2025-03-06 07:32:17] Production.ERROR: pbx CDR StartTime 2025-03-06 04:32:05 - End Time 2025-03-06 07:32:05 [2025-03-06 07:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 07:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618971', 'tblTempUsageDetail_20' ) start [2025-03-06 07:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618971', 'tblTempUsageDetail_20' ) end [2025-03-06 07:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618971', 'tblTempVendorCDR_20' ) start [2025-03-06 07:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618971', 'tblTempVendorCDR_20' ) end [2025-03-06 07:32:17] Production.INFO: ProcessCDR(1,14618971,1,1,2) [2025-03-06 07:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14618971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 07:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14618971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 07:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14618971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 07:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14618971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 07:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618971', 'tblTempUsageDetail_20' ) start [2025-03-06 07:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618971', 'tblTempUsageDetail_20' ) end [2025-03-06 07:32:20] Production.ERROR: pbx prc_insertCDR start [2025-03-06 07:32:20] Production.ERROR: pbx prc_insertCDR end [2025-03-06 07:32:20] Production.INFO: ==909== Releasing lock... [2025-03-06 07:32:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 07:32:20] Production.INFO: 29 MB #Memory Used# [2025-03-06 07:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 04:33:05 [end_date_ymd] => 2025-03-06 07:33:05 [RateCDR] => 1 ) [2025-03-06 07:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 04:33:05' and `end` < '2025-03-06 07:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 07:33:17] Production.INFO: count ==161 [2025-03-06 07:33:17] Production.ERROR: pbx CDR StartTime 2025-03-06 04:33:05 - End Time 2025-03-06 07:33:05 [2025-03-06 07:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 07:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618976', 'tblTempUsageDetail_20' ) start [2025-03-06 07:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618976', 'tblTempUsageDetail_20' ) end [2025-03-06 07:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618976', 'tblTempVendorCDR_20' ) start [2025-03-06 07:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618976', 'tblTempVendorCDR_20' ) end [2025-03-06 07:33:17] Production.INFO: ProcessCDR(1,14618976,1,1,2) [2025-03-06 07:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14618976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 07:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14618976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 07:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14618976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 07:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14618976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 07:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618976', 'tblTempUsageDetail_20' ) start [2025-03-06 07:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618976', 'tblTempUsageDetail_20' ) end [2025-03-06 07:33:20] Production.ERROR: pbx prc_insertCDR start [2025-03-06 07:33:20] Production.ERROR: pbx prc_insertCDR end [2025-03-06 07:33:20] Production.INFO: ==984== Releasing lock... [2025-03-06 07:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 07:33:20] Production.INFO: 29 MB #Memory Used# [2025-03-06 07:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 04:34:06 [end_date_ymd] => 2025-03-06 07:34:06 [RateCDR] => 1 ) [2025-03-06 07: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-03-06 04:34:06' and `end` < '2025-03-06 07: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-03-06 07:34:18] Production.INFO: count ==161 [2025-03-06 07:34:18] Production.ERROR: pbx CDR StartTime 2025-03-06 04:34:06 - End Time 2025-03-06 07:34:06 [2025-03-06 07:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618981', 'tblTempUsageDetail_20' ) start [2025-03-06 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618981', 'tblTempUsageDetail_20' ) end [2025-03-06 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618981', 'tblTempVendorCDR_20' ) start [2025-03-06 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618981', 'tblTempVendorCDR_20' ) end [2025-03-06 07:34:18] Production.INFO: ProcessCDR(1,14618981,1,1,2) [2025-03-06 07:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14618981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 07:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14618981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 07:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14618981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 07:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14618981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 07:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618981', 'tblTempUsageDetail_20' ) start [2025-03-06 07:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618981', 'tblTempUsageDetail_20' ) end [2025-03-06 07:34:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 07:34:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 07:34:21] Production.INFO: ==1062== Releasing lock... [2025-03-06 07:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 07:34:21] Production.INFO: 29 MB #Memory Used# [2025-03-06 07:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 04:35:05 [end_date_ymd] => 2025-03-06 07:35:05 [RateCDR] => 1 ) [2025-03-06 07:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 04:35:05' and `end` < '2025-03-06 07:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 07:35:17] Production.INFO: count ==161 [2025-03-06 07:35:17] Production.ERROR: pbx CDR StartTime 2025-03-06 04:35:05 - End Time 2025-03-06 07:35:05 [2025-03-06 07:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 07:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618986', 'tblTempUsageDetail_20' ) start [2025-03-06 07:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618986', 'tblTempUsageDetail_20' ) end [2025-03-06 07:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618986', 'tblTempVendorCDR_20' ) start [2025-03-06 07:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618986', 'tblTempVendorCDR_20' ) end [2025-03-06 07:35:17] Production.INFO: ProcessCDR(1,14618986,1,1,2) [2025-03-06 07:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14618986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 07:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14618986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 07:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14618986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 07:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14618986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 07:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618986', 'tblTempUsageDetail_20' ) start [2025-03-06 07:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618986', 'tblTempUsageDetail_20' ) end [2025-03-06 07:35:20] Production.ERROR: pbx prc_insertCDR start [2025-03-06 07:35:20] Production.ERROR: pbx prc_insertCDR end [2025-03-06 07:35:20] Production.INFO: ==1139== Releasing lock... [2025-03-06 07:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 07:35:20] Production.INFO: 29 MB #Memory Used# [2025-03-06 07:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 04:36:06 [end_date_ymd] => 2025-03-06 07:36:06 [RateCDR] => 1 ) [2025-03-06 07:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 04:36:06' and `end` < '2025-03-06 07:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 07:36:18] Production.INFO: count ==162 [2025-03-06 07:36:18] Production.ERROR: pbx CDR StartTime 2025-03-06 04:36:06 - End Time 2025-03-06 07:36:06 [2025-03-06 07:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618991', 'tblTempUsageDetail_20' ) start [2025-03-06 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618991', 'tblTempUsageDetail_20' ) end [2025-03-06 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618991', 'tblTempVendorCDR_20' ) start [2025-03-06 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618991', 'tblTempVendorCDR_20' ) end [2025-03-06 07:36:18] Production.INFO: ProcessCDR(1,14618991,1,1,2) [2025-03-06 07:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14618991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 07:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14618991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 07:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14618991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 07:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14618991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 07:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618991', 'tblTempUsageDetail_20' ) start [2025-03-06 07:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618991', 'tblTempUsageDetail_20' ) end [2025-03-06 07:36:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 07:36:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 07:36:22] Production.INFO: ==1218== Releasing lock... [2025-03-06 07:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 07:36:22] Production.INFO: 29.25 MB #Memory Used# [2025-03-06 07:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 04:37:05 [end_date_ymd] => 2025-03-06 07:37:05 [RateCDR] => 1 ) [2025-03-06 07:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 04:37:05' and `end` < '2025-03-06 07:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 07:37:17] Production.INFO: count ==162 [2025-03-06 07:37:17] Production.ERROR: pbx CDR StartTime 2025-03-06 04:37:05 - End Time 2025-03-06 07:37:05 [2025-03-06 07:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 07:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618996', 'tblTempUsageDetail_20' ) start [2025-03-06 07:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14618996', 'tblTempUsageDetail_20' ) end [2025-03-06 07:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618996', 'tblTempVendorCDR_20' ) start [2025-03-06 07:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14618996', 'tblTempVendorCDR_20' ) end [2025-03-06 07:37:17] Production.INFO: ProcessCDR(1,14618996,1,1,2) [2025-03-06 07:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14618996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 07:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14618996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 07:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14618996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 07:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14618996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 07:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618996', 'tblTempUsageDetail_20' ) start [2025-03-06 07:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14618996', 'tblTempUsageDetail_20' ) end [2025-03-06 07:37:20] Production.ERROR: pbx prc_insertCDR start [2025-03-06 07:37:20] Production.ERROR: pbx prc_insertCDR end [2025-03-06 07:37:20] Production.INFO: ==1298== Releasing lock... [2025-03-06 07:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 07:37:20] Production.INFO: 29.25 MB #Memory Used# [2025-03-06 07:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 04:38:05 [end_date_ymd] => 2025-03-06 07:38:05 [RateCDR] => 1 ) [2025-03-06 07:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 04:38:05' and `end` < '2025-03-06 07:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 07:38:17] Production.INFO: count ==161 [2025-03-06 07:38:17] Production.ERROR: pbx CDR StartTime 2025-03-06 04:38:05 - End Time 2025-03-06 07:38:05 [2025-03-06 07:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 07:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619001', 'tblTempUsageDetail_20' ) start [2025-03-06 07:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619001', 'tblTempUsageDetail_20' ) end [2025-03-06 07:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619001', 'tblTempVendorCDR_20' ) start [2025-03-06 07:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619001', 'tblTempVendorCDR_20' ) end [2025-03-06 07:38:17] Production.INFO: ProcessCDR(1,14619001,1,1,2) [2025-03-06 07:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14619001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 07:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14619001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 07:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14619001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 07:38:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14619001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 07:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619001', 'tblTempUsageDetail_20' ) start [2025-03-06 07:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619001', 'tblTempUsageDetail_20' ) end [2025-03-06 07:38:20] Production.ERROR: pbx prc_insertCDR start [2025-03-06 07:38:20] Production.ERROR: pbx prc_insertCDR end [2025-03-06 07:38:20] Production.INFO: ==1374== Releasing lock... [2025-03-06 07:38:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 07:38:20] Production.INFO: 29 MB #Memory Used# [2025-03-06 07:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 04:39:05 [end_date_ymd] => 2025-03-06 07:39:05 [RateCDR] => 1 ) [2025-03-06 07:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 04:39:05' and `end` < '2025-03-06 07:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 07:39:17] Production.INFO: count ==161 [2025-03-06 07:39:17] Production.ERROR: pbx CDR StartTime 2025-03-06 04:39:05 - End Time 2025-03-06 07:39:05 [2025-03-06 07:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 07:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619006', 'tblTempUsageDetail_20' ) start [2025-03-06 07:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619006', 'tblTempUsageDetail_20' ) end [2025-03-06 07:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619006', 'tblTempVendorCDR_20' ) start [2025-03-06 07:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619006', 'tblTempVendorCDR_20' ) end [2025-03-06 07:39:17] Production.INFO: ProcessCDR(1,14619006,1,1,2) [2025-03-06 07:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14619006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 07:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14619006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 07:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14619006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 07:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14619006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 07:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619006', 'tblTempUsageDetail_20' ) start [2025-03-06 07:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619006', 'tblTempUsageDetail_20' ) end [2025-03-06 07:39:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 07:39:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 07:39:21] Production.INFO: ==1450== Releasing lock... [2025-03-06 07:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 07:39:21] Production.INFO: 29 MB #Memory Used# [2025-03-06 07:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 04:40:06 [end_date_ymd] => 2025-03-06 07:40:06 [RateCDR] => 1 ) [2025-03-06 07:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 04:40:06' and `end` < '2025-03-06 07:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 07:40:18] Production.INFO: count ==167 [2025-03-06 07:40:18] Production.ERROR: pbx CDR StartTime 2025-03-06 04:40:06 - End Time 2025-03-06 07:40:06 [2025-03-06 07:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 07:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619011', 'tblTempUsageDetail_20' ) start [2025-03-06 07:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619011', 'tblTempUsageDetail_20' ) end [2025-03-06 07:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619011', 'tblTempVendorCDR_20' ) start [2025-03-06 07:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619011', 'tblTempVendorCDR_20' ) end [2025-03-06 07:40:18] Production.INFO: ProcessCDR(1,14619011,1,1,2) [2025-03-06 07:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14619011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 07:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14619011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 07:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14619011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 07:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14619011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 07:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619011', 'tblTempUsageDetail_20' ) start [2025-03-06 07:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619011', 'tblTempUsageDetail_20' ) end [2025-03-06 07:40:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 07:40:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 07:40:21] Production.INFO: ==1558== Releasing lock... [2025-03-06 07:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 07:40:21] Production.INFO: 29 MB #Memory Used# [2025-03-06 07:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 04:41:05 [end_date_ymd] => 2025-03-06 07:41:05 [RateCDR] => 1 ) [2025-03-06 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-03-06 04:41:05' and `end` < '2025-03-06 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-03-06 07:41:17] Production.INFO: count ==167 [2025-03-06 07:41:17] Production.ERROR: pbx CDR StartTime 2025-03-06 04:41:05 - End Time 2025-03-06 07:41:05 [2025-03-06 07:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 07:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619017', 'tblTempUsageDetail_20' ) start [2025-03-06 07:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619017', 'tblTempUsageDetail_20' ) end [2025-03-06 07:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619017', 'tblTempVendorCDR_20' ) start [2025-03-06 07:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619017', 'tblTempVendorCDR_20' ) end [2025-03-06 07:41:17] Production.INFO: ProcessCDR(1,14619017,1,1,2) [2025-03-06 07:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14619017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 07:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14619017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 07:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14619017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 07:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14619017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 07:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619017', 'tblTempUsageDetail_20' ) start [2025-03-06 07:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619017', 'tblTempUsageDetail_20' ) end [2025-03-06 07:41:20] Production.ERROR: pbx prc_insertCDR start [2025-03-06 07:41:20] Production.ERROR: pbx prc_insertCDR end [2025-03-06 07:41:20] Production.INFO: ==1637== Releasing lock... [2025-03-06 07:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 07:41:20] Production.INFO: 29 MB #Memory Used# [2025-03-06 07:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 04:42:05 [end_date_ymd] => 2025-03-06 07:42:05 [RateCDR] => 1 ) [2025-03-06 07:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 04:42:05' and `end` < '2025-03-06 07:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 07:42:17] Production.INFO: count ==167 [2025-03-06 07:42:17] Production.ERROR: pbx CDR StartTime 2025-03-06 04:42:05 - End Time 2025-03-06 07:42:05 [2025-03-06 07:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 07:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619022', 'tblTempUsageDetail_20' ) start [2025-03-06 07:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619022', 'tblTempUsageDetail_20' ) end [2025-03-06 07:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619022', 'tblTempVendorCDR_20' ) start [2025-03-06 07:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619022', 'tblTempVendorCDR_20' ) end [2025-03-06 07:42:17] Production.INFO: ProcessCDR(1,14619022,1,1,2) [2025-03-06 07:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14619022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 07:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14619022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 07:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14619022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 07:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14619022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 07:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619022', 'tblTempUsageDetail_20' ) start [2025-03-06 07:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619022', 'tblTempUsageDetail_20' ) end [2025-03-06 07:42:20] Production.ERROR: pbx prc_insertCDR start [2025-03-06 07:42:20] Production.ERROR: pbx prc_insertCDR end [2025-03-06 07:42:20] Production.INFO: ==1712== Releasing lock... [2025-03-06 07:42:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 07:42:20] Production.INFO: 29 MB #Memory Used# [2025-03-06 07:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 04:43:06 [end_date_ymd] => 2025-03-06 07:43:06 [RateCDR] => 1 ) [2025-03-06 07: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-03-06 04:43:06' and `end` < '2025-03-06 07: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-03-06 07:43:18] Production.INFO: count ==167 [2025-03-06 07:43:18] Production.ERROR: pbx CDR StartTime 2025-03-06 04:43:06 - End Time 2025-03-06 07:43:06 [2025-03-06 07:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619027', 'tblTempUsageDetail_20' ) start [2025-03-06 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619027', 'tblTempUsageDetail_20' ) end [2025-03-06 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619027', 'tblTempVendorCDR_20' ) start [2025-03-06 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619027', 'tblTempVendorCDR_20' ) end [2025-03-06 07:43:18] Production.INFO: ProcessCDR(1,14619027,1,1,2) [2025-03-06 07:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14619027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 07:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14619027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 07:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14619027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 07:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14619027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 07:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619027', 'tblTempUsageDetail_20' ) start [2025-03-06 07:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619027', 'tblTempUsageDetail_20' ) end [2025-03-06 07:43:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 07:43:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 07:43:21] Production.INFO: ==1785== Releasing lock... [2025-03-06 07:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 07:43:21] Production.INFO: 29 MB #Memory Used# [2025-03-06 07:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 04:44:05 [end_date_ymd] => 2025-03-06 07:44:05 [RateCDR] => 1 ) [2025-03-06 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-03-06 04:44:05' and `end` < '2025-03-06 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-03-06 07:44:17] Production.INFO: count ==167 [2025-03-06 07:44:17] Production.ERROR: pbx CDR StartTime 2025-03-06 04:44:05 - End Time 2025-03-06 07:44:05 [2025-03-06 07:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 07:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619032', 'tblTempUsageDetail_20' ) start [2025-03-06 07:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619032', 'tblTempUsageDetail_20' ) end [2025-03-06 07:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619032', 'tblTempVendorCDR_20' ) start [2025-03-06 07:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619032', 'tblTempVendorCDR_20' ) end [2025-03-06 07:44:17] Production.INFO: ProcessCDR(1,14619032,1,1,2) [2025-03-06 07:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14619032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 07:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14619032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 07:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14619032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 07:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14619032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 07:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619032', 'tblTempUsageDetail_20' ) start [2025-03-06 07:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619032', 'tblTempUsageDetail_20' ) end [2025-03-06 07:44:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 07:44:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 07:44:21] Production.INFO: ==1860== Releasing lock... [2025-03-06 07:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 07:44:21] Production.INFO: 29 MB #Memory Used# [2025-03-06 07:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 04:45:06 [end_date_ymd] => 2025-03-06 07:45:06 [RateCDR] => 1 ) [2025-03-06 07:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 04:45:06' and `end` < '2025-03-06 07:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 07:45:18] Production.INFO: count ==167 [2025-03-06 07:45:18] Production.ERROR: pbx CDR StartTime 2025-03-06 04:45:06 - End Time 2025-03-06 07:45:06 [2025-03-06 07:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619037', 'tblTempUsageDetail_20' ) start [2025-03-06 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619037', 'tblTempUsageDetail_20' ) end [2025-03-06 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619037', 'tblTempVendorCDR_20' ) start [2025-03-06 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619037', 'tblTempVendorCDR_20' ) end [2025-03-06 07:45:18] Production.INFO: ProcessCDR(1,14619037,1,1,2) [2025-03-06 07:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14619037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 07:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14619037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 07:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14619037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 07:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14619037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 07:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619037', 'tblTempUsageDetail_20' ) start [2025-03-06 07:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619037', 'tblTempUsageDetail_20' ) end [2025-03-06 07:45:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 07:45:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 07:45:21] Production.INFO: ==1976== Releasing lock... [2025-03-06 07:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 07:45:21] Production.INFO: 29 MB #Memory Used# [2025-03-06 07:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 04:46:05 [end_date_ymd] => 2025-03-06 07:46:05 [RateCDR] => 1 ) [2025-03-06 07:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 04:46:05' and `end` < '2025-03-06 07:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 07:46:17] Production.INFO: count ==167 [2025-03-06 07:46:17] Production.ERROR: pbx CDR StartTime 2025-03-06 04:46:05 - End Time 2025-03-06 07:46:05 [2025-03-06 07:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 07:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619042', 'tblTempUsageDetail_20' ) start [2025-03-06 07:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619042', 'tblTempUsageDetail_20' ) end [2025-03-06 07:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619042', 'tblTempVendorCDR_20' ) start [2025-03-06 07:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619042', 'tblTempVendorCDR_20' ) end [2025-03-06 07:46:17] Production.INFO: ProcessCDR(1,14619042,1,1,2) [2025-03-06 07:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14619042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 07:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14619042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 07:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14619042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 07:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14619042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 07:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619042', 'tblTempUsageDetail_20' ) start [2025-03-06 07:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619042', 'tblTempUsageDetail_20' ) end [2025-03-06 07:46:20] Production.ERROR: pbx prc_insertCDR start [2025-03-06 07:46:20] Production.ERROR: pbx prc_insertCDR end [2025-03-06 07:46:21] Production.INFO: ==2049== Releasing lock... [2025-03-06 07:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 07:46:21] Production.INFO: 29 MB #Memory Used# [2025-03-06 07:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 04:47:05 [end_date_ymd] => 2025-03-06 07:47:05 [RateCDR] => 1 ) [2025-03-06 07:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 04:47:05' and `end` < '2025-03-06 07:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 07:47:17] Production.INFO: count ==167 [2025-03-06 07:47:17] Production.ERROR: pbx CDR StartTime 2025-03-06 04:47:05 - End Time 2025-03-06 07:47:05 [2025-03-06 07:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 07:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619047', 'tblTempUsageDetail_20' ) start [2025-03-06 07:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619047', 'tblTempUsageDetail_20' ) end [2025-03-06 07:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619047', 'tblTempVendorCDR_20' ) start [2025-03-06 07:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619047', 'tblTempVendorCDR_20' ) end [2025-03-06 07:47:17] Production.INFO: ProcessCDR(1,14619047,1,1,2) [2025-03-06 07:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14619047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 07:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14619047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 07:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14619047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 07:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14619047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 07:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619047', 'tblTempUsageDetail_20' ) start [2025-03-06 07:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619047', 'tblTempUsageDetail_20' ) end [2025-03-06 07:47:20] Production.ERROR: pbx prc_insertCDR start [2025-03-06 07:47:20] Production.ERROR: pbx prc_insertCDR end [2025-03-06 07:47:20] Production.INFO: ==2121== Releasing lock... [2025-03-06 07:47:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 07:47:20] Production.INFO: 29 MB #Memory Used# [2025-03-06 07:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 04:48:05 [end_date_ymd] => 2025-03-06 07:48:05 [RateCDR] => 1 ) [2025-03-06 07:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 04:48:05' and `end` < '2025-03-06 07:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 07:48:17] Production.INFO: count ==167 [2025-03-06 07:48:17] Production.ERROR: pbx CDR StartTime 2025-03-06 04:48:05 - End Time 2025-03-06 07:48:05 [2025-03-06 07:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 07:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619052', 'tblTempUsageDetail_20' ) start [2025-03-06 07:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619052', 'tblTempUsageDetail_20' ) end [2025-03-06 07:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619052', 'tblTempVendorCDR_20' ) start [2025-03-06 07:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619052', 'tblTempVendorCDR_20' ) end [2025-03-06 07:48:17] Production.INFO: ProcessCDR(1,14619052,1,1,2) [2025-03-06 07:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14619052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 07:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14619052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 07:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14619052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 07:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14619052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 07:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619052', 'tblTempUsageDetail_20' ) start [2025-03-06 07:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619052', 'tblTempUsageDetail_20' ) end [2025-03-06 07:48:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 07:48:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 07:48:21] Production.INFO: ==2197== Releasing lock... [2025-03-06 07:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 07:48:21] Production.INFO: 29 MB #Memory Used# [2025-03-06 07:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 04:49:06 [end_date_ymd] => 2025-03-06 07:49:06 [RateCDR] => 1 ) [2025-03-06 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-03-06 04:49:06' and `end` < '2025-03-06 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-03-06 07:49:18] Production.INFO: count ==167 [2025-03-06 07:49:18] Production.ERROR: pbx CDR StartTime 2025-03-06 04:49:06 - End Time 2025-03-06 07:49:06 [2025-03-06 07:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 07:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619057', 'tblTempUsageDetail_20' ) start [2025-03-06 07:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619057', 'tblTempUsageDetail_20' ) end [2025-03-06 07:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619057', 'tblTempVendorCDR_20' ) start [2025-03-06 07:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619057', 'tblTempVendorCDR_20' ) end [2025-03-06 07:49:18] Production.INFO: ProcessCDR(1,14619057,1,1,2) [2025-03-06 07:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14619057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 07:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14619057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 07:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14619057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 07:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14619057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 07:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619057', 'tblTempUsageDetail_20' ) start [2025-03-06 07:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619057', 'tblTempUsageDetail_20' ) end [2025-03-06 07:49:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 07:49:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 07:49:21] Production.INFO: ==2270== Releasing lock... [2025-03-06 07:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 07:49:21] Production.INFO: 29 MB #Memory Used# [2025-03-06 07:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 04:50:06 [end_date_ymd] => 2025-03-06 07:50:06 [RateCDR] => 1 ) [2025-03-06 07:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 04:50:06' and `end` < '2025-03-06 07:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 07:50:18] Production.INFO: count ==174 [2025-03-06 07:50:18] Production.ERROR: pbx CDR StartTime 2025-03-06 04:50:06 - End Time 2025-03-06 07:50:06 [2025-03-06 07:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619062', 'tblTempUsageDetail_20' ) start [2025-03-06 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619062', 'tblTempUsageDetail_20' ) end [2025-03-06 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619062', 'tblTempVendorCDR_20' ) start [2025-03-06 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619062', 'tblTempVendorCDR_20' ) end [2025-03-06 07:50:18] Production.INFO: ProcessCDR(1,14619062,1,1,2) [2025-03-06 07:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14619062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 07:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14619062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 07:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14619062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 07:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14619062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 07:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619062', 'tblTempUsageDetail_20' ) start [2025-03-06 07:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619062', 'tblTempUsageDetail_20' ) end [2025-03-06 07:50:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 07:50:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 07:50:21] Production.INFO: ==2344== Releasing lock... [2025-03-06 07:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 07:50:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-06 07:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 04:51:05 [end_date_ymd] => 2025-03-06 07:51:05 [RateCDR] => 1 ) [2025-03-06 07:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 04:51:05' and `end` < '2025-03-06 07:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 07:51:17] Production.INFO: count ==178 [2025-03-06 07:51:17] Production.ERROR: pbx CDR StartTime 2025-03-06 04:51:05 - End Time 2025-03-06 07:51:05 [2025-03-06 07:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 07:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619068', 'tblTempUsageDetail_20' ) start [2025-03-06 07:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619068', 'tblTempUsageDetail_20' ) end [2025-03-06 07:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619068', 'tblTempVendorCDR_20' ) start [2025-03-06 07:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619068', 'tblTempVendorCDR_20' ) end [2025-03-06 07:51:17] Production.INFO: ProcessCDR(1,14619068,1,1,2) [2025-03-06 07:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14619068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 07:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14619068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 07:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14619068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 07:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14619068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 07:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619068', 'tblTempUsageDetail_20' ) start [2025-03-06 07:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619068', 'tblTempUsageDetail_20' ) end [2025-03-06 07:51:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 07:51:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 07:51:21] Production.INFO: ==2420== Releasing lock... [2025-03-06 07:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 07:51:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-06 07:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 04:52:05 [end_date_ymd] => 2025-03-06 07:52:05 [RateCDR] => 1 ) [2025-03-06 07:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 04:52:05' and `end` < '2025-03-06 07:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 07:52:17] Production.INFO: count ==178 [2025-03-06 07:52:17] Production.ERROR: pbx CDR StartTime 2025-03-06 04:52:05 - End Time 2025-03-06 07:52:05 [2025-03-06 07:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 07:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619073', 'tblTempUsageDetail_20' ) start [2025-03-06 07:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619073', 'tblTempUsageDetail_20' ) end [2025-03-06 07:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619073', 'tblTempVendorCDR_20' ) start [2025-03-06 07:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619073', 'tblTempVendorCDR_20' ) end [2025-03-06 07:52:17] Production.INFO: ProcessCDR(1,14619073,1,1,2) [2025-03-06 07:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14619073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 07:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14619073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 07:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14619073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 07:52:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14619073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 07:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619073', 'tblTempUsageDetail_20' ) start [2025-03-06 07:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619073', 'tblTempUsageDetail_20' ) end [2025-03-06 07:52:20] Production.ERROR: pbx prc_insertCDR start [2025-03-06 07:52:20] Production.ERROR: pbx prc_insertCDR end [2025-03-06 07:52:20] Production.INFO: ==2490== Releasing lock... [2025-03-06 07:52:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 07:52:20] Production.INFO: 29.25 MB #Memory Used# [2025-03-06 07:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 04:53:06 [end_date_ymd] => 2025-03-06 07:53:06 [RateCDR] => 1 ) [2025-03-06 07: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-03-06 04:53:06' and `end` < '2025-03-06 07: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-03-06 07:53:18] Production.INFO: count ==178 [2025-03-06 07:53:18] Production.ERROR: pbx CDR StartTime 2025-03-06 04:53:06 - End Time 2025-03-06 07:53:06 [2025-03-06 07:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619078', 'tblTempUsageDetail_20' ) start [2025-03-06 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619078', 'tblTempUsageDetail_20' ) end [2025-03-06 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619078', 'tblTempVendorCDR_20' ) start [2025-03-06 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619078', 'tblTempVendorCDR_20' ) end [2025-03-06 07:53:18] Production.INFO: ProcessCDR(1,14619078,1,1,2) [2025-03-06 07:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14619078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 07:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14619078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 07:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14619078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 07:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14619078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 07:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619078', 'tblTempUsageDetail_20' ) start [2025-03-06 07:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619078', 'tblTempUsageDetail_20' ) end [2025-03-06 07:53:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 07:53:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 07:53:21] Production.INFO: ==2561== Releasing lock... [2025-03-06 07:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 07:53:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-06 07:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 04:54:05 [end_date_ymd] => 2025-03-06 07:54:05 [RateCDR] => 1 ) [2025-03-06 07:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 04:54:05' and `end` < '2025-03-06 07:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 07:54:17] Production.INFO: count ==182 [2025-03-06 07:54:17] Production.ERROR: pbx CDR StartTime 2025-03-06 04:54:05 - End Time 2025-03-06 07:54:05 [2025-03-06 07:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 07:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619083', 'tblTempUsageDetail_20' ) start [2025-03-06 07:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619083', 'tblTempUsageDetail_20' ) end [2025-03-06 07:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619083', 'tblTempVendorCDR_20' ) start [2025-03-06 07:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619083', 'tblTempVendorCDR_20' ) end [2025-03-06 07:54:17] Production.INFO: ProcessCDR(1,14619083,1,1,2) [2025-03-06 07:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14619083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 07:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14619083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 07:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14619083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 07:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14619083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 07:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619083', 'tblTempUsageDetail_20' ) start [2025-03-06 07:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619083', 'tblTempUsageDetail_20' ) end [2025-03-06 07:54:20] Production.ERROR: pbx prc_insertCDR start [2025-03-06 07:54:20] Production.ERROR: pbx prc_insertCDR end [2025-03-06 07:54:20] Production.INFO: ==2634== Releasing lock... [2025-03-06 07:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 07:54:20] Production.INFO: 29.25 MB #Memory Used# [2025-03-06 07:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 04:55:05 [end_date_ymd] => 2025-03-06 07:55:05 [RateCDR] => 1 ) [2025-03-06 07:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 04:55:05' and `end` < '2025-03-06 07:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 07:55:17] Production.INFO: count ==182 [2025-03-06 07:55:17] Production.ERROR: pbx CDR StartTime 2025-03-06 04:55:05 - End Time 2025-03-06 07:55:05 [2025-03-06 07:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 07:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619088', 'tblTempUsageDetail_20' ) start [2025-03-06 07:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619088', 'tblTempUsageDetail_20' ) end [2025-03-06 07:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619088', 'tblTempVendorCDR_20' ) start [2025-03-06 07:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619088', 'tblTempVendorCDR_20' ) end [2025-03-06 07:55:17] Production.INFO: ProcessCDR(1,14619088,1,1,2) [2025-03-06 07:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14619088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 07:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14619088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 07:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14619088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 07:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14619088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 07:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619088', 'tblTempUsageDetail_20' ) start [2025-03-06 07:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619088', 'tblTempUsageDetail_20' ) end [2025-03-06 07:55:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 07:55:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 07:55:21] Production.INFO: ==2706== Releasing lock... [2025-03-06 07:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 07:55:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-06 07:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 04:56:05 [end_date_ymd] => 2025-03-06 07:56:05 [RateCDR] => 1 ) [2025-03-06 07:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 04:56:05' and `end` < '2025-03-06 07:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 07:56:17] Production.INFO: count ==187 [2025-03-06 07:56:17] Production.ERROR: pbx CDR StartTime 2025-03-06 04:56:05 - End Time 2025-03-06 07:56:05 [2025-03-06 07:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 07:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619093', 'tblTempUsageDetail_20' ) start [2025-03-06 07:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619093', 'tblTempUsageDetail_20' ) end [2025-03-06 07:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619093', 'tblTempVendorCDR_20' ) start [2025-03-06 07:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619093', 'tblTempVendorCDR_20' ) end [2025-03-06 07:56:17] Production.INFO: ProcessCDR(1,14619093,1,1,2) [2025-03-06 07:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14619093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 07:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14619093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 07:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14619093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 07:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14619093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 07:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619093', 'tblTempUsageDetail_20' ) start [2025-03-06 07:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619093', 'tblTempUsageDetail_20' ) end [2025-03-06 07:56:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 07:56:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 07:56:21] Production.INFO: ==2782== Releasing lock... [2025-03-06 07:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 07:56:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-06 07:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 04:57:06 [end_date_ymd] => 2025-03-06 07:57:06 [RateCDR] => 1 ) [2025-03-06 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-03-06 04:57:06' and `end` < '2025-03-06 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-03-06 07:57:18] Production.INFO: count ==213 [2025-03-06 07:57:18] Production.ERROR: pbx CDR StartTime 2025-03-06 04:57:06 - End Time 2025-03-06 07:57:06 [2025-03-06 07:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 07:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619098', 'tblTempUsageDetail_20' ) start [2025-03-06 07:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619098', 'tblTempUsageDetail_20' ) end [2025-03-06 07:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619098', 'tblTempVendorCDR_20' ) start [2025-03-06 07:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619098', 'tblTempVendorCDR_20' ) end [2025-03-06 07:57:18] Production.INFO: ProcessCDR(1,14619098,1,1,2) [2025-03-06 07:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14619098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 07:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14619098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 07:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14619098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 07:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14619098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 07:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619098', 'tblTempUsageDetail_20' ) start [2025-03-06 07:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619098', 'tblTempUsageDetail_20' ) end [2025-03-06 07:57:23] Production.ERROR: pbx prc_insertCDR start [2025-03-06 07:57:23] Production.ERROR: pbx prc_insertCDR end [2025-03-06 07:57:23] Production.INFO: ==2852== Releasing lock... [2025-03-06 07:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 07:57:23] Production.INFO: 29.75 MB #Memory Used# [2025-03-06 07:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 04:58:05 [end_date_ymd] => 2025-03-06 07:58:05 [RateCDR] => 1 ) [2025-03-06 07:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 04:58:05' and `end` < '2025-03-06 07:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 07:58:17] Production.INFO: count ==218 [2025-03-06 07:58:17] Production.ERROR: pbx CDR StartTime 2025-03-06 04:58:05 - End Time 2025-03-06 07:58:05 [2025-03-06 07:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 07:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619103', 'tblTempUsageDetail_20' ) start [2025-03-06 07:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619103', 'tblTempUsageDetail_20' ) end [2025-03-06 07:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619103', 'tblTempVendorCDR_20' ) start [2025-03-06 07:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619103', 'tblTempVendorCDR_20' ) end [2025-03-06 07:58:17] Production.INFO: ProcessCDR(1,14619103,1,1,2) [2025-03-06 07:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14619103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 07:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14619103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 07:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14619103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 07:58:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14619103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 07:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619103', 'tblTempUsageDetail_20' ) start [2025-03-06 07:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619103', 'tblTempUsageDetail_20' ) end [2025-03-06 07:58:20] Production.ERROR: pbx prc_insertCDR start [2025-03-06 07:58:20] Production.ERROR: pbx prc_insertCDR end [2025-03-06 07:58:20] Production.INFO: ==2923== Releasing lock... [2025-03-06 07:58:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 07:58:20] Production.INFO: 29.75 MB #Memory Used# [2025-03-06 07:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 04:59:05 [end_date_ymd] => 2025-03-06 07:59:05 [RateCDR] => 1 ) [2025-03-06 07:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 04:59:05' and `end` < '2025-03-06 07:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 07:59:17] Production.INFO: count ==218 [2025-03-06 07:59:17] Production.ERROR: pbx CDR StartTime 2025-03-06 04:59:05 - End Time 2025-03-06 07:59:05 [2025-03-06 07:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 07:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619108', 'tblTempUsageDetail_20' ) start [2025-03-06 07:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619108', 'tblTempUsageDetail_20' ) end [2025-03-06 07:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619108', 'tblTempVendorCDR_20' ) start [2025-03-06 07:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619108', 'tblTempVendorCDR_20' ) end [2025-03-06 07:59:17] Production.INFO: ProcessCDR(1,14619108,1,1,2) [2025-03-06 07:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14619108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 07:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14619108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 07:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14619108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 07:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14619108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 07:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619108', 'tblTempUsageDetail_20' ) start [2025-03-06 07:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619108', 'tblTempUsageDetail_20' ) end [2025-03-06 07:59:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 07:59:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 07:59:21] Production.INFO: ==2994== Releasing lock... [2025-03-06 07:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 07:59:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-06 08:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 05:00:06 [end_date_ymd] => 2025-03-06 08:00:06 [RateCDR] => 1 ) [2025-03-06 08:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 05:00:06' and `end` < '2025-03-06 08:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 08:00:18] Production.INFO: count ==236 [2025-03-06 08:00:18] Production.ERROR: pbx CDR StartTime 2025-03-06 05:00:06 - End Time 2025-03-06 08:00:06 [2025-03-06 08:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619114', 'tblTempUsageDetail_20' ) start [2025-03-06 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619114', 'tblTempUsageDetail_20' ) end [2025-03-06 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619114', 'tblTempVendorCDR_20' ) start [2025-03-06 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619114', 'tblTempVendorCDR_20' ) end [2025-03-06 08:00:18] Production.INFO: ProcessCDR(1,14619114,1,1,2) [2025-03-06 08:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14619114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 08:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14619114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 08:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14619114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 08:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14619114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 08:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619114', 'tblTempUsageDetail_20' ) start [2025-03-06 08:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619114', 'tblTempUsageDetail_20' ) end [2025-03-06 08:00:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 08:00:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 08:00:22] Production.INFO: ==3072== Releasing lock... [2025-03-06 08:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 08:00:22] Production.INFO: 29.75 MB #Memory Used# [2025-03-06 08:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 05:01:05 [end_date_ymd] => 2025-03-06 08:01:05 [RateCDR] => 1 ) [2025-03-06 08:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 05:01:05' and `end` < '2025-03-06 08:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 08:01:17] Production.INFO: count ==255 [2025-03-06 08:01:17] Production.ERROR: pbx CDR StartTime 2025-03-06 05:01:05 - End Time 2025-03-06 08:01:05 [2025-03-06 08:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 08:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619119', 'tblTempUsageDetail_20' ) start [2025-03-06 08:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619119', 'tblTempUsageDetail_20' ) end [2025-03-06 08:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619119', 'tblTempVendorCDR_20' ) start [2025-03-06 08:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619119', 'tblTempVendorCDR_20' ) end [2025-03-06 08:01:17] Production.INFO: ProcessCDR(1,14619119,1,1,2) [2025-03-06 08:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14619119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 08:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14619119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 08:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14619119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 08:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14619119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 08:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619119', 'tblTempUsageDetail_20' ) start [2025-03-06 08:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619119', 'tblTempUsageDetail_20' ) end [2025-03-06 08:01:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 08:01:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 08:01:22] Production.INFO: ==3196== Releasing lock... [2025-03-06 08:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 08:01:22] Production.INFO: 30.25 MB #Memory Used# [2025-03-06 08:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 05:02:06 [end_date_ymd] => 2025-03-06 08:02:06 [RateCDR] => 1 ) [2025-03-06 08: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-03-06 05:02:06' and `end` < '2025-03-06 08: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-03-06 08:02:18] Production.INFO: count ==255 [2025-03-06 08:02:18] Production.ERROR: pbx CDR StartTime 2025-03-06 05:02:06 - End Time 2025-03-06 08:02:06 [2025-03-06 08:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619124', 'tblTempUsageDetail_20' ) start [2025-03-06 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619124', 'tblTempUsageDetail_20' ) end [2025-03-06 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619124', 'tblTempVendorCDR_20' ) start [2025-03-06 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619124', 'tblTempVendorCDR_20' ) end [2025-03-06 08:02:18] Production.INFO: ProcessCDR(1,14619124,1,1,2) [2025-03-06 08:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14619124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 08:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14619124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 08:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14619124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 08:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14619124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 08:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619124', 'tblTempUsageDetail_20' ) start [2025-03-06 08:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619124', 'tblTempUsageDetail_20' ) end [2025-03-06 08:02:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 08:02:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 08:02:22] Production.INFO: ==3268== Releasing lock... [2025-03-06 08:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 08:02:22] Production.INFO: 30.25 MB #Memory Used# [2025-03-06 08:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 05:03:06 [end_date_ymd] => 2025-03-06 08:03:06 [RateCDR] => 1 ) [2025-03-06 08:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 05:03:06' and `end` < '2025-03-06 08:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 08:03:18] Production.INFO: count ==262 [2025-03-06 08:03:18] Production.ERROR: pbx CDR StartTime 2025-03-06 05:03:06 - End Time 2025-03-06 08:03:06 [2025-03-06 08:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619129', 'tblTempUsageDetail_20' ) start [2025-03-06 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619129', 'tblTempUsageDetail_20' ) end [2025-03-06 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619129', 'tblTempVendorCDR_20' ) start [2025-03-06 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619129', 'tblTempVendorCDR_20' ) end [2025-03-06 08:03:18] Production.INFO: ProcessCDR(1,14619129,1,1,2) [2025-03-06 08:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14619129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 08:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14619129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 08:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14619129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 08:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14619129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 08:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619129', 'tblTempUsageDetail_20' ) start [2025-03-06 08:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619129', 'tblTempUsageDetail_20' ) end [2025-03-06 08:03:23] Production.ERROR: pbx prc_insertCDR start [2025-03-06 08:03:23] Production.ERROR: pbx prc_insertCDR end [2025-03-06 08:03:23] Production.INFO: ==3339== Releasing lock... [2025-03-06 08:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 08:03:23] Production.INFO: 30 MB #Memory Used# [2025-03-06 08:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 05:04:06 [end_date_ymd] => 2025-03-06 08:04:06 [RateCDR] => 1 ) [2025-03-06 08: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-03-06 05:04:06' and `end` < '2025-03-06 08: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-03-06 08:04:18] Production.INFO: count ==264 [2025-03-06 08:04:18] Production.ERROR: pbx CDR StartTime 2025-03-06 05:04:06 - End Time 2025-03-06 08:04:06 [2025-03-06 08:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619134', 'tblTempUsageDetail_20' ) start [2025-03-06 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619134', 'tblTempUsageDetail_20' ) end [2025-03-06 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619134', 'tblTempVendorCDR_20' ) start [2025-03-06 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619134', 'tblTempVendorCDR_20' ) end [2025-03-06 08:04:18] Production.INFO: ProcessCDR(1,14619134,1,1,2) [2025-03-06 08:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14619134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 08:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14619134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 08:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14619134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 08:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14619134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 08:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619134', 'tblTempUsageDetail_20' ) start [2025-03-06 08:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619134', 'tblTempUsageDetail_20' ) end [2025-03-06 08:04:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 08:04:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 08:04:21] Production.INFO: ==3410== Releasing lock... [2025-03-06 08:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 08:04:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-06 08:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 05:05:06 [end_date_ymd] => 2025-03-06 08:05:06 [RateCDR] => 1 ) [2025-03-06 08:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 05:05:06' and `end` < '2025-03-06 08:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 08:05:18] Production.INFO: count ==267 [2025-03-06 08:05:18] Production.ERROR: pbx CDR StartTime 2025-03-06 05:05:06 - End Time 2025-03-06 08:05:06 [2025-03-06 08:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619139', 'tblTempUsageDetail_20' ) start [2025-03-06 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619139', 'tblTempUsageDetail_20' ) end [2025-03-06 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619139', 'tblTempVendorCDR_20' ) start [2025-03-06 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619139', 'tblTempVendorCDR_20' ) end [2025-03-06 08:05:18] Production.INFO: ProcessCDR(1,14619139,1,1,2) [2025-03-06 08:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14619139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 08:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14619139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 08:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14619139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 08:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14619139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 08:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619139', 'tblTempUsageDetail_20' ) start [2025-03-06 08:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619139', 'tblTempUsageDetail_20' ) end [2025-03-06 08:05:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 08:05:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 08:05:21] Production.INFO: ==3481== Releasing lock... [2025-03-06 08:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 08:05:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-06 08:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 05:06:05 [end_date_ymd] => 2025-03-06 08:06:05 [RateCDR] => 1 ) [2025-03-06 08:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 05:06:05' and `end` < '2025-03-06 08:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 08:06:17] Production.INFO: count ==268 [2025-03-06 08:06:17] Production.ERROR: pbx CDR StartTime 2025-03-06 05:06:05 - End Time 2025-03-06 08:06:05 [2025-03-06 08:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 08:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619144', 'tblTempUsageDetail_20' ) start [2025-03-06 08:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619144', 'tblTempUsageDetail_20' ) end [2025-03-06 08:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619144', 'tblTempVendorCDR_20' ) start [2025-03-06 08:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619144', 'tblTempVendorCDR_20' ) end [2025-03-06 08:06:17] Production.INFO: ProcessCDR(1,14619144,1,1,2) [2025-03-06 08:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14619144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 08:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14619144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 08:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14619144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 08:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14619144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 08:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619144', 'tblTempUsageDetail_20' ) start [2025-03-06 08:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619144', 'tblTempUsageDetail_20' ) end [2025-03-06 08:06:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 08:06:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 08:06:22] Production.INFO: ==3552== Releasing lock... [2025-03-06 08:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 08:06:22] Production.INFO: 30.25 MB #Memory Used# [2025-03-06 08:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 05:07:05 [end_date_ymd] => 2025-03-06 08:07:05 [RateCDR] => 1 ) [2025-03-06 08:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 05:07:05' and `end` < '2025-03-06 08:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 08:07:17] Production.INFO: count ==268 [2025-03-06 08:07:17] Production.ERROR: pbx CDR StartTime 2025-03-06 05:07:05 - End Time 2025-03-06 08:07:05 [2025-03-06 08:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 08:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619149', 'tblTempUsageDetail_20' ) start [2025-03-06 08:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619149', 'tblTempUsageDetail_20' ) end [2025-03-06 08:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619149', 'tblTempVendorCDR_20' ) start [2025-03-06 08:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619149', 'tblTempVendorCDR_20' ) end [2025-03-06 08:07:17] Production.INFO: ProcessCDR(1,14619149,1,1,2) [2025-03-06 08:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14619149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 08:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14619149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 08:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14619149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 08:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14619149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 08:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619149', 'tblTempUsageDetail_20' ) start [2025-03-06 08:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619149', 'tblTempUsageDetail_20' ) end [2025-03-06 08:07:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 08:07:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 08:07:21] Production.INFO: ==3621== Releasing lock... [2025-03-06 08:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 08:07:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-06 08:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 05:08:05 [end_date_ymd] => 2025-03-06 08:08:05 [RateCDR] => 1 ) [2025-03-06 08:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 05:08:05' and `end` < '2025-03-06 08:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 08:08:17] Production.INFO: count ==268 [2025-03-06 08:08:17] Production.ERROR: pbx CDR StartTime 2025-03-06 05:08:05 - End Time 2025-03-06 08:08:05 [2025-03-06 08:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 08:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619154', 'tblTempUsageDetail_20' ) start [2025-03-06 08:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619154', 'tblTempUsageDetail_20' ) end [2025-03-06 08:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619154', 'tblTempVendorCDR_20' ) start [2025-03-06 08:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619154', 'tblTempVendorCDR_20' ) end [2025-03-06 08:08:17] Production.INFO: ProcessCDR(1,14619154,1,1,2) [2025-03-06 08:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14619154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 08:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14619154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 08:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14619154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 08:08:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14619154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 08:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619154', 'tblTempUsageDetail_20' ) start [2025-03-06 08:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619154', 'tblTempUsageDetail_20' ) end [2025-03-06 08:08:20] Production.ERROR: pbx prc_insertCDR start [2025-03-06 08:08:20] Production.ERROR: pbx prc_insertCDR end [2025-03-06 08:08:20] Production.INFO: ==3699== Releasing lock... [2025-03-06 08:08:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 08:08:20] Production.INFO: 30.25 MB #Memory Used# [2025-03-06 08:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 05:09:05 [end_date_ymd] => 2025-03-06 08:09:05 [RateCDR] => 1 ) [2025-03-06 08:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 05:09:05' and `end` < '2025-03-06 08:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 08:09:17] Production.INFO: count ==282 [2025-03-06 08:09:17] Production.ERROR: pbx CDR StartTime 2025-03-06 05:09:05 - End Time 2025-03-06 08:09:05 [2025-03-06 08:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 08:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619159', 'tblTempUsageDetail_20' ) start [2025-03-06 08:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619159', 'tblTempUsageDetail_20' ) end [2025-03-06 08:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619159', 'tblTempVendorCDR_20' ) start [2025-03-06 08:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619159', 'tblTempVendorCDR_20' ) end [2025-03-06 08:09:17] Production.INFO: ProcessCDR(1,14619159,1,1,2) [2025-03-06 08:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14619159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 08:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14619159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 08:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14619159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 08:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14619159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 08:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619159', 'tblTempUsageDetail_20' ) start [2025-03-06 08:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619159', 'tblTempUsageDetail_20' ) end [2025-03-06 08:09:20] Production.ERROR: pbx prc_insertCDR start [2025-03-06 08:09:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 08:09:21] Production.INFO: ==3769== Releasing lock... [2025-03-06 08:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 08:09:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-06 08:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 05:10:05 [end_date_ymd] => 2025-03-06 08:10:05 [RateCDR] => 1 ) [2025-03-06 08: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-03-06 05:10:05' and `end` < '2025-03-06 08: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-03-06 08:10:17] Production.INFO: count ==287 [2025-03-06 08:10:17] Production.ERROR: pbx CDR StartTime 2025-03-06 05:10:05 - End Time 2025-03-06 08:10:05 [2025-03-06 08:10:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 08:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619165', 'tblTempUsageDetail_20' ) start [2025-03-06 08:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619165', 'tblTempUsageDetail_20' ) end [2025-03-06 08:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619165', 'tblTempVendorCDR_20' ) start [2025-03-06 08:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619165', 'tblTempVendorCDR_20' ) end [2025-03-06 08:10:17] Production.INFO: ProcessCDR(1,14619165,1,1,2) [2025-03-06 08:10:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14619165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 08:10:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14619165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 08:10:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14619165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 08:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14619165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 08:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619165', 'tblTempUsageDetail_20' ) start [2025-03-06 08:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619165', 'tblTempUsageDetail_20' ) end [2025-03-06 08:10:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 08:10:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 08:10:21] Production.INFO: ==3844== Releasing lock... [2025-03-06 08:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 08:10:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-06 08:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 05:11:05 [end_date_ymd] => 2025-03-06 08:11:05 [RateCDR] => 1 ) [2025-03-06 08: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-03-06 05:11:05' and `end` < '2025-03-06 08: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-03-06 08:11:17] Production.INFO: count ==321 [2025-03-06 08:11:17] Production.ERROR: pbx CDR StartTime 2025-03-06 05:11:05 - End Time 2025-03-06 08:11:05 [2025-03-06 08:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 08:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619170', 'tblTempUsageDetail_20' ) start [2025-03-06 08:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619170', 'tblTempUsageDetail_20' ) end [2025-03-06 08:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619170', 'tblTempVendorCDR_20' ) start [2025-03-06 08:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619170', 'tblTempVendorCDR_20' ) end [2025-03-06 08:11:17] Production.INFO: ProcessCDR(1,14619170,1,1,2) [2025-03-06 08:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14619170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 08:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14619170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 08:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14619170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 08:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14619170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 08:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619170', 'tblTempUsageDetail_20' ) start [2025-03-06 08:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619170', 'tblTempUsageDetail_20' ) end [2025-03-06 08:11:20] Production.ERROR: pbx prc_insertCDR start [2025-03-06 08:11:20] Production.ERROR: pbx prc_insertCDR end [2025-03-06 08:11:20] Production.INFO: ==3919== Releasing lock... [2025-03-06 08:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 08:11:20] Production.INFO: 30.5 MB #Memory Used# [2025-03-06 08:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 05:12:06 [end_date_ymd] => 2025-03-06 08:12:06 [RateCDR] => 1 ) [2025-03-06 08: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-03-06 05:12:06' and `end` < '2025-03-06 08: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-03-06 08:12:18] Production.INFO: count ==322 [2025-03-06 08:12:18] Production.ERROR: pbx CDR StartTime 2025-03-06 05:12:06 - End Time 2025-03-06 08:12:06 [2025-03-06 08:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619175', 'tblTempUsageDetail_20' ) start [2025-03-06 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619175', 'tblTempUsageDetail_20' ) end [2025-03-06 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619175', 'tblTempVendorCDR_20' ) start [2025-03-06 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619175', 'tblTempVendorCDR_20' ) end [2025-03-06 08:12:18] Production.INFO: ProcessCDR(1,14619175,1,1,2) [2025-03-06 08:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14619175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 08:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14619175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 08:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14619175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 08:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14619175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 08:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619175', 'tblTempUsageDetail_20' ) start [2025-03-06 08:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619175', 'tblTempUsageDetail_20' ) end [2025-03-06 08:12:23] Production.ERROR: pbx prc_insertCDR start [2025-03-06 08:12:23] Production.ERROR: pbx prc_insertCDR end [2025-03-06 08:12:23] Production.INFO: ==3995== Releasing lock... [2025-03-06 08:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 08:12:23] Production.INFO: 30.5 MB #Memory Used# [2025-03-06 08:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 05:13:05 [end_date_ymd] => 2025-03-06 08:13:05 [RateCDR] => 1 ) [2025-03-06 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-03-06 05:13:05' and `end` < '2025-03-06 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-03-06 08:13:17] Production.INFO: count ==322 [2025-03-06 08:13:17] Production.ERROR: pbx CDR StartTime 2025-03-06 05:13:05 - End Time 2025-03-06 08:13:05 [2025-03-06 08:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 08:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619180', 'tblTempUsageDetail_20' ) start [2025-03-06 08:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619180', 'tblTempUsageDetail_20' ) end [2025-03-06 08:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619180', 'tblTempVendorCDR_20' ) start [2025-03-06 08:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619180', 'tblTempVendorCDR_20' ) end [2025-03-06 08:13:17] Production.INFO: ProcessCDR(1,14619180,1,1,2) [2025-03-06 08:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14619180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 08:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14619180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 08:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14619180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 08:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14619180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 08:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619180', 'tblTempUsageDetail_20' ) start [2025-03-06 08:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619180', 'tblTempUsageDetail_20' ) end [2025-03-06 08:13:20] Production.ERROR: pbx prc_insertCDR start [2025-03-06 08:13:20] Production.ERROR: pbx prc_insertCDR end [2025-03-06 08:13:20] Production.INFO: ==4068== Releasing lock... [2025-03-06 08:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 08:13:20] Production.INFO: 30.5 MB #Memory Used# [2025-03-06 08:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 05:14:06 [end_date_ymd] => 2025-03-06 08:14:06 [RateCDR] => 1 ) [2025-03-06 08: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-03-06 05:14:06' and `end` < '2025-03-06 08: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-03-06 08:14:18] Production.INFO: count ==324 [2025-03-06 08:14:18] Production.ERROR: pbx CDR StartTime 2025-03-06 05:14:06 - End Time 2025-03-06 08:14:06 [2025-03-06 08:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619185', 'tblTempUsageDetail_20' ) start [2025-03-06 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619185', 'tblTempUsageDetail_20' ) end [2025-03-06 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619185', 'tblTempVendorCDR_20' ) start [2025-03-06 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619185', 'tblTempVendorCDR_20' ) end [2025-03-06 08:14:18] Production.INFO: ProcessCDR(1,14619185,1,1,2) [2025-03-06 08:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14619185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 08:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14619185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 08:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14619185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 08:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14619185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 08:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619185', 'tblTempUsageDetail_20' ) start [2025-03-06 08:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619185', 'tblTempUsageDetail_20' ) end [2025-03-06 08:14:23] Production.ERROR: pbx prc_insertCDR start [2025-03-06 08:14:23] Production.ERROR: pbx prc_insertCDR end [2025-03-06 08:14:23] Production.INFO: ==4140== Releasing lock... [2025-03-06 08:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 08:14:23] Production.INFO: 31 MB #Memory Used# [2025-03-06 08:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 05:15:05 [end_date_ymd] => 2025-03-06 08:15:05 [RateCDR] => 1 ) [2025-03-06 08: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-03-06 05:15:05' and `end` < '2025-03-06 08:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 08:15:18] Production.INFO: count ==329 [2025-03-06 08:15:18] Production.ERROR: pbx CDR StartTime 2025-03-06 05:15:05 - End Time 2025-03-06 08:15:05 [2025-03-06 08:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619190', 'tblTempUsageDetail_20' ) start [2025-03-06 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619190', 'tblTempUsageDetail_20' ) end [2025-03-06 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619190', 'tblTempVendorCDR_20' ) start [2025-03-06 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619190', 'tblTempVendorCDR_20' ) end [2025-03-06 08:15:18] Production.INFO: ProcessCDR(1,14619190,1,1,2) [2025-03-06 08:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14619190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 08:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14619190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 08:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14619190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 08:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14619190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 08:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619190', 'tblTempUsageDetail_20' ) start [2025-03-06 08:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619190', 'tblTempUsageDetail_20' ) end [2025-03-06 08:15:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 08:15:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 08:15:22] Production.INFO: ==4214== Releasing lock... [2025-03-06 08:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 08:15:22] Production.INFO: 30.75 MB #Memory Used# [2025-03-06 08:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 05:16:06 [end_date_ymd] => 2025-03-06 08:16:06 [RateCDR] => 1 ) [2025-03-06 08: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-03-06 05:16:06' and `end` < '2025-03-06 08: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-03-06 08:16:18] Production.INFO: count ==336 [2025-03-06 08:16:18] Production.ERROR: pbx CDR StartTime 2025-03-06 05:16:06 - End Time 2025-03-06 08:16:06 [2025-03-06 08:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619195', 'tblTempUsageDetail_20' ) start [2025-03-06 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619195', 'tblTempUsageDetail_20' ) end [2025-03-06 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619195', 'tblTempVendorCDR_20' ) start [2025-03-06 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619195', 'tblTempVendorCDR_20' ) end [2025-03-06 08:16:18] Production.INFO: ProcessCDR(1,14619195,1,1,2) [2025-03-06 08:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14619195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 08:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14619195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 08:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14619195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 08:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14619195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 08:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619195', 'tblTempUsageDetail_20' ) start [2025-03-06 08:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619195', 'tblTempUsageDetail_20' ) end [2025-03-06 08:16:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 08:16:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 08:16:21] Production.INFO: ==4329== Releasing lock... [2025-03-06 08:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 08:16:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-06 08:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 05:17:05 [end_date_ymd] => 2025-03-06 08:17:05 [RateCDR] => 1 ) [2025-03-06 08:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 05:17:05' and `end` < '2025-03-06 08:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 08:17:17] Production.INFO: count ==339 [2025-03-06 08:17:17] Production.ERROR: pbx CDR StartTime 2025-03-06 05:17:05 - End Time 2025-03-06 08:17:05 [2025-03-06 08:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 08:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619200', 'tblTempUsageDetail_20' ) start [2025-03-06 08:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619200', 'tblTempUsageDetail_20' ) end [2025-03-06 08:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619200', 'tblTempVendorCDR_20' ) start [2025-03-06 08:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619200', 'tblTempVendorCDR_20' ) end [2025-03-06 08:17:17] Production.INFO: ProcessCDR(1,14619200,1,1,2) [2025-03-06 08:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14619200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 08:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14619200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 08:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14619200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 08:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14619200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 08:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619200', 'tblTempUsageDetail_20' ) start [2025-03-06 08:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619200', 'tblTempUsageDetail_20' ) end [2025-03-06 08:17:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 08:17:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 08:17:22] Production.INFO: ==4399== Releasing lock... [2025-03-06 08:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 08:17:22] Production.INFO: 31 MB #Memory Used# [2025-03-06 08:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 05:18:05 [end_date_ymd] => 2025-03-06 08:18:05 [RateCDR] => 1 ) [2025-03-06 08:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 05:18:05' and `end` < '2025-03-06 08:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 08:18:17] Production.INFO: count ==342 [2025-03-06 08:18:17] Production.ERROR: pbx CDR StartTime 2025-03-06 05:18:05 - End Time 2025-03-06 08:18:05 [2025-03-06 08:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 08:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619205', 'tblTempUsageDetail_20' ) start [2025-03-06 08:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619205', 'tblTempUsageDetail_20' ) end [2025-03-06 08:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619205', 'tblTempVendorCDR_20' ) start [2025-03-06 08:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619205', 'tblTempVendorCDR_20' ) end [2025-03-06 08:18:17] Production.INFO: ProcessCDR(1,14619205,1,1,2) [2025-03-06 08:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14619205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 08:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14619205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 08:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14619205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 08:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14619205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 08:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619205', 'tblTempUsageDetail_20' ) start [2025-03-06 08:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619205', 'tblTempUsageDetail_20' ) end [2025-03-06 08:18:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 08:18:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 08:18:21] Production.INFO: ==4481== Releasing lock... [2025-03-06 08:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 08:18:21] Production.INFO: 31 MB #Memory Used# [2025-03-06 08:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 05:19:05 [end_date_ymd] => 2025-03-06 08:19:05 [RateCDR] => 1 ) [2025-03-06 08:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 05:19:05' and `end` < '2025-03-06 08:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 08:19:17] Production.INFO: count ==353 [2025-03-06 08:19:17] Production.ERROR: pbx CDR StartTime 2025-03-06 05:19:05 - End Time 2025-03-06 08:19:05 [2025-03-06 08:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 08:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619210', 'tblTempUsageDetail_20' ) start [2025-03-06 08:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619210', 'tblTempUsageDetail_20' ) end [2025-03-06 08:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619210', 'tblTempVendorCDR_20' ) start [2025-03-06 08:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619210', 'tblTempVendorCDR_20' ) end [2025-03-06 08:19:17] Production.INFO: ProcessCDR(1,14619210,1,1,2) [2025-03-06 08:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14619210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 08:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14619210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 08:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14619210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 08:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14619210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 08:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619210', 'tblTempUsageDetail_20' ) start [2025-03-06 08:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619210', 'tblTempUsageDetail_20' ) end [2025-03-06 08:19:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 08:19:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 08:19:21] Production.INFO: ==4554== Releasing lock... [2025-03-06 08:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 08:19:21] Production.INFO: 31 MB #Memory Used# [2025-03-06 08:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 05:20:06 [end_date_ymd] => 2025-03-06 08:20:06 [RateCDR] => 1 ) [2025-03-06 08: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-03-06 05:20:06' and `end` < '2025-03-06 08: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-03-06 08:20:19] Production.INFO: count ==366 [2025-03-06 08:20:19] Production.ERROR: pbx CDR StartTime 2025-03-06 05:20:06 - End Time 2025-03-06 08:20:06 [2025-03-06 08:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 08:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619216', 'tblTempUsageDetail_20' ) start [2025-03-06 08:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619216', 'tblTempUsageDetail_20' ) end [2025-03-06 08:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619216', 'tblTempVendorCDR_20' ) start [2025-03-06 08:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619216', 'tblTempVendorCDR_20' ) end [2025-03-06 08:20:19] Production.INFO: ProcessCDR(1,14619216,1,1,2) [2025-03-06 08:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14619216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 08:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14619216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 08:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14619216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 08:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14619216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 08:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619216', 'tblTempUsageDetail_20' ) start [2025-03-06 08:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619216', 'tblTempUsageDetail_20' ) end [2025-03-06 08:20:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 08:20:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 08:20:22] Production.INFO: ==4636== Releasing lock... [2025-03-06 08:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 08:20:22] Production.INFO: 31.25 MB #Memory Used# [2025-03-06 08:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 05:21:05 [end_date_ymd] => 2025-03-06 08:21:05 [RateCDR] => 1 ) [2025-03-06 08:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 05:21:05' and `end` < '2025-03-06 08:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 08:21:17] Production.INFO: count ==402 [2025-03-06 08:21:17] Production.ERROR: pbx CDR StartTime 2025-03-06 05:21:05 - End Time 2025-03-06 08:21:05 [2025-03-06 08:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 08:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619221', 'tblTempUsageDetail_20' ) start [2025-03-06 08:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619221', 'tblTempUsageDetail_20' ) end [2025-03-06 08:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619221', 'tblTempVendorCDR_20' ) start [2025-03-06 08:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619221', 'tblTempVendorCDR_20' ) end [2025-03-06 08:21:17] Production.INFO: ProcessCDR(1,14619221,1,1,2) [2025-03-06 08:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14619221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 08:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14619221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 08:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14619221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 08:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14619221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 08:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619221', 'tblTempUsageDetail_20' ) start [2025-03-06 08:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619221', 'tblTempUsageDetail_20' ) end [2025-03-06 08:21:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 08:21:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 08:21:22] Production.INFO: ==4708== Releasing lock... [2025-03-06 08:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 08:21:22] Production.INFO: 31.75 MB #Memory Used# [2025-03-06 08:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 05:22:05 [end_date_ymd] => 2025-03-06 08:22:05 [RateCDR] => 1 ) [2025-03-06 08:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 05:22:05' and `end` < '2025-03-06 08:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 08:22:17] Production.INFO: count ==405 [2025-03-06 08:22:18] Production.ERROR: pbx CDR StartTime 2025-03-06 05:22:05 - End Time 2025-03-06 08:22:05 [2025-03-06 08:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619226', 'tblTempUsageDetail_20' ) start [2025-03-06 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619226', 'tblTempUsageDetail_20' ) end [2025-03-06 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619226', 'tblTempVendorCDR_20' ) start [2025-03-06 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619226', 'tblTempVendorCDR_20' ) end [2025-03-06 08:22:18] Production.INFO: ProcessCDR(1,14619226,1,1,2) [2025-03-06 08:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14619226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 08:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14619226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 08:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14619226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 08:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14619226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 08:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619226', 'tblTempUsageDetail_20' ) start [2025-03-06 08:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619226', 'tblTempUsageDetail_20' ) end [2025-03-06 08:22:23] Production.ERROR: pbx prc_insertCDR start [2025-03-06 08:22:23] Production.ERROR: pbx prc_insertCDR end [2025-03-06 08:22:23] Production.INFO: ==4779== Releasing lock... [2025-03-06 08:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 08:22:23] Production.INFO: 31.75 MB #Memory Used# [2025-03-06 08:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 05:23:05 [end_date_ymd] => 2025-03-06 08:23:05 [RateCDR] => 1 ) [2025-03-06 08:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 05:23:05' and `end` < '2025-03-06 08:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 08:23:17] Production.INFO: count ==411 [2025-03-06 08:23:17] Production.ERROR: pbx CDR StartTime 2025-03-06 05:23:05 - End Time 2025-03-06 08:23:05 [2025-03-06 08:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 08:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619231', 'tblTempUsageDetail_20' ) start [2025-03-06 08:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619231', 'tblTempUsageDetail_20' ) end [2025-03-06 08:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619231', 'tblTempVendorCDR_20' ) start [2025-03-06 08:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619231', 'tblTempVendorCDR_20' ) end [2025-03-06 08:23:17] Production.INFO: ProcessCDR(1,14619231,1,1,2) [2025-03-06 08:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14619231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 08:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14619231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 08:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14619231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 08:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14619231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 08:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619231', 'tblTempUsageDetail_20' ) start [2025-03-06 08:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619231', 'tblTempUsageDetail_20' ) end [2025-03-06 08:23:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 08:23:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 08:23:22] Production.INFO: ==4852== Releasing lock... [2025-03-06 08:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 08:23:22] Production.INFO: 31.75 MB #Memory Used# [2025-03-06 08:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 05:24:05 [end_date_ymd] => 2025-03-06 08:24:05 [RateCDR] => 1 ) [2025-03-06 08:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 05:24:05' and `end` < '2025-03-06 08:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 08:24:17] Production.INFO: count ==413 [2025-03-06 08:24:17] Production.ERROR: pbx CDR StartTime 2025-03-06 05:24:05 - End Time 2025-03-06 08:24:05 [2025-03-06 08:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 08:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619236', 'tblTempUsageDetail_20' ) start [2025-03-06 08:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619236', 'tblTempUsageDetail_20' ) end [2025-03-06 08:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619236', 'tblTempVendorCDR_20' ) start [2025-03-06 08:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619236', 'tblTempVendorCDR_20' ) end [2025-03-06 08:24:17] Production.INFO: ProcessCDR(1,14619236,1,1,2) [2025-03-06 08:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14619236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 08:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14619236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 08:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14619236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 08:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14619236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 08:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619236', 'tblTempUsageDetail_20' ) start [2025-03-06 08:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619236', 'tblTempUsageDetail_20' ) end [2025-03-06 08:24:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 08:24:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 08:24:21] Production.INFO: ==4923== Releasing lock... [2025-03-06 08:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 08:24:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-06 08:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 05:25:05 [end_date_ymd] => 2025-03-06 08:25:05 [RateCDR] => 1 ) [2025-03-06 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-03-06 05:25:05' and `end` < '2025-03-06 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-03-06 08:25:17] Production.INFO: count ==415 [2025-03-06 08:25:17] Production.ERROR: pbx CDR StartTime 2025-03-06 05:25:05 - End Time 2025-03-06 08:25:05 [2025-03-06 08:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619241', 'tblTempUsageDetail_20' ) start [2025-03-06 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619241', 'tblTempUsageDetail_20' ) end [2025-03-06 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619241', 'tblTempVendorCDR_20' ) start [2025-03-06 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619241', 'tblTempVendorCDR_20' ) end [2025-03-06 08:25:17] Production.INFO: ProcessCDR(1,14619241,1,1,2) [2025-03-06 08:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14619241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 08:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14619241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 08:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14619241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 08:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14619241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 08:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619241', 'tblTempUsageDetail_20' ) start [2025-03-06 08:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619241', 'tblTempUsageDetail_20' ) end [2025-03-06 08:25:20] Production.ERROR: pbx prc_insertCDR start [2025-03-06 08:25:20] Production.ERROR: pbx prc_insertCDR end [2025-03-06 08:25:21] Production.INFO: ==4998== Releasing lock... [2025-03-06 08:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 08:25:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-06 08:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 05:26:05 [end_date_ymd] => 2025-03-06 08:26:05 [RateCDR] => 1 ) [2025-03-06 08:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 05:26:05' and `end` < '2025-03-06 08:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 08:26:17] Production.INFO: count ==415 [2025-03-06 08:26:18] Production.ERROR: pbx CDR StartTime 2025-03-06 05:26:05 - End Time 2025-03-06 08:26:05 [2025-03-06 08:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 08:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619246', 'tblTempUsageDetail_20' ) start [2025-03-06 08:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619246', 'tblTempUsageDetail_20' ) end [2025-03-06 08:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619246', 'tblTempVendorCDR_20' ) start [2025-03-06 08:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619246', 'tblTempVendorCDR_20' ) end [2025-03-06 08:26:18] Production.INFO: ProcessCDR(1,14619246,1,1,2) [2025-03-06 08:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14619246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 08:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14619246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 08:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14619246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 08:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14619246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 08:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619246', 'tblTempUsageDetail_20' ) start [2025-03-06 08:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619246', 'tblTempUsageDetail_20' ) end [2025-03-06 08:26:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 08:26:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 08:26:21] Production.INFO: ==5070== Releasing lock... [2025-03-06 08:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 08:26:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-06 08:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 05:27:05 [end_date_ymd] => 2025-03-06 08:27:05 [RateCDR] => 1 ) [2025-03-06 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-03-06 05:27:05' and `end` < '2025-03-06 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-03-06 08:27:17] Production.INFO: count ==428 [2025-03-06 08:27:17] Production.ERROR: pbx CDR StartTime 2025-03-06 05:27:05 - End Time 2025-03-06 08:27:05 [2025-03-06 08:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 08:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619251', 'tblTempUsageDetail_20' ) start [2025-03-06 08:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619251', 'tblTempUsageDetail_20' ) end [2025-03-06 08:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619251', 'tblTempVendorCDR_20' ) start [2025-03-06 08:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619251', 'tblTempVendorCDR_20' ) end [2025-03-06 08:27:17] Production.INFO: ProcessCDR(1,14619251,1,1,2) [2025-03-06 08:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14619251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 08:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14619251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 08:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14619251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 08:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14619251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 08:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619251', 'tblTempUsageDetail_20' ) start [2025-03-06 08:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619251', 'tblTempUsageDetail_20' ) end [2025-03-06 08:27:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 08:27:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 08:27:21] Production.INFO: ==5148== Releasing lock... [2025-03-06 08:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 08:27:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-06 08:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 05:28:05 [end_date_ymd] => 2025-03-06 08:28:05 [RateCDR] => 1 ) [2025-03-06 08:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 05:28:05' and `end` < '2025-03-06 08:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 08:28:18] Production.INFO: count ==435 [2025-03-06 08:28:18] Production.ERROR: pbx CDR StartTime 2025-03-06 05:28:05 - End Time 2025-03-06 08:28:05 [2025-03-06 08:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619256', 'tblTempUsageDetail_20' ) start [2025-03-06 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619256', 'tblTempUsageDetail_20' ) end [2025-03-06 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619256', 'tblTempVendorCDR_20' ) start [2025-03-06 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619256', 'tblTempVendorCDR_20' ) end [2025-03-06 08:28:18] Production.INFO: ProcessCDR(1,14619256,1,1,2) [2025-03-06 08:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14619256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 08:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14619256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 08:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14619256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 08:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14619256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 08:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619256', 'tblTempUsageDetail_20' ) start [2025-03-06 08:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619256', 'tblTempUsageDetail_20' ) end [2025-03-06 08:28:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 08:28:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 08:28:21] Production.INFO: ==5219== Releasing lock... [2025-03-06 08:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 08:28:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-06 08:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 05:29:05 [end_date_ymd] => 2025-03-06 08:29:05 [RateCDR] => 1 ) [2025-03-06 08:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 05:29:05' and `end` < '2025-03-06 08:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 08:29:17] Production.INFO: count ==448 [2025-03-06 08:29:17] Production.ERROR: pbx CDR StartTime 2025-03-06 05:29:05 - End Time 2025-03-06 08:29:05 [2025-03-06 08:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 08:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619261', 'tblTempUsageDetail_20' ) start [2025-03-06 08:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619261', 'tblTempUsageDetail_20' ) end [2025-03-06 08:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619261', 'tblTempVendorCDR_20' ) start [2025-03-06 08:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619261', 'tblTempVendorCDR_20' ) end [2025-03-06 08:29:17] Production.INFO: ProcessCDR(1,14619261,1,1,2) [2025-03-06 08:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14619261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 08:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14619261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 08:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14619261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 08:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14619261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 08:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619261', 'tblTempUsageDetail_20' ) start [2025-03-06 08:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619261', 'tblTempUsageDetail_20' ) end [2025-03-06 08:29:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 08:29:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 08:29:22] Production.INFO: ==5295== Releasing lock... [2025-03-06 08:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 08:29:22] Production.INFO: 32.25 MB #Memory Used# [2025-03-06 08:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 05:30:05 [end_date_ymd] => 2025-03-06 08:30:05 [RateCDR] => 1 ) [2025-03-06 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-03-06 05:30:05' and `end` < '2025-03-06 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-03-06 08:30:18] Production.INFO: count ==448 [2025-03-06 08:30:18] Production.ERROR: pbx CDR StartTime 2025-03-06 05:30:05 - End Time 2025-03-06 08:30:05 [2025-03-06 08:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 08:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619266', 'tblTempUsageDetail_20' ) start [2025-03-06 08:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619266', 'tblTempUsageDetail_20' ) end [2025-03-06 08:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619266', 'tblTempVendorCDR_20' ) start [2025-03-06 08:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619266', 'tblTempVendorCDR_20' ) end [2025-03-06 08:30:18] Production.INFO: ProcessCDR(1,14619266,1,1,2) [2025-03-06 08:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14619266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 08:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14619266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 08:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14619266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 08:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14619266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 08:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619266', 'tblTempUsageDetail_20' ) start [2025-03-06 08:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619266', 'tblTempUsageDetail_20' ) end [2025-03-06 08:30:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 08:30:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 08:30:21] Production.INFO: ==5373== Releasing lock... [2025-03-06 08:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 08:30:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-06 08:31:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 05:31:04 [end_date_ymd] => 2025-03-06 08:31:04 [RateCDR] => 1 ) [2025-03-06 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-03-06 05:31:04' and `end` < '2025-03-06 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-03-06 08:31:16] Production.INFO: count ==472 [2025-03-06 08:31:17] Production.ERROR: pbx CDR StartTime 2025-03-06 05:31:04 - End Time 2025-03-06 08:31:04 [2025-03-06 08:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 08:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619272', 'tblTempUsageDetail_20' ) start [2025-03-06 08:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619272', 'tblTempUsageDetail_20' ) end [2025-03-06 08:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619272', 'tblTempVendorCDR_20' ) start [2025-03-06 08:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619272', 'tblTempVendorCDR_20' ) end [2025-03-06 08:31:17] Production.INFO: ProcessCDR(1,14619272,1,1,2) [2025-03-06 08:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14619272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 08:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14619272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 08:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14619272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 08:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14619272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 08:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619272', 'tblTempUsageDetail_20' ) start [2025-03-06 08:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619272', 'tblTempUsageDetail_20' ) end [2025-03-06 08:31:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 08:31:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 08:31:22] Production.INFO: ==5451== Releasing lock... [2025-03-06 08:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 08:31:22] Production.INFO: 31.75 MB #Memory Used# [2025-03-06 08:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 05:32:05 [end_date_ymd] => 2025-03-06 08:32:05 [RateCDR] => 1 ) [2025-03-06 08:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 05:32:05' and `end` < '2025-03-06 08:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 08:32:18] Production.INFO: count ==479 [2025-03-06 08:32:18] Production.ERROR: pbx CDR StartTime 2025-03-06 05:32:05 - End Time 2025-03-06 08:32:05 [2025-03-06 08:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619277', 'tblTempUsageDetail_20' ) start [2025-03-06 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619277', 'tblTempUsageDetail_20' ) end [2025-03-06 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619277', 'tblTempVendorCDR_20' ) start [2025-03-06 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619277', 'tblTempVendorCDR_20' ) end [2025-03-06 08:32:18] Production.INFO: ProcessCDR(1,14619277,1,1,2) [2025-03-06 08:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14619277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 08:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14619277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 08:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14619277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 08:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14619277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 08:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619277', 'tblTempUsageDetail_20' ) start [2025-03-06 08:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619277', 'tblTempUsageDetail_20' ) end [2025-03-06 08:32:23] Production.ERROR: pbx prc_insertCDR start [2025-03-06 08:32:23] Production.ERROR: pbx prc_insertCDR end [2025-03-06 08:32:23] Production.INFO: ==5569== Releasing lock... [2025-03-06 08:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 08:32:23] Production.INFO: 32.5 MB #Memory Used# [2025-03-06 08:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 05:33:05 [end_date_ymd] => 2025-03-06 08:33:05 [RateCDR] => 1 ) [2025-03-06 08: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-03-06 05:33:05' and `end` < '2025-03-06 08:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 08:33:18] Production.INFO: count ==484 [2025-03-06 08:33:18] Production.ERROR: pbx CDR StartTime 2025-03-06 05:33:05 - End Time 2025-03-06 08:33:05 [2025-03-06 08:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619282', 'tblTempUsageDetail_20' ) start [2025-03-06 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619282', 'tblTempUsageDetail_20' ) end [2025-03-06 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619282', 'tblTempVendorCDR_20' ) start [2025-03-06 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619282', 'tblTempVendorCDR_20' ) end [2025-03-06 08:33:18] Production.INFO: ProcessCDR(1,14619282,1,1,2) [2025-03-06 08:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14619282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 08:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14619282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 08:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14619282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 08:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14619282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 08:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619282', 'tblTempUsageDetail_20' ) start [2025-03-06 08:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619282', 'tblTempUsageDetail_20' ) end [2025-03-06 08:33:23] Production.ERROR: pbx prc_insertCDR start [2025-03-06 08:33:23] Production.ERROR: pbx prc_insertCDR end [2025-03-06 08:33:23] Production.INFO: ==5643== Releasing lock... [2025-03-06 08:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 08:33:23] Production.INFO: 32.25 MB #Memory Used# [2025-03-06 08:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 05:34:05 [end_date_ymd] => 2025-03-06 08:34:05 [RateCDR] => 1 ) [2025-03-06 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-03-06 05:34:05' and `end` < '2025-03-06 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-03-06 08:34:17] Production.INFO: count ==489 [2025-03-06 08:34:18] Production.ERROR: pbx CDR StartTime 2025-03-06 05:34:05 - End Time 2025-03-06 08:34:05 [2025-03-06 08:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619287', 'tblTempUsageDetail_20' ) start [2025-03-06 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619287', 'tblTempUsageDetail_20' ) end [2025-03-06 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619287', 'tblTempVendorCDR_20' ) start [2025-03-06 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619287', 'tblTempVendorCDR_20' ) end [2025-03-06 08:34:18] Production.INFO: ProcessCDR(1,14619287,1,1,2) [2025-03-06 08:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14619287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 08:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14619287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 08:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14619287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 08:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14619287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 08:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619287', 'tblTempUsageDetail_20' ) start [2025-03-06 08:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619287', 'tblTempUsageDetail_20' ) end [2025-03-06 08:34:23] Production.ERROR: pbx prc_insertCDR start [2025-03-06 08:34:23] Production.ERROR: pbx prc_insertCDR end [2025-03-06 08:34:24] Production.INFO: ==5717== Releasing lock... [2025-03-06 08:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 08:34:24] Production.INFO: 32.25 MB #Memory Used# [2025-03-06 08:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 05:35:06 [end_date_ymd] => 2025-03-06 08:35:06 [RateCDR] => 1 ) [2025-03-06 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-03-06 05:35:06' and `end` < '2025-03-06 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-03-06 08:35:18] Production.INFO: count ==492 [2025-03-06 08:35:18] Production.ERROR: pbx CDR StartTime 2025-03-06 05:35:06 - End Time 2025-03-06 08:35:06 [2025-03-06 08:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619292', 'tblTempUsageDetail_20' ) start [2025-03-06 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619292', 'tblTempUsageDetail_20' ) end [2025-03-06 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619292', 'tblTempVendorCDR_20' ) start [2025-03-06 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619292', 'tblTempVendorCDR_20' ) end [2025-03-06 08:35:18] Production.INFO: ProcessCDR(1,14619292,1,1,2) [2025-03-06 08:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14619292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 08:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14619292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 08:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14619292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 08:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14619292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 08:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619292', 'tblTempUsageDetail_20' ) start [2025-03-06 08:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619292', 'tblTempUsageDetail_20' ) end [2025-03-06 08:35:23] Production.ERROR: pbx prc_insertCDR start [2025-03-06 08:35:23] Production.ERROR: pbx prc_insertCDR end [2025-03-06 08:35:23] Production.INFO: ==5790== Releasing lock... [2025-03-06 08:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 08:35:23] Production.INFO: 32.75 MB #Memory Used# [2025-03-06 08:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 05:36:06 [end_date_ymd] => 2025-03-06 08:36:06 [RateCDR] => 1 ) [2025-03-06 08:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 05:36:06' and `end` < '2025-03-06 08:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 08:36:18] Production.INFO: count ==506 [2025-03-06 08:36:18] Production.ERROR: pbx CDR StartTime 2025-03-06 05:36:06 - End Time 2025-03-06 08:36:06 [2025-03-06 08:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619297', 'tblTempUsageDetail_20' ) start [2025-03-06 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619297', 'tblTempUsageDetail_20' ) end [2025-03-06 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619297', 'tblTempVendorCDR_20' ) start [2025-03-06 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619297', 'tblTempVendorCDR_20' ) end [2025-03-06 08:36:18] Production.INFO: ProcessCDR(1,14619297,1,1,2) [2025-03-06 08:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14619297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 08:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14619297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 08:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14619297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 08:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14619297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 08:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619297', 'tblTempUsageDetail_20' ) start [2025-03-06 08:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619297', 'tblTempUsageDetail_20' ) end [2025-03-06 08:36:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 08:36:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 08:36:22] Production.INFO: ==5865== Releasing lock... [2025-03-06 08:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 08:36:22] Production.INFO: 32.5 MB #Memory Used# [2025-03-06 08:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 05:37:05 [end_date_ymd] => 2025-03-06 08:37:05 [RateCDR] => 1 ) [2025-03-06 08:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 05:37:05' and `end` < '2025-03-06 08:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 08:37:17] Production.INFO: count ==510 [2025-03-06 08:37:17] Production.ERROR: pbx CDR StartTime 2025-03-06 05:37:05 - End Time 2025-03-06 08:37:05 [2025-03-06 08:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 08:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619302', 'tblTempUsageDetail_20' ) start [2025-03-06 08:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619302', 'tblTempUsageDetail_20' ) end [2025-03-06 08:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619302', 'tblTempVendorCDR_20' ) start [2025-03-06 08:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619302', 'tblTempVendorCDR_20' ) end [2025-03-06 08:37:17] Production.INFO: ProcessCDR(1,14619302,1,1,2) [2025-03-06 08:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14619302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 08:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14619302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 08:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14619302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 08:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14619302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 08:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619302', 'tblTempUsageDetail_20' ) start [2025-03-06 08:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619302', 'tblTempUsageDetail_20' ) end [2025-03-06 08:37:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 08:37:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 08:37:21] Production.INFO: ==5940== Releasing lock... [2025-03-06 08:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 08:37:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-06 08:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 05:38:05 [end_date_ymd] => 2025-03-06 08:38:05 [RateCDR] => 1 ) [2025-03-06 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-03-06 05:38:05' and `end` < '2025-03-06 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-03-06 08:38:17] Production.INFO: count ==516 [2025-03-06 08:38:17] Production.ERROR: pbx CDR StartTime 2025-03-06 05:38:05 - End Time 2025-03-06 08:38:05 [2025-03-06 08:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 08:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619307', 'tblTempUsageDetail_20' ) start [2025-03-06 08:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619307', 'tblTempUsageDetail_20' ) end [2025-03-06 08:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619307', 'tblTempVendorCDR_20' ) start [2025-03-06 08:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619307', 'tblTempVendorCDR_20' ) end [2025-03-06 08:38:17] Production.INFO: ProcessCDR(1,14619307,1,1,2) [2025-03-06 08:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14619307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 08:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14619307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 08:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14619307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 08:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14619307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 08:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619307', 'tblTempUsageDetail_20' ) start [2025-03-06 08:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619307', 'tblTempUsageDetail_20' ) end [2025-03-06 08:38:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 08:38:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 08:38:22] Production.INFO: ==6017== Releasing lock... [2025-03-06 08:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 08:38:22] Production.INFO: 33 MB #Memory Used# [2025-03-06 08:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 05:39:06 [end_date_ymd] => 2025-03-06 08:39:06 [RateCDR] => 1 ) [2025-03-06 08:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 05:39:06' and `end` < '2025-03-06 08:39:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 08:39:18] Production.INFO: count ==522 [2025-03-06 08:39:18] Production.ERROR: pbx CDR StartTime 2025-03-06 05:39:06 - End Time 2025-03-06 08:39:06 [2025-03-06 08:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619312', 'tblTempUsageDetail_20' ) start [2025-03-06 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619312', 'tblTempUsageDetail_20' ) end [2025-03-06 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619312', 'tblTempVendorCDR_20' ) start [2025-03-06 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619312', 'tblTempVendorCDR_20' ) end [2025-03-06 08:39:18] Production.INFO: ProcessCDR(1,14619312,1,1,2) [2025-03-06 08:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14619312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 08:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14619312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 08:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14619312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 08:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14619312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 08:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619312', 'tblTempUsageDetail_20' ) start [2025-03-06 08:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619312', 'tblTempUsageDetail_20' ) end [2025-03-06 08:39:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 08:39:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 08:39:23] Production.INFO: ==6088== Releasing lock... [2025-03-06 08:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 08:39:23] Production.INFO: 32.5 MB #Memory Used# [2025-03-06 08:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 05:40:06 [end_date_ymd] => 2025-03-06 08:40:06 [RateCDR] => 1 ) [2025-03-06 08:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 05:40:06' and `end` < '2025-03-06 08:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 08:40:18] Production.INFO: count ==531 [2025-03-06 08:40:18] Production.ERROR: pbx CDR StartTime 2025-03-06 05:40:06 - End Time 2025-03-06 08:40:06 [2025-03-06 08:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 08:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619318', 'tblTempUsageDetail_20' ) start [2025-03-06 08:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619318', 'tblTempUsageDetail_20' ) end [2025-03-06 08:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619318', 'tblTempVendorCDR_20' ) start [2025-03-06 08:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619318', 'tblTempVendorCDR_20' ) end [2025-03-06 08:40:18] Production.INFO: ProcessCDR(1,14619318,1,1,2) [2025-03-06 08:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14619318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 08:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14619318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 08:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14619318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 08:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14619318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 08:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619318', 'tblTempUsageDetail_20' ) start [2025-03-06 08:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619318', 'tblTempUsageDetail_20' ) end [2025-03-06 08:40:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 08:40:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 08:40:21] Production.INFO: ==6166== Releasing lock... [2025-03-06 08:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 08:40:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-06 08:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 05:41:05 [end_date_ymd] => 2025-03-06 08:41:05 [RateCDR] => 1 ) [2025-03-06 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-03-06 05:41:05' and `end` < '2025-03-06 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-03-06 08:41:18] Production.INFO: count ==556 [2025-03-06 08:41:18] Production.ERROR: pbx CDR StartTime 2025-03-06 05:41:05 - End Time 2025-03-06 08:41:05 [2025-03-06 08:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619323', 'tblTempUsageDetail_20' ) start [2025-03-06 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619323', 'tblTempUsageDetail_20' ) end [2025-03-06 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619323', 'tblTempVendorCDR_20' ) start [2025-03-06 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619323', 'tblTempVendorCDR_20' ) end [2025-03-06 08:41:18] Production.INFO: ProcessCDR(1,14619323,1,1,2) [2025-03-06 08:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14619323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 08:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14619323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 08:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14619323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 08:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14619323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 08:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619323', 'tblTempUsageDetail_20' ) start [2025-03-06 08:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619323', 'tblTempUsageDetail_20' ) end [2025-03-06 08:41:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 08:41:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 08:41:21] Production.INFO: ==6242== Releasing lock... [2025-03-06 08:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 08:41:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-06 08:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 05:42:05 [end_date_ymd] => 2025-03-06 08:42:05 [RateCDR] => 1 ) [2025-03-06 08: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-03-06 05:42:05' and `end` < '2025-03-06 08:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 08:42:18] Production.INFO: count ==559 [2025-03-06 08:42:18] Production.ERROR: pbx CDR StartTime 2025-03-06 05:42:05 - End Time 2025-03-06 08:42:05 [2025-03-06 08:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619328', 'tblTempUsageDetail_20' ) start [2025-03-06 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619328', 'tblTempUsageDetail_20' ) end [2025-03-06 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619328', 'tblTempVendorCDR_20' ) start [2025-03-06 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619328', 'tblTempVendorCDR_20' ) end [2025-03-06 08:42:18] Production.INFO: ProcessCDR(1,14619328,1,1,2) [2025-03-06 08:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14619328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 08:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14619328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 08:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14619328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 08:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14619328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 08:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619328', 'tblTempUsageDetail_20' ) start [2025-03-06 08:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619328', 'tblTempUsageDetail_20' ) end [2025-03-06 08:42:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 08:42:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 08:42:21] Production.INFO: ==6316== Releasing lock... [2025-03-06 08:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 08:42:21] Production.INFO: 33 MB #Memory Used# [2025-03-06 08:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 05:43:06 [end_date_ymd] => 2025-03-06 08:43:06 [RateCDR] => 1 ) [2025-03-06 08: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-03-06 05:43:06' and `end` < '2025-03-06 08: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-03-06 08:43:18] Production.INFO: count ==566 [2025-03-06 08:43:18] Production.ERROR: pbx CDR StartTime 2025-03-06 05:43:06 - End Time 2025-03-06 08:43:06 [2025-03-06 08:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619333', 'tblTempUsageDetail_20' ) start [2025-03-06 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619333', 'tblTempUsageDetail_20' ) end [2025-03-06 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619333', 'tblTempVendorCDR_20' ) start [2025-03-06 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619333', 'tblTempVendorCDR_20' ) end [2025-03-06 08:43:18] Production.INFO: ProcessCDR(1,14619333,1,1,2) [2025-03-06 08:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14619333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 08:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14619333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 08:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14619333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 08:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14619333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 08:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619333', 'tblTempUsageDetail_20' ) start [2025-03-06 08:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619333', 'tblTempUsageDetail_20' ) end [2025-03-06 08:43:23] Production.ERROR: pbx prc_insertCDR start [2025-03-06 08:43:23] Production.ERROR: pbx prc_insertCDR end [2025-03-06 08:43:23] Production.INFO: ==6388== Releasing lock... [2025-03-06 08:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 08:43:23] Production.INFO: 32.75 MB #Memory Used# [2025-03-06 08:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 05:44:05 [end_date_ymd] => 2025-03-06 08:44:05 [RateCDR] => 1 ) [2025-03-06 08:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 05:44:05' and `end` < '2025-03-06 08:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 08:44:17] Production.INFO: count ==574 [2025-03-06 08:44:18] Production.ERROR: pbx CDR StartTime 2025-03-06 05:44:05 - End Time 2025-03-06 08:44:05 [2025-03-06 08:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619338', 'tblTempUsageDetail_20' ) start [2025-03-06 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619338', 'tblTempUsageDetail_20' ) end [2025-03-06 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619338', 'tblTempVendorCDR_20' ) start [2025-03-06 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619338', 'tblTempVendorCDR_20' ) end [2025-03-06 08:44:18] Production.INFO: ProcessCDR(1,14619338,1,1,2) [2025-03-06 08:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14619338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 08:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14619338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 08:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14619338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 08:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14619338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 08:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619338', 'tblTempUsageDetail_20' ) start [2025-03-06 08:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619338', 'tblTempUsageDetail_20' ) end [2025-03-06 08:44:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 08:44:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 08:44:22] Production.INFO: ==6462== Releasing lock... [2025-03-06 08:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 08:44:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-06 08:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 05:45:05 [end_date_ymd] => 2025-03-06 08:45:05 [RateCDR] => 1 ) [2025-03-06 08:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 05:45:05' and `end` < '2025-03-06 08:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 08:45:17] Production.INFO: count ==583 [2025-03-06 08:45:17] Production.ERROR: pbx CDR StartTime 2025-03-06 05:45:05 - End Time 2025-03-06 08:45:05 [2025-03-06 08:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 08:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619343', 'tblTempUsageDetail_20' ) start [2025-03-06 08:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619343', 'tblTempUsageDetail_20' ) end [2025-03-06 08:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619343', 'tblTempVendorCDR_20' ) start [2025-03-06 08:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619343', 'tblTempVendorCDR_20' ) end [2025-03-06 08:45:17] Production.INFO: ProcessCDR(1,14619343,1,1,2) [2025-03-06 08:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14619343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 08:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14619343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 08:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14619343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 08:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14619343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 08:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619343', 'tblTempUsageDetail_20' ) start [2025-03-06 08:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619343', 'tblTempUsageDetail_20' ) end [2025-03-06 08:45:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 08:45:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 08:45:21] Production.INFO: ==6541== Releasing lock... [2025-03-06 08:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 08:45:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-06 08:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 05:46:05 [end_date_ymd] => 2025-03-06 08:46:05 [RateCDR] => 1 ) [2025-03-06 08:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 05:46:05' and `end` < '2025-03-06 08:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 08:46:17] Production.INFO: count ==590 [2025-03-06 08:46:17] Production.ERROR: pbx CDR StartTime 2025-03-06 05:46:05 - End Time 2025-03-06 08:46:05 [2025-03-06 08:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 08:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619348', 'tblTempUsageDetail_20' ) start [2025-03-06 08:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619348', 'tblTempUsageDetail_20' ) end [2025-03-06 08:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619348', 'tblTempVendorCDR_20' ) start [2025-03-06 08:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619348', 'tblTempVendorCDR_20' ) end [2025-03-06 08:46:17] Production.INFO: ProcessCDR(1,14619348,1,1,2) [2025-03-06 08:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14619348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 08:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14619348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 08:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14619348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 08:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14619348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 08:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619348', 'tblTempUsageDetail_20' ) start [2025-03-06 08:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619348', 'tblTempUsageDetail_20' ) end [2025-03-06 08:46:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 08:46:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 08:46:21] Production.INFO: ==6620== Releasing lock... [2025-03-06 08:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 08:46:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-06 08:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 05:47:05 [end_date_ymd] => 2025-03-06 08:47:05 [RateCDR] => 1 ) [2025-03-06 08:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 05:47:05' and `end` < '2025-03-06 08:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 08:47:17] Production.INFO: count ==592 [2025-03-06 08:47:18] Production.ERROR: pbx CDR StartTime 2025-03-06 05:47:05 - End Time 2025-03-06 08:47:05 [2025-03-06 08:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619353', 'tblTempUsageDetail_20' ) start [2025-03-06 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619353', 'tblTempUsageDetail_20' ) end [2025-03-06 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619353', 'tblTempVendorCDR_20' ) start [2025-03-06 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619353', 'tblTempVendorCDR_20' ) end [2025-03-06 08:47:18] Production.INFO: ProcessCDR(1,14619353,1,1,2) [2025-03-06 08:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14619353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 08:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14619353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 08:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14619353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 08:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14619353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 08:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619353', 'tblTempUsageDetail_20' ) start [2025-03-06 08:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619353', 'tblTempUsageDetail_20' ) end [2025-03-06 08:47:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 08:47:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 08:47:21] Production.INFO: ==6734== Releasing lock... [2025-03-06 08:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 08:47:21] Production.INFO: 33 MB #Memory Used# [2025-03-06 08:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 05:48:06 [end_date_ymd] => 2025-03-06 08:48:06 [RateCDR] => 1 ) [2025-03-06 08: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-03-06 05:48:06' and `end` < '2025-03-06 08: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-03-06 08:48:18] Production.INFO: count ==596 [2025-03-06 08:48:18] Production.ERROR: pbx CDR StartTime 2025-03-06 05:48:06 - End Time 2025-03-06 08:48:06 [2025-03-06 08:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619358', 'tblTempUsageDetail_20' ) start [2025-03-06 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619358', 'tblTempUsageDetail_20' ) end [2025-03-06 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619358', 'tblTempVendorCDR_20' ) start [2025-03-06 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619358', 'tblTempVendorCDR_20' ) end [2025-03-06 08:48:18] Production.INFO: ProcessCDR(1,14619358,1,1,2) [2025-03-06 08:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14619358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 08:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14619358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 08:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14619358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 08:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14619358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 08:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619358', 'tblTempUsageDetail_20' ) start [2025-03-06 08:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619358', 'tblTempUsageDetail_20' ) end [2025-03-06 08:48:23] Production.ERROR: pbx prc_insertCDR start [2025-03-06 08:48:23] Production.ERROR: pbx prc_insertCDR end [2025-03-06 08:48:23] Production.INFO: ==6810== Releasing lock... [2025-03-06 08:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 08:48:23] Production.INFO: 33.25 MB #Memory Used# [2025-03-06 08:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 05:49:05 [end_date_ymd] => 2025-03-06 08:49:05 [RateCDR] => 1 ) [2025-03-06 08:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 05:49:05' and `end` < '2025-03-06 08:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 08:49:17] Production.INFO: count ==602 [2025-03-06 08:49:17] Production.ERROR: pbx CDR StartTime 2025-03-06 05:49:05 - End Time 2025-03-06 08:49:05 [2025-03-06 08:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 08:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619363', 'tblTempUsageDetail_20' ) start [2025-03-06 08:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619363', 'tblTempUsageDetail_20' ) end [2025-03-06 08:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619363', 'tblTempVendorCDR_20' ) start [2025-03-06 08:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619363', 'tblTempVendorCDR_20' ) end [2025-03-06 08:49:17] Production.INFO: ProcessCDR(1,14619363,1,1,2) [2025-03-06 08:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14619363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 08:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14619363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 08:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14619363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 08:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14619363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 08:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619363', 'tblTempUsageDetail_20' ) start [2025-03-06 08:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619363', 'tblTempUsageDetail_20' ) end [2025-03-06 08:49:20] Production.ERROR: pbx prc_insertCDR start [2025-03-06 08:49:20] Production.ERROR: pbx prc_insertCDR end [2025-03-06 08:49:20] Production.INFO: ==6882== Releasing lock... [2025-03-06 08:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 08:49:20] Production.INFO: 33.25 MB #Memory Used# [2025-03-06 08:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 05:50:06 [end_date_ymd] => 2025-03-06 08:50:06 [RateCDR] => 1 ) [2025-03-06 08:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 05:50:06' and `end` < '2025-03-06 08:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 08:50:18] Production.INFO: count ==629 [2025-03-06 08:50:18] Production.ERROR: pbx CDR StartTime 2025-03-06 05:50:06 - End Time 2025-03-06 08:50:06 [2025-03-06 08:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 08:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619369', 'tblTempUsageDetail_20' ) start [2025-03-06 08:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619369', 'tblTempUsageDetail_20' ) end [2025-03-06 08:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619369', 'tblTempVendorCDR_20' ) start [2025-03-06 08:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619369', 'tblTempVendorCDR_20' ) end [2025-03-06 08:50:18] Production.INFO: ProcessCDR(1,14619369,1,1,2) [2025-03-06 08:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14619369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 08:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14619369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 08:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14619369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 08:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14619369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 08:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619369', 'tblTempUsageDetail_20' ) start [2025-03-06 08:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619369', 'tblTempUsageDetail_20' ) end [2025-03-06 08:50:24] Production.ERROR: pbx prc_insertCDR start [2025-03-06 08:50:24] Production.ERROR: pbx prc_insertCDR end [2025-03-06 08:50:24] Production.INFO: ==6958== Releasing lock... [2025-03-06 08:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 08:50:24] Production.INFO: 32.75 MB #Memory Used# [2025-03-06 08:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 05:51:05 [end_date_ymd] => 2025-03-06 08:51:05 [RateCDR] => 1 ) [2025-03-06 08:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 05:51:05' and `end` < '2025-03-06 08:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 08:51:17] Production.INFO: count ==650 [2025-03-06 08:51:18] Production.ERROR: pbx CDR StartTime 2025-03-06 05:51:05 - End Time 2025-03-06 08:51:05 [2025-03-06 08:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619374', 'tblTempUsageDetail_20' ) start [2025-03-06 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619374', 'tblTempUsageDetail_20' ) end [2025-03-06 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619374', 'tblTempVendorCDR_20' ) start [2025-03-06 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619374', 'tblTempVendorCDR_20' ) end [2025-03-06 08:51:18] Production.INFO: ProcessCDR(1,14619374,1,1,2) [2025-03-06 08:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14619374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 08:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14619374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 08:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14619374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 08:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14619374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 08:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619374', 'tblTempUsageDetail_20' ) start [2025-03-06 08:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619374', 'tblTempUsageDetail_20' ) end [2025-03-06 08:51:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 08:51:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 08:51:21] Production.INFO: ==7031== Releasing lock... [2025-03-06 08:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 08:51:21] Production.INFO: 33.75 MB #Memory Used# [2025-03-06 08:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 05:52:06 [end_date_ymd] => 2025-03-06 08:52:06 [RateCDR] => 1 ) [2025-03-06 08: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-03-06 05:52:06' and `end` < '2025-03-06 08: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-03-06 08:52:18] Production.INFO: count ==654 [2025-03-06 08:52:18] Production.ERROR: pbx CDR StartTime 2025-03-06 05:52:06 - End Time 2025-03-06 08:52:06 [2025-03-06 08:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619379', 'tblTempUsageDetail_20' ) start [2025-03-06 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619379', 'tblTempUsageDetail_20' ) end [2025-03-06 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619379', 'tblTempVendorCDR_20' ) start [2025-03-06 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619379', 'tblTempVendorCDR_20' ) end [2025-03-06 08:52:18] Production.INFO: ProcessCDR(1,14619379,1,1,2) [2025-03-06 08:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14619379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 08:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14619379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 08:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14619379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 08:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14619379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 08:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619379', 'tblTempUsageDetail_20' ) start [2025-03-06 08:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619379', 'tblTempUsageDetail_20' ) end [2025-03-06 08:52:23] Production.ERROR: pbx prc_insertCDR start [2025-03-06 08:52:23] Production.ERROR: pbx prc_insertCDR end [2025-03-06 08:52:23] Production.INFO: ==7109== Releasing lock... [2025-03-06 08:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 08:52:23] Production.INFO: 33.5 MB #Memory Used# [2025-03-06 08:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 05:53:05 [end_date_ymd] => 2025-03-06 08:53:05 [RateCDR] => 1 ) [2025-03-06 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-03-06 05:53:05' and `end` < '2025-03-06 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-03-06 08:53:17] Production.INFO: count ==654 [2025-03-06 08:53:17] Production.ERROR: pbx CDR StartTime 2025-03-06 05:53:05 - End Time 2025-03-06 08:53:05 [2025-03-06 08:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 08:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619384', 'tblTempUsageDetail_20' ) start [2025-03-06 08:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619384', 'tblTempUsageDetail_20' ) end [2025-03-06 08:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619384', 'tblTempVendorCDR_20' ) start [2025-03-06 08:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619384', 'tblTempVendorCDR_20' ) end [2025-03-06 08:53:17] Production.INFO: ProcessCDR(1,14619384,1,1,2) [2025-03-06 08:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14619384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 08:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14619384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 08:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14619384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 08:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14619384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 08:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619384', 'tblTempUsageDetail_20' ) start [2025-03-06 08:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619384', 'tblTempUsageDetail_20' ) end [2025-03-06 08:53:20] Production.ERROR: pbx prc_insertCDR start [2025-03-06 08:53:20] Production.ERROR: pbx prc_insertCDR end [2025-03-06 08:53:20] Production.INFO: ==7184== Releasing lock... [2025-03-06 08:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 08:53:20] Production.INFO: 33.5 MB #Memory Used# [2025-03-06 08:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 05:54:05 [end_date_ymd] => 2025-03-06 08:54:05 [RateCDR] => 1 ) [2025-03-06 08:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 05:54:05' and `end` < '2025-03-06 08:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 08:54:17] Production.INFO: count ==653 [2025-03-06 08:54:17] Production.ERROR: pbx CDR StartTime 2025-03-06 05:54:05 - End Time 2025-03-06 08:54:05 [2025-03-06 08:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 08:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619389', 'tblTempUsageDetail_20' ) start [2025-03-06 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619389', 'tblTempUsageDetail_20' ) end [2025-03-06 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619389', 'tblTempVendorCDR_20' ) start [2025-03-06 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619389', 'tblTempVendorCDR_20' ) end [2025-03-06 08:54:18] Production.INFO: ProcessCDR(1,14619389,1,1,2) [2025-03-06 08:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14619389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 08:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14619389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 08:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14619389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 08:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14619389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 08:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619389', 'tblTempUsageDetail_20' ) start [2025-03-06 08:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619389', 'tblTempUsageDetail_20' ) end [2025-03-06 08:54:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 08:54:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 08:54:21] Production.INFO: ==7256== Releasing lock... [2025-03-06 08:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 08:54:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-06 08:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 05:55:05 [end_date_ymd] => 2025-03-06 08:55:05 [RateCDR] => 1 ) [2025-03-06 08:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 05:55:05' and `end` < '2025-03-06 08:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 08:55:17] Production.INFO: count ==653 [2025-03-06 08:55:17] Production.ERROR: pbx CDR StartTime 2025-03-06 05:55:05 - End Time 2025-03-06 08:55:05 [2025-03-06 08:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 08:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619394', 'tblTempUsageDetail_20' ) start [2025-03-06 08:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619394', 'tblTempUsageDetail_20' ) end [2025-03-06 08:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619394', 'tblTempVendorCDR_20' ) start [2025-03-06 08:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619394', 'tblTempVendorCDR_20' ) end [2025-03-06 08:55:17] Production.INFO: ProcessCDR(1,14619394,1,1,2) [2025-03-06 08:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14619394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 08:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14619394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 08:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14619394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 08:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14619394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 08:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619394', 'tblTempUsageDetail_20' ) start [2025-03-06 08:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619394', 'tblTempUsageDetail_20' ) end [2025-03-06 08:55:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 08:55:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 08:55:22] Production.INFO: ==7333== Releasing lock... [2025-03-06 08:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 08:55:22] Production.INFO: 33.5 MB #Memory Used# [2025-03-06 08:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 05:56:05 [end_date_ymd] => 2025-03-06 08:56:05 [RateCDR] => 1 ) [2025-03-06 08:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 05:56:05' and `end` < '2025-03-06 08:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 08:56:18] Production.INFO: count ==654 [2025-03-06 08:56:18] Production.ERROR: pbx CDR StartTime 2025-03-06 05:56:05 - End Time 2025-03-06 08:56:05 [2025-03-06 08:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619399', 'tblTempUsageDetail_20' ) start [2025-03-06 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619399', 'tblTempUsageDetail_20' ) end [2025-03-06 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619399', 'tblTempVendorCDR_20' ) start [2025-03-06 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619399', 'tblTempVendorCDR_20' ) end [2025-03-06 08:56:18] Production.INFO: ProcessCDR(1,14619399,1,1,2) [2025-03-06 08:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14619399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 08:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14619399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 08:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14619399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 08:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14619399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 08:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619399', 'tblTempUsageDetail_20' ) start [2025-03-06 08:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619399', 'tblTempUsageDetail_20' ) end [2025-03-06 08:56:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 08:56:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 08:56:22] Production.INFO: ==7444== Releasing lock... [2025-03-06 08:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 08:56:22] Production.INFO: 33.5 MB #Memory Used# [2025-03-06 08:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 05:57:05 [end_date_ymd] => 2025-03-06 08:57:05 [RateCDR] => 1 ) [2025-03-06 08:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 05:57:05' and `end` < '2025-03-06 08:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 08:57:17] Production.INFO: count ==670 [2025-03-06 08:57:17] Production.ERROR: pbx CDR StartTime 2025-03-06 05:57:05 - End Time 2025-03-06 08:57:05 [2025-03-06 08:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 08:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619404', 'tblTempUsageDetail_20' ) start [2025-03-06 08:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619404', 'tblTempUsageDetail_20' ) end [2025-03-06 08:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619404', 'tblTempVendorCDR_20' ) start [2025-03-06 08:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619404', 'tblTempVendorCDR_20' ) end [2025-03-06 08:57:18] Production.INFO: ProcessCDR(1,14619404,1,1,2) [2025-03-06 08:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14619404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 08:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14619404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 08:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14619404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 08:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14619404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 08:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619404', 'tblTempUsageDetail_20' ) start [2025-03-06 08:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619404', 'tblTempUsageDetail_20' ) end [2025-03-06 08:57:23] Production.ERROR: pbx prc_insertCDR start [2025-03-06 08:57:23] Production.ERROR: pbx prc_insertCDR end [2025-03-06 08:57:23] Production.INFO: ==7565== Releasing lock... [2025-03-06 08:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 08:57:23] Production.INFO: 34 MB #Memory Used# [2025-03-06 08:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 05:58:06 [end_date_ymd] => 2025-03-06 08:58:06 [RateCDR] => 1 ) [2025-03-06 08: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-03-06 05:58:06' and `end` < '2025-03-06 08: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-03-06 08:58:18] Production.INFO: count ==672 [2025-03-06 08:58:18] Production.ERROR: pbx CDR StartTime 2025-03-06 05:58:06 - End Time 2025-03-06 08:58:06 [2025-03-06 08:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619409', 'tblTempUsageDetail_20' ) start [2025-03-06 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619409', 'tblTempUsageDetail_20' ) end [2025-03-06 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619409', 'tblTempVendorCDR_20' ) start [2025-03-06 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619409', 'tblTempVendorCDR_20' ) end [2025-03-06 08:58:18] Production.INFO: ProcessCDR(1,14619409,1,1,2) [2025-03-06 08:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14619409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 08:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14619409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 08:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14619409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 08:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14619409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 08:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619409', 'tblTempUsageDetail_20' ) start [2025-03-06 08:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619409', 'tblTempUsageDetail_20' ) end [2025-03-06 08:58:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 08:58:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 08:58:21] Production.INFO: ==7642== Releasing lock... [2025-03-06 08:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 08:58:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-06 08:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 05:59:05 [end_date_ymd] => 2025-03-06 08:59:05 [RateCDR] => 1 ) [2025-03-06 08:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 05:59:05' and `end` < '2025-03-06 08:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 08:59:17] Production.INFO: count ==678 [2025-03-06 08:59:17] Production.ERROR: pbx CDR StartTime 2025-03-06 05:59:05 - End Time 2025-03-06 08:59:05 [2025-03-06 08:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 08:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619414', 'tblTempUsageDetail_20' ) start [2025-03-06 08:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619414', 'tblTempUsageDetail_20' ) end [2025-03-06 08:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619414', 'tblTempVendorCDR_20' ) start [2025-03-06 08:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619414', 'tblTempVendorCDR_20' ) end [2025-03-06 08:59:17] Production.INFO: ProcessCDR(1,14619414,1,1,2) [2025-03-06 08:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14619414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 08:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14619414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 08:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14619414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 08:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14619414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 08:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619414', 'tblTempUsageDetail_20' ) start [2025-03-06 08:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619414', 'tblTempUsageDetail_20' ) end [2025-03-06 08:59:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 08:59:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 08:59:22] Production.INFO: ==7718== Releasing lock... [2025-03-06 08:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 08:59:22] Production.INFO: 34 MB #Memory Used# [2025-03-06 09:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 06:00:06 [end_date_ymd] => 2025-03-06 09:00:06 [RateCDR] => 1 ) [2025-03-06 09:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 06:00:06' and `end` < '2025-03-06 09:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 09:00:18] Production.INFO: count ==686 [2025-03-06 09:00:19] Production.ERROR: pbx CDR StartTime 2025-03-06 06:00:06 - End Time 2025-03-06 09:00:06 [2025-03-06 09:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619420', 'tblTempUsageDetail_20' ) start [2025-03-06 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619420', 'tblTempUsageDetail_20' ) end [2025-03-06 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619420', 'tblTempVendorCDR_20' ) start [2025-03-06 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619420', 'tblTempVendorCDR_20' ) end [2025-03-06 09:00:19] Production.INFO: ProcessCDR(1,14619420,1,1,2) [2025-03-06 09:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14619420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 09:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14619420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 09:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14619420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 09:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14619420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 09:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619420', 'tblTempUsageDetail_20' ) start [2025-03-06 09:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619420', 'tblTempUsageDetail_20' ) end [2025-03-06 09:00:24] Production.ERROR: pbx prc_insertCDR start [2025-03-06 09:00:24] Production.ERROR: pbx prc_insertCDR end [2025-03-06 09:00:24] Production.INFO: ==7802== Releasing lock... [2025-03-06 09:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 09:00:24] Production.INFO: 33.5 MB #Memory Used# [2025-03-06 09:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 06:01:06 [end_date_ymd] => 2025-03-06 09:01:06 [RateCDR] => 1 ) [2025-03-06 09: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-03-06 06:01:06' and `end` < '2025-03-06 09: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-03-06 09:01:18] Production.INFO: count ==749 [2025-03-06 09:01:18] Production.ERROR: pbx CDR StartTime 2025-03-06 06:01:06 - End Time 2025-03-06 09:01:06 [2025-03-06 09:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619425', 'tblTempUsageDetail_20' ) start [2025-03-06 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619425', 'tblTempUsageDetail_20' ) end [2025-03-06 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619425', 'tblTempVendorCDR_20' ) start [2025-03-06 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619425', 'tblTempVendorCDR_20' ) end [2025-03-06 09:01:18] Production.INFO: ProcessCDR(1,14619425,1,1,2) [2025-03-06 09:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14619425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 09:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14619425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 09:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14619425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 09:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14619425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 09:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619425', 'tblTempUsageDetail_20' ) start [2025-03-06 09:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619425', 'tblTempUsageDetail_20' ) end [2025-03-06 09:01:23] Production.ERROR: pbx prc_insertCDR start [2025-03-06 09:01:23] Production.ERROR: pbx prc_insertCDR end [2025-03-06 09:01:23] Production.INFO: ==7895== Releasing lock... [2025-03-06 09:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 09:01:23] Production.INFO: 33.5 MB #Memory Used# [2025-03-06 09:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 06:02:06 [end_date_ymd] => 2025-03-06 09:02:06 [RateCDR] => 1 ) [2025-03-06 09: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-03-06 06:02:06' and `end` < '2025-03-06 09: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-03-06 09:02:18] Production.INFO: count ==750 [2025-03-06 09:02:18] Production.ERROR: pbx CDR StartTime 2025-03-06 06:02:06 - End Time 2025-03-06 09:02:06 [2025-03-06 09:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619430', 'tblTempUsageDetail_20' ) start [2025-03-06 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619430', 'tblTempUsageDetail_20' ) end [2025-03-06 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619430', 'tblTempVendorCDR_20' ) start [2025-03-06 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619430', 'tblTempVendorCDR_20' ) end [2025-03-06 09:02:18] Production.INFO: ProcessCDR(1,14619430,1,1,2) [2025-03-06 09:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14619430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 09:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14619430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 09:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14619430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 09:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14619430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 09:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619430', 'tblTempUsageDetail_20' ) start [2025-03-06 09:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619430', 'tblTempUsageDetail_20' ) end [2025-03-06 09:02:23] Production.ERROR: pbx prc_insertCDR start [2025-03-06 09:02:23] Production.ERROR: pbx prc_insertCDR end [2025-03-06 09:02:23] Production.INFO: ==7965== Releasing lock... [2025-03-06 09:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 09:02:23] Production.INFO: 33.75 MB #Memory Used# [2025-03-06 09:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 06:03:05 [end_date_ymd] => 2025-03-06 09:03:05 [RateCDR] => 1 ) [2025-03-06 09:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 06:03:05' and `end` < '2025-03-06 09:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 09:03:17] Production.INFO: count ==760 [2025-03-06 09:03:17] Production.ERROR: pbx CDR StartTime 2025-03-06 06:03:05 - End Time 2025-03-06 09:03:05 [2025-03-06 09:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 09:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619435', 'tblTempUsageDetail_20' ) start [2025-03-06 09:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619435', 'tblTempUsageDetail_20' ) end [2025-03-06 09:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619435', 'tblTempVendorCDR_20' ) start [2025-03-06 09:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619435', 'tblTempVendorCDR_20' ) end [2025-03-06 09:03:17] Production.INFO: ProcessCDR(1,14619435,1,1,2) [2025-03-06 09:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14619435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 09:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14619435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 09:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14619435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 09:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14619435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 09:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619435', 'tblTempUsageDetail_20' ) start [2025-03-06 09:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619435', 'tblTempUsageDetail_20' ) end [2025-03-06 09:03:23] Production.ERROR: pbx prc_insertCDR start [2025-03-06 09:03:23] Production.ERROR: pbx prc_insertCDR end [2025-03-06 09:03:23] Production.INFO: ==8079== Releasing lock... [2025-03-06 09:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 09:03:23] Production.INFO: 33.25 MB #Memory Used# [2025-03-06 09:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 06:04:06 [end_date_ymd] => 2025-03-06 09:04:06 [RateCDR] => 1 ) [2025-03-06 09: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-03-06 06:04:06' and `end` < '2025-03-06 09: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-03-06 09:04:18] Production.INFO: count ==780 [2025-03-06 09:04:18] Production.ERROR: pbx CDR StartTime 2025-03-06 06:04:06 - End Time 2025-03-06 09:04:06 [2025-03-06 09:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619440', 'tblTempUsageDetail_20' ) start [2025-03-06 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619440', 'tblTempUsageDetail_20' ) end [2025-03-06 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619440', 'tblTempVendorCDR_20' ) start [2025-03-06 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619440', 'tblTempVendorCDR_20' ) end [2025-03-06 09:04:18] Production.INFO: ProcessCDR(1,14619440,1,1,2) [2025-03-06 09:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14619440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 09:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14619440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 09:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14619440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 09:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14619440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 09:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619440', 'tblTempUsageDetail_20' ) start [2025-03-06 09:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619440', 'tblTempUsageDetail_20' ) end [2025-03-06 09:04:24] Production.ERROR: pbx prc_insertCDR start [2025-03-06 09:04:24] Production.ERROR: pbx prc_insertCDR end [2025-03-06 09:04:24] Production.INFO: ==8155== Releasing lock... [2025-03-06 09:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 09:04:24] Production.INFO: 34 MB #Memory Used# [2025-03-06 09:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 06:05:05 [end_date_ymd] => 2025-03-06 09:05:05 [RateCDR] => 1 ) [2025-03-06 09:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 06:05:05' and `end` < '2025-03-06 09:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 09:05:17] Production.INFO: count ==788 [2025-03-06 09:05:18] Production.ERROR: pbx CDR StartTime 2025-03-06 06:05:05 - End Time 2025-03-06 09:05:05 [2025-03-06 09:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619445', 'tblTempUsageDetail_20' ) start [2025-03-06 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619445', 'tblTempUsageDetail_20' ) end [2025-03-06 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619445', 'tblTempVendorCDR_20' ) start [2025-03-06 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619445', 'tblTempVendorCDR_20' ) end [2025-03-06 09:05:18] Production.INFO: ProcessCDR(1,14619445,1,1,2) [2025-03-06 09:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14619445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 09:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14619445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 09:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14619445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 09:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14619445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 09:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619445', 'tblTempUsageDetail_20' ) start [2025-03-06 09:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619445', 'tblTempUsageDetail_20' ) end [2025-03-06 09:05:23] Production.ERROR: pbx prc_insertCDR start [2025-03-06 09:05:23] Production.ERROR: pbx prc_insertCDR end [2025-03-06 09:05:23] Production.INFO: ==8233== Releasing lock... [2025-03-06 09:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 09:05:23] Production.INFO: 34.5 MB #Memory Used# [2025-03-06 09:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 06:06:06 [end_date_ymd] => 2025-03-06 09:06:06 [RateCDR] => 1 ) [2025-03-06 09:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 06:06:06' and `end` < '2025-03-06 09:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 09:06:18] Production.INFO: count ==803 [2025-03-06 09:06:18] Production.ERROR: pbx CDR StartTime 2025-03-06 06:06:06 - End Time 2025-03-06 09:06:06 [2025-03-06 09:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 09:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619450', 'tblTempUsageDetail_20' ) start [2025-03-06 09:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619450', 'tblTempUsageDetail_20' ) end [2025-03-06 09:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619450', 'tblTempVendorCDR_20' ) start [2025-03-06 09:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619450', 'tblTempVendorCDR_20' ) end [2025-03-06 09:06:18] Production.INFO: ProcessCDR(1,14619450,1,1,2) [2025-03-06 09:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14619450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 09:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14619450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 09:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14619450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 09:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14619450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 09:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619450', 'tblTempUsageDetail_20' ) start [2025-03-06 09:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619450', 'tblTempUsageDetail_20' ) end [2025-03-06 09:06:25] Production.ERROR: pbx prc_insertCDR start [2025-03-06 09:06:25] Production.ERROR: pbx prc_insertCDR end [2025-03-06 09:06:25] Production.INFO: ==8314== Releasing lock... [2025-03-06 09:06:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 09:06:25] Production.INFO: 34 MB #Memory Used# [2025-03-06 09:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 06:07:06 [end_date_ymd] => 2025-03-06 09:07:06 [RateCDR] => 1 ) [2025-03-06 09: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-03-06 06:07:06' and `end` < '2025-03-06 09: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-03-06 09:07:18] Production.INFO: count ==828 [2025-03-06 09:07:18] Production.ERROR: pbx CDR StartTime 2025-03-06 06:07:06 - End Time 2025-03-06 09:07:06 [2025-03-06 09:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619455', 'tblTempUsageDetail_20' ) start [2025-03-06 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619455', 'tblTempUsageDetail_20' ) end [2025-03-06 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619455', 'tblTempVendorCDR_20' ) start [2025-03-06 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619455', 'tblTempVendorCDR_20' ) end [2025-03-06 09:07:18] Production.INFO: ProcessCDR(1,14619455,1,1,2) [2025-03-06 09:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14619455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 09:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14619455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 09:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14619455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 09:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14619455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 09:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619455', 'tblTempUsageDetail_20' ) start [2025-03-06 09:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619455', 'tblTempUsageDetail_20' ) end [2025-03-06 09:07:24] Production.ERROR: pbx prc_insertCDR start [2025-03-06 09:07:24] Production.ERROR: pbx prc_insertCDR end [2025-03-06 09:07:24] Production.INFO: ==8385== Releasing lock... [2025-03-06 09:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 09:07:24] Production.INFO: 34.25 MB #Memory Used# [2025-03-06 09:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 06:08:06 [end_date_ymd] => 2025-03-06 09:08:06 [RateCDR] => 1 ) [2025-03-06 09: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-03-06 06:08:06' and `end` < '2025-03-06 09: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-03-06 09:08:19] Production.INFO: count ==841 [2025-03-06 09:08:19] Production.ERROR: pbx CDR StartTime 2025-03-06 06:08:06 - End Time 2025-03-06 09:08:06 [2025-03-06 09:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 09:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619460', 'tblTempUsageDetail_20' ) start [2025-03-06 09:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619460', 'tblTempUsageDetail_20' ) end [2025-03-06 09:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619460', 'tblTempVendorCDR_20' ) start [2025-03-06 09:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619460', 'tblTempVendorCDR_20' ) end [2025-03-06 09:08:19] Production.INFO: ProcessCDR(1,14619460,1,1,2) [2025-03-06 09:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14619460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 09:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14619460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 09:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14619460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 09:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14619460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 09:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619460', 'tblTempUsageDetail_20' ) start [2025-03-06 09:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619460', 'tblTempUsageDetail_20' ) end [2025-03-06 09:08:25] Production.ERROR: pbx prc_insertCDR start [2025-03-06 09:08:25] Production.ERROR: pbx prc_insertCDR end [2025-03-06 09:08:25] Production.INFO: ==8460== Releasing lock... [2025-03-06 09:08:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 09:08:25] Production.INFO: 34 MB #Memory Used# [2025-03-06 09:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 06:09:05 [end_date_ymd] => 2025-03-06 09:09:05 [RateCDR] => 1 ) [2025-03-06 09:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 06:09:05' and `end` < '2025-03-06 09:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 09:09:18] Production.INFO: count ==892 [2025-03-06 09:09:18] Production.ERROR: pbx CDR StartTime 2025-03-06 06:09:05 - End Time 2025-03-06 09:09:05 [2025-03-06 09:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619465', 'tblTempUsageDetail_20' ) start [2025-03-06 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619465', 'tblTempUsageDetail_20' ) end [2025-03-06 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619465', 'tblTempVendorCDR_20' ) start [2025-03-06 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619465', 'tblTempVendorCDR_20' ) end [2025-03-06 09:09:18] Production.INFO: ProcessCDR(1,14619465,1,1,2) [2025-03-06 09:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14619465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 09:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14619465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 09:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14619465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 09:09:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14619465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 09:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619465', 'tblTempUsageDetail_20' ) start [2025-03-06 09:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619465', 'tblTempUsageDetail_20' ) end [2025-03-06 09:09:24] Production.ERROR: pbx prc_insertCDR start [2025-03-06 09:09:24] Production.ERROR: pbx prc_insertCDR end [2025-03-06 09:09:24] Production.INFO: ==8534== Releasing lock... [2025-03-06 09:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 09:09:24] Production.INFO: 34.75 MB #Memory Used# [2025-03-06 09:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 06:10:07 [end_date_ymd] => 2025-03-06 09:10:07 [RateCDR] => 1 ) [2025-03-06 09:10: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-03-06 06:10:07' and `end` < '2025-03-06 09:10: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-03-06 09:10:19] Production.INFO: count ==930 [2025-03-06 09:10:20] Production.ERROR: pbx CDR StartTime 2025-03-06 06:10:07 - End Time 2025-03-06 09:10:07 [2025-03-06 09:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 09:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619471', 'tblTempUsageDetail_20' ) start [2025-03-06 09:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619471', 'tblTempUsageDetail_20' ) end [2025-03-06 09:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619471', 'tblTempVendorCDR_20' ) start [2025-03-06 09:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619471', 'tblTempVendorCDR_20' ) end [2025-03-06 09:10:20] Production.INFO: ProcessCDR(1,14619471,1,1,2) [2025-03-06 09:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14619471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 09:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14619471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 09:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14619471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 09:10:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14619471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 09:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619471', 'tblTempUsageDetail_20' ) start [2025-03-06 09:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619471', 'tblTempUsageDetail_20' ) end [2025-03-06 09:10:25] Production.ERROR: pbx prc_insertCDR start [2025-03-06 09:10:25] Production.ERROR: pbx prc_insertCDR end [2025-03-06 09:10:25] Production.INFO: ==8610== Releasing lock... [2025-03-06 09:10:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 09:10:25] Production.INFO: 35 MB #Memory Used# [2025-03-06 09:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 06:11:06 [end_date_ymd] => 2025-03-06 09:11:06 [RateCDR] => 1 ) [2025-03-06 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-03-06 06:11:06' and `end` < '2025-03-06 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-03-06 09:11:18] Production.INFO: count ==1033 [2025-03-06 09:11:18] Production.ERROR: pbx CDR StartTime 2025-03-06 06:11:06 - End Time 2025-03-06 09:11:06 [2025-03-06 09:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619476', 'tblTempUsageDetail_20' ) start [2025-03-06 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619476', 'tblTempUsageDetail_20' ) end [2025-03-06 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619476', 'tblTempVendorCDR_20' ) start [2025-03-06 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619476', 'tblTempVendorCDR_20' ) end [2025-03-06 09:11:18] Production.INFO: ProcessCDR(1,14619476,1,1,2) [2025-03-06 09:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14619476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 09:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14619476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 09:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14619476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 09:11:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14619476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 09:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619476', 'tblTempUsageDetail_20' ) start [2025-03-06 09:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619476', 'tblTempUsageDetail_20' ) end [2025-03-06 09:11:24] Production.ERROR: pbx prc_insertCDR start [2025-03-06 09:11:24] Production.ERROR: pbx prc_insertCDR end [2025-03-06 09:11:24] Production.INFO: ==8685== Releasing lock... [2025-03-06 09:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 09:11:24] Production.INFO: 36.25 MB #Memory Used# [2025-03-06 09:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 06:12:06 [end_date_ymd] => 2025-03-06 09:12:06 [RateCDR] => 1 ) [2025-03-06 09: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-03-06 06:12:06' and `end` < '2025-03-06 09: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-03-06 09:12:18] Production.INFO: count ==1049 [2025-03-06 09:12:19] Production.ERROR: pbx CDR StartTime 2025-03-06 06:12:06 - End Time 2025-03-06 09:12:06 [2025-03-06 09:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 09:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619481', 'tblTempUsageDetail_20' ) start [2025-03-06 09:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619481', 'tblTempUsageDetail_20' ) end [2025-03-06 09:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619481', 'tblTempVendorCDR_20' ) start [2025-03-06 09:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619481', 'tblTempVendorCDR_20' ) end [2025-03-06 09:12:19] Production.INFO: ProcessCDR(1,14619481,1,1,2) [2025-03-06 09:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14619481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 09:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14619481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 09:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14619481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 09:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14619481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 09:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619481', 'tblTempUsageDetail_20' ) start [2025-03-06 09:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619481', 'tblTempUsageDetail_20' ) end [2025-03-06 09:12:24] Production.ERROR: pbx prc_insertCDR start [2025-03-06 09:12:24] Production.ERROR: pbx prc_insertCDR end [2025-03-06 09:12:24] Production.INFO: ==8764== Releasing lock... [2025-03-06 09:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 09:12:24] Production.INFO: 36.5 MB #Memory Used# [2025-03-06 09:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 06:13:05 [end_date_ymd] => 2025-03-06 09:13:05 [RateCDR] => 1 ) [2025-03-06 09:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 06:13:05' and `end` < '2025-03-06 09:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 09:13:18] Production.INFO: count ==1075 [2025-03-06 09:13:18] Production.ERROR: pbx CDR StartTime 2025-03-06 06:13:05 - End Time 2025-03-06 09:13:05 [2025-03-06 09:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619486', 'tblTempUsageDetail_20' ) start [2025-03-06 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619486', 'tblTempUsageDetail_20' ) end [2025-03-06 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619486', 'tblTempVendorCDR_20' ) start [2025-03-06 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619486', 'tblTempVendorCDR_20' ) end [2025-03-06 09:13:18] Production.INFO: ProcessCDR(1,14619486,1,1,2) [2025-03-06 09:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14619486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 09:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14619486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 09:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14619486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 09:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14619486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 09:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619486', 'tblTempUsageDetail_20' ) start [2025-03-06 09:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619486', 'tblTempUsageDetail_20' ) end [2025-03-06 09:13:23] Production.ERROR: pbx prc_insertCDR start [2025-03-06 09:13:23] Production.ERROR: pbx prc_insertCDR end [2025-03-06 09:13:23] Production.INFO: ==8837== Releasing lock... [2025-03-06 09:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 09:13:23] Production.INFO: 36.25 MB #Memory Used# [2025-03-06 09:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 06:14:06 [end_date_ymd] => 2025-03-06 09:14:06 [RateCDR] => 1 ) [2025-03-06 09: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-03-06 06:14:06' and `end` < '2025-03-06 09: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-03-06 09:14:18] Production.INFO: count ==1118 [2025-03-06 09:14:19] Production.ERROR: pbx CDR StartTime 2025-03-06 06:14:06 - End Time 2025-03-06 09:14:06 [2025-03-06 09:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 09:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619491', 'tblTempUsageDetail_20' ) start [2025-03-06 09:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619491', 'tblTempUsageDetail_20' ) end [2025-03-06 09:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619491', 'tblTempVendorCDR_20' ) start [2025-03-06 09:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619491', 'tblTempVendorCDR_20' ) end [2025-03-06 09:14:19] Production.INFO: ProcessCDR(1,14619491,1,1,2) [2025-03-06 09:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14619491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 09:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14619491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 09:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14619491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 09:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14619491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 09:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619491', 'tblTempUsageDetail_20' ) start [2025-03-06 09:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619491', 'tblTempUsageDetail_20' ) end [2025-03-06 09:14:24] Production.ERROR: pbx prc_insertCDR start [2025-03-06 09:14:25] Production.ERROR: pbx prc_insertCDR end [2025-03-06 09:14:25] Production.INFO: ==8913== Releasing lock... [2025-03-06 09:14:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 09:14:25] Production.INFO: 36.25 MB #Memory Used# [2025-03-06 09:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 06:15:05 [end_date_ymd] => 2025-03-06 09:15:05 [RateCDR] => 1 ) [2025-03-06 09:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 06:15:05' and `end` < '2025-03-06 09:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 09:15:18] Production.INFO: count ==1138 [2025-03-06 09:15:18] Production.ERROR: pbx CDR StartTime 2025-03-06 06:15:05 - End Time 2025-03-06 09:15:05 [2025-03-06 09:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619496', 'tblTempUsageDetail_20' ) start [2025-03-06 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619496', 'tblTempUsageDetail_20' ) end [2025-03-06 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619496', 'tblTempVendorCDR_20' ) start [2025-03-06 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619496', 'tblTempVendorCDR_20' ) end [2025-03-06 09:15:18] Production.INFO: ProcessCDR(1,14619496,1,1,2) [2025-03-06 09:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14619496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 09:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14619496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 09:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14619496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 09:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14619496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 09:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619496', 'tblTempUsageDetail_20' ) start [2025-03-06 09:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619496', 'tblTempUsageDetail_20' ) end [2025-03-06 09:15:23] Production.ERROR: pbx prc_insertCDR start [2025-03-06 09:15:24] Production.ERROR: pbx prc_insertCDR end [2025-03-06 09:15:24] Production.INFO: ==9013== Releasing lock... [2025-03-06 09:15:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 09:15:24] Production.INFO: 36.75 MB #Memory Used# [2025-03-06 09:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 06:16:06 [end_date_ymd] => 2025-03-06 09:16:06 [RateCDR] => 1 ) [2025-03-06 09: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-03-06 06:16:06' and `end` < '2025-03-06 09: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-03-06 09:16:19] Production.INFO: count ==1163 [2025-03-06 09:16:19] Production.ERROR: pbx CDR StartTime 2025-03-06 06:16:06 - End Time 2025-03-06 09:16:06 [2025-03-06 09:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 09:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619501', 'tblTempUsageDetail_20' ) start [2025-03-06 09:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619501', 'tblTempUsageDetail_20' ) end [2025-03-06 09:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619501', 'tblTempVendorCDR_20' ) start [2025-03-06 09:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619501', 'tblTempVendorCDR_20' ) end [2025-03-06 09:16:19] Production.INFO: ProcessCDR(1,14619501,1,1,2) [2025-03-06 09:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14619501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 09:16:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14619501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 09:16:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14619501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 09:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14619501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 09:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619501', 'tblTempUsageDetail_20' ) start [2025-03-06 09:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619501', 'tblTempUsageDetail_20' ) end [2025-03-06 09:16:25] Production.ERROR: pbx prc_insertCDR start [2025-03-06 09:16:25] Production.ERROR: pbx prc_insertCDR end [2025-03-06 09:16:25] Production.INFO: ==9083== Releasing lock... [2025-03-06 09:16:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 09:16:25] Production.INFO: 36.75 MB #Memory Used# [2025-03-06 09:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 06:17:06 [end_date_ymd] => 2025-03-06 09:17:06 [RateCDR] => 1 ) [2025-03-06 09: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-03-06 06:17:06' and `end` < '2025-03-06 09: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-03-06 09:17:18] Production.INFO: count ==1180 [2025-03-06 09:17:18] Production.ERROR: pbx CDR StartTime 2025-03-06 06:17:06 - End Time 2025-03-06 09:17:06 [2025-03-06 09:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 09:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619506', 'tblTempUsageDetail_20' ) start [2025-03-06 09:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619506', 'tblTempUsageDetail_20' ) end [2025-03-06 09:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619506', 'tblTempVendorCDR_20' ) start [2025-03-06 09:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619506', 'tblTempVendorCDR_20' ) end [2025-03-06 09:17:18] Production.INFO: ProcessCDR(1,14619506,1,1,2) [2025-03-06 09:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14619506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 09:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14619506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 09:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14619506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 09:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14619506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 09:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619506', 'tblTempUsageDetail_20' ) start [2025-03-06 09:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619506', 'tblTempUsageDetail_20' ) end [2025-03-06 09:17:24] Production.ERROR: pbx prc_insertCDR start [2025-03-06 09:17:24] Production.ERROR: pbx prc_insertCDR end [2025-03-06 09:17:24] Production.INFO: ==9159== Releasing lock... [2025-03-06 09:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 09:17:24] Production.INFO: 37 MB #Memory Used# [2025-03-06 09:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 06:18:05 [end_date_ymd] => 2025-03-06 09:18:05 [RateCDR] => 1 ) [2025-03-06 09:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 06:18:05' and `end` < '2025-03-06 09:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 09:18:17] Production.INFO: count ==1196 [2025-03-06 09:18:18] Production.ERROR: pbx CDR StartTime 2025-03-06 06:18:05 - End Time 2025-03-06 09:18:05 [2025-03-06 09:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 09:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619511', 'tblTempUsageDetail_20' ) start [2025-03-06 09:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619511', 'tblTempUsageDetail_20' ) end [2025-03-06 09:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619511', 'tblTempVendorCDR_20' ) start [2025-03-06 09:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619511', 'tblTempVendorCDR_20' ) end [2025-03-06 09:18:18] Production.INFO: ProcessCDR(1,14619511,1,1,2) [2025-03-06 09:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14619511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 09:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14619511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 09:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14619511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 09:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14619511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 09:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619511', 'tblTempUsageDetail_20' ) start [2025-03-06 09:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619511', 'tblTempUsageDetail_20' ) end [2025-03-06 09:18:24] Production.ERROR: pbx prc_insertCDR start [2025-03-06 09:18:24] Production.ERROR: pbx prc_insertCDR end [2025-03-06 09:18:24] Production.INFO: ==9276== Releasing lock... [2025-03-06 09:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 09:18:24] Production.INFO: 37.25 MB #Memory Used# [2025-03-06 09:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 06:19:06 [end_date_ymd] => 2025-03-06 09:19:06 [RateCDR] => 1 ) [2025-03-06 09: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-03-06 06:19:06' and `end` < '2025-03-06 09: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-03-06 09:19:18] Production.INFO: count ==1207 [2025-03-06 09:19:18] Production.ERROR: pbx CDR StartTime 2025-03-06 06:19:06 - End Time 2025-03-06 09:19:06 [2025-03-06 09:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619516', 'tblTempUsageDetail_20' ) start [2025-03-06 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619516', 'tblTempUsageDetail_20' ) end [2025-03-06 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619516', 'tblTempVendorCDR_20' ) start [2025-03-06 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619516', 'tblTempVendorCDR_20' ) end [2025-03-06 09:19:18] Production.INFO: ProcessCDR(1,14619516,1,1,2) [2025-03-06 09:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14619516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 09:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14619516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 09:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14619516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 09:19:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14619516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 09:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619516', 'tblTempUsageDetail_20' ) start [2025-03-06 09:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619516', 'tblTempUsageDetail_20' ) end [2025-03-06 09:19:24] Production.ERROR: pbx prc_insertCDR start [2025-03-06 09:19:24] Production.ERROR: pbx prc_insertCDR end [2025-03-06 09:19:24] Production.INFO: ==9352== Releasing lock... [2025-03-06 09:19:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 09:19:24] Production.INFO: 37.25 MB #Memory Used# [2025-03-06 09:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 06:20:05 [end_date_ymd] => 2025-03-06 09:20:05 [RateCDR] => 1 ) [2025-03-06 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-03-06 06:20:05' and `end` < '2025-03-06 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-03-06 09:20:17] Production.INFO: count ==1213 [2025-03-06 09:20:18] Production.ERROR: pbx CDR StartTime 2025-03-06 06:20:05 - End Time 2025-03-06 09:20:05 [2025-03-06 09:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 09:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619521', 'tblTempUsageDetail_20' ) start [2025-03-06 09:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619521', 'tblTempUsageDetail_20' ) end [2025-03-06 09:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619521', 'tblTempVendorCDR_20' ) start [2025-03-06 09:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619521', 'tblTempVendorCDR_20' ) end [2025-03-06 09:20:18] Production.INFO: ProcessCDR(1,14619521,1,1,2) [2025-03-06 09:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14619521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 09:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14619521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 09:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14619521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 09:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14619521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 09:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619521', 'tblTempUsageDetail_20' ) start [2025-03-06 09:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619521', 'tblTempUsageDetail_20' ) end [2025-03-06 09:20:23] Production.ERROR: pbx prc_insertCDR start [2025-03-06 09:20:23] Production.ERROR: pbx prc_insertCDR end [2025-03-06 09:20:23] Production.INFO: ==9426== Releasing lock... [2025-03-06 09:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 09:20:23] Production.INFO: 37.5 MB #Memory Used# [2025-03-06 09:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 06:21:05 [end_date_ymd] => 2025-03-06 09:21:05 [RateCDR] => 1 ) [2025-03-06 09:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 06:21:05' and `end` < '2025-03-06 09:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 09:21:18] Production.INFO: count ==1277 [2025-03-06 09:21:18] Production.ERROR: pbx CDR StartTime 2025-03-06 06:21:05 - End Time 2025-03-06 09:21:05 [2025-03-06 09:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 09:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619527', 'tblTempUsageDetail_20' ) start [2025-03-06 09:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619527', 'tblTempUsageDetail_20' ) end [2025-03-06 09:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619527', 'tblTempVendorCDR_20' ) start [2025-03-06 09:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619527', 'tblTempVendorCDR_20' ) end [2025-03-06 09:21:18] Production.INFO: ProcessCDR(1,14619527,1,1,2) [2025-03-06 09:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14619527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 09:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14619527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 09:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14619527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 09:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14619527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 09:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619527', 'tblTempUsageDetail_20' ) start [2025-03-06 09:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619527', 'tblTempUsageDetail_20' ) end [2025-03-06 09:21:23] Production.ERROR: pbx prc_insertCDR start [2025-03-06 09:21:23] Production.ERROR: pbx prc_insertCDR end [2025-03-06 09:21:23] Production.INFO: ==9504== Releasing lock... [2025-03-06 09:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 09:21:23] Production.INFO: 38 MB #Memory Used# [2025-03-06 09:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 06:22:06 [end_date_ymd] => 2025-03-06 09:22:06 [RateCDR] => 1 ) [2025-03-06 09:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 06:22:06' and `end` < '2025-03-06 09:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 09:22:18] Production.INFO: count ==1290 [2025-03-06 09:22:19] Production.ERROR: pbx CDR StartTime 2025-03-06 06:22:06 - End Time 2025-03-06 09:22:06 [2025-03-06 09:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 09:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619532', 'tblTempUsageDetail_20' ) start [2025-03-06 09:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619532', 'tblTempUsageDetail_20' ) end [2025-03-06 09:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619532', 'tblTempVendorCDR_20' ) start [2025-03-06 09:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619532', 'tblTempVendorCDR_20' ) end [2025-03-06 09:22:19] Production.INFO: ProcessCDR(1,14619532,1,1,2) [2025-03-06 09:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14619532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 09:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14619532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 09:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14619532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 09:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14619532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 09:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619532', 'tblTempUsageDetail_20' ) start [2025-03-06 09:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619532', 'tblTempUsageDetail_20' ) end [2025-03-06 09:22:24] Production.ERROR: pbx prc_insertCDR start [2025-03-06 09:22:24] Production.ERROR: pbx prc_insertCDR end [2025-03-06 09:22:24] Production.INFO: ==9580== Releasing lock... [2025-03-06 09:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 09:22:24] Production.INFO: 38 MB #Memory Used# [2025-03-06 09:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 06:23:05 [end_date_ymd] => 2025-03-06 09:23:05 [RateCDR] => 1 ) [2025-03-06 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-03-06 06:23:05' and `end` < '2025-03-06 09: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-03-06 09:23:18] Production.INFO: count ==1295 [2025-03-06 09:23:18] Production.ERROR: pbx CDR StartTime 2025-03-06 06:23:05 - End Time 2025-03-06 09:23:05 [2025-03-06 09:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 09:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619537', 'tblTempUsageDetail_20' ) start [2025-03-06 09:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619537', 'tblTempUsageDetail_20' ) end [2025-03-06 09:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619537', 'tblTempVendorCDR_20' ) start [2025-03-06 09:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619537', 'tblTempVendorCDR_20' ) end [2025-03-06 09:23:18] Production.INFO: ProcessCDR(1,14619537,1,1,2) [2025-03-06 09:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14619537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 09:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14619537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 09:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14619537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 09:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14619537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 09:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619537', 'tblTempUsageDetail_20' ) start [2025-03-06 09:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619537', 'tblTempUsageDetail_20' ) end [2025-03-06 09:23:23] Production.ERROR: pbx prc_insertCDR start [2025-03-06 09:23:23] Production.ERROR: pbx prc_insertCDR end [2025-03-06 09:23:23] Production.INFO: ==9660== Releasing lock... [2025-03-06 09:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 09:23:23] Production.INFO: 37.75 MB #Memory Used# [2025-03-06 09:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 06:24:05 [end_date_ymd] => 2025-03-06 09:24:05 [RateCDR] => 1 ) [2025-03-06 09:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 06:24:05' and `end` < '2025-03-06 09:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 09:24:17] Production.INFO: count ==1309 [2025-03-06 09:24:17] Production.ERROR: pbx CDR StartTime 2025-03-06 06:24:05 - End Time 2025-03-06 09:24:05 [2025-03-06 09:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 09:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619542', 'tblTempUsageDetail_20' ) start [2025-03-06 09:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619542', 'tblTempUsageDetail_20' ) end [2025-03-06 09:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619542', 'tblTempVendorCDR_20' ) start [2025-03-06 09:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619542', 'tblTempVendorCDR_20' ) end [2025-03-06 09:24:17] Production.INFO: ProcessCDR(1,14619542,1,1,2) [2025-03-06 09:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14619542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 09:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14619542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 09:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14619542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 09:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14619542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 09:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619542', 'tblTempUsageDetail_20' ) start [2025-03-06 09:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619542', 'tblTempUsageDetail_20' ) end [2025-03-06 09:24:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 09:24:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 09:24:22] Production.INFO: ==9731== Releasing lock... [2025-03-06 09:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 09:24:22] Production.INFO: 37.75 MB #Memory Used# [2025-03-06 09:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 06:25:05 [end_date_ymd] => 2025-03-06 09:25:05 [RateCDR] => 1 ) [2025-03-06 09:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 06:25:05' and `end` < '2025-03-06 09:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 09:25:18] Production.INFO: count ==1326 [2025-03-06 09:25:18] Production.ERROR: pbx CDR StartTime 2025-03-06 06:25:05 - End Time 2025-03-06 09:25:05 [2025-03-06 09:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619547', 'tblTempUsageDetail_20' ) start [2025-03-06 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619547', 'tblTempUsageDetail_20' ) end [2025-03-06 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619547', 'tblTempVendorCDR_20' ) start [2025-03-06 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619547', 'tblTempVendorCDR_20' ) end [2025-03-06 09:25:18] Production.INFO: ProcessCDR(1,14619547,1,1,2) [2025-03-06 09:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14619547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 09:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14619547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 09:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14619547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 09:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14619547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 09:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619547', 'tblTempUsageDetail_20' ) start [2025-03-06 09:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619547', 'tblTempUsageDetail_20' ) end [2025-03-06 09:25:23] Production.ERROR: pbx prc_insertCDR start [2025-03-06 09:25:23] Production.ERROR: pbx prc_insertCDR end [2025-03-06 09:25:23] Production.INFO: ==9813== Releasing lock... [2025-03-06 09:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 09:25:23] Production.INFO: 38.25 MB #Memory Used# [2025-03-06 09:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 06:26:05 [end_date_ymd] => 2025-03-06 09:26:05 [RateCDR] => 1 ) [2025-03-06 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-03-06 06:26:05' and `end` < '2025-03-06 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-03-06 09:26:18] Production.INFO: count ==1338 [2025-03-06 09:26:18] Production.ERROR: pbx CDR StartTime 2025-03-06 06:26:05 - End Time 2025-03-06 09:26:05 [2025-03-06 09:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 09:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619552', 'tblTempUsageDetail_20' ) start [2025-03-06 09:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619552', 'tblTempUsageDetail_20' ) end [2025-03-06 09:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619552', 'tblTempVendorCDR_20' ) start [2025-03-06 09:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619552', 'tblTempVendorCDR_20' ) end [2025-03-06 09:26:18] Production.INFO: ProcessCDR(1,14619552,1,1,2) [2025-03-06 09:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14619552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 09:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14619552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 09:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14619552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 09:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14619552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 09:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619552', 'tblTempUsageDetail_20' ) start [2025-03-06 09:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619552', 'tblTempUsageDetail_20' ) end [2025-03-06 09:26:23] Production.ERROR: pbx prc_insertCDR start [2025-03-06 09:26:23] Production.ERROR: pbx prc_insertCDR end [2025-03-06 09:26:23] Production.INFO: ==9887== Releasing lock... [2025-03-06 09:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 09:26:23] Production.INFO: 38 MB #Memory Used# [2025-03-06 09:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 06:27:05 [end_date_ymd] => 2025-03-06 09:27:05 [RateCDR] => 1 ) [2025-03-06 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-03-06 06:27:05' and `end` < '2025-03-06 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-03-06 09:27:17] Production.INFO: count ==1345 [2025-03-06 09:27:18] Production.ERROR: pbx CDR StartTime 2025-03-06 06:27:05 - End Time 2025-03-06 09:27:05 [2025-03-06 09:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 09:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619557', 'tblTempUsageDetail_20' ) start [2025-03-06 09:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619557', 'tblTempUsageDetail_20' ) end [2025-03-06 09:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619557', 'tblTempVendorCDR_20' ) start [2025-03-06 09:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619557', 'tblTempVendorCDR_20' ) end [2025-03-06 09:27:18] Production.INFO: ProcessCDR(1,14619557,1,1,2) [2025-03-06 09:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14619557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 09:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14619557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 09:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14619557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 09:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14619557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 09:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619557', 'tblTempUsageDetail_20' ) start [2025-03-06 09:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619557', 'tblTempUsageDetail_20' ) end [2025-03-06 09:27:23] Production.ERROR: pbx prc_insertCDR start [2025-03-06 09:27:23] Production.ERROR: pbx prc_insertCDR end [2025-03-06 09:27:23] Production.INFO: ==9968== Releasing lock... [2025-03-06 09:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 09:27:23] Production.INFO: 38 MB #Memory Used# [2025-03-06 09:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 06:28:06 [end_date_ymd] => 2025-03-06 09:28:06 [RateCDR] => 1 ) [2025-03-06 09:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 06:28:06' and `end` < '2025-03-06 09:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 09:28:18] Production.INFO: count ==1372 [2025-03-06 09:28:18] Production.ERROR: pbx CDR StartTime 2025-03-06 06:28:06 - End Time 2025-03-06 09:28:06 [2025-03-06 09:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 09:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619562', 'tblTempUsageDetail_20' ) start [2025-03-06 09:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619562', 'tblTempUsageDetail_20' ) end [2025-03-06 09:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619562', 'tblTempVendorCDR_20' ) start [2025-03-06 09:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619562', 'tblTempVendorCDR_20' ) end [2025-03-06 09:28:18] Production.INFO: ProcessCDR(1,14619562,1,1,2) [2025-03-06 09:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14619562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 09:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14619562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 09:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14619562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 09:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14619562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 09:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619562', 'tblTempUsageDetail_20' ) start [2025-03-06 09:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619562', 'tblTempUsageDetail_20' ) end [2025-03-06 09:28:23] Production.ERROR: pbx prc_insertCDR start [2025-03-06 09:28:23] Production.ERROR: pbx prc_insertCDR end [2025-03-06 09:28:23] Production.INFO: ==10039== Releasing lock... [2025-03-06 09:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 09:28:23] Production.INFO: 38.25 MB #Memory Used# [2025-03-06 09:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 06:29:05 [end_date_ymd] => 2025-03-06 09:29:05 [RateCDR] => 1 ) [2025-03-06 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-03-06 06:29:05' and `end` < '2025-03-06 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-03-06 09:29:18] Production.INFO: count ==1400 [2025-03-06 09:29:18] Production.ERROR: pbx CDR StartTime 2025-03-06 06:29:05 - End Time 2025-03-06 09:29:05 [2025-03-06 09:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 09:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619567', 'tblTempUsageDetail_20' ) start [2025-03-06 09:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619567', 'tblTempUsageDetail_20' ) end [2025-03-06 09:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619567', 'tblTempVendorCDR_20' ) start [2025-03-06 09:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619567', 'tblTempVendorCDR_20' ) end [2025-03-06 09:29:18] Production.INFO: ProcessCDR(1,14619567,1,1,2) [2025-03-06 09:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14619567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 09:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14619567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 09:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14619567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 09:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14619567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 09:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619567', 'tblTempUsageDetail_20' ) start [2025-03-06 09:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619567', 'tblTempUsageDetail_20' ) end [2025-03-06 09:29:23] Production.ERROR: pbx prc_insertCDR start [2025-03-06 09:29:23] Production.ERROR: pbx prc_insertCDR end [2025-03-06 09:29:23] Production.INFO: ==10110== Releasing lock... [2025-03-06 09:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 09:29:23] Production.INFO: 38.5 MB #Memory Used# [2025-03-06 09:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 06:30:06 [end_date_ymd] => 2025-03-06 09:30:06 [RateCDR] => 1 ) [2025-03-06 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-03-06 06:30:06' and `end` < '2025-03-06 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-03-06 09:30:19] Production.INFO: count ==1403 [2025-03-06 09:30:19] Production.ERROR: pbx CDR StartTime 2025-03-06 06:30:06 - End Time 2025-03-06 09:30:06 [2025-03-06 09:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 09:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619573', 'tblTempUsageDetail_20' ) start [2025-03-06 09:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619573', 'tblTempUsageDetail_20' ) end [2025-03-06 09:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619573', 'tblTempVendorCDR_20' ) start [2025-03-06 09:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619573', 'tblTempVendorCDR_20' ) end [2025-03-06 09:30:19] Production.INFO: ProcessCDR(1,14619573,1,1,2) [2025-03-06 09:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14619573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 09:30:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14619573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 09:30:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14619573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 09:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14619573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 09:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619573', 'tblTempUsageDetail_20' ) start [2025-03-06 09:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619573', 'tblTempUsageDetail_20' ) end [2025-03-06 09:30:24] Production.ERROR: pbx prc_insertCDR start [2025-03-06 09:30:24] Production.ERROR: pbx prc_insertCDR end [2025-03-06 09:30:24] Production.INFO: ==10189== Releasing lock... [2025-03-06 09:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 09:30:24] Production.INFO: 38.25 MB #Memory Used# [2025-03-06 09:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 06:31:05 [end_date_ymd] => 2025-03-06 09:31:05 [RateCDR] => 1 ) [2025-03-06 09:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 06:31:05' and `end` < '2025-03-06 09:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 09:31:17] Production.INFO: count ==1464 [2025-03-06 09:31:18] Production.ERROR: pbx CDR StartTime 2025-03-06 06:31:05 - End Time 2025-03-06 09:31:05 [2025-03-06 09:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 09:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619578', 'tblTempUsageDetail_20' ) start [2025-03-06 09:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619578', 'tblTempUsageDetail_20' ) end [2025-03-06 09:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619578', 'tblTempVendorCDR_20' ) start [2025-03-06 09:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619578', 'tblTempVendorCDR_20' ) end [2025-03-06 09:31:18] Production.INFO: ProcessCDR(1,14619578,1,1,2) [2025-03-06 09:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14619578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 09:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14619578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 09:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14619578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 09:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14619578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 09:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619578', 'tblTempUsageDetail_20' ) start [2025-03-06 09:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619578', 'tblTempUsageDetail_20' ) end [2025-03-06 09:31:23] Production.ERROR: pbx prc_insertCDR start [2025-03-06 09:31:23] Production.ERROR: pbx prc_insertCDR end [2025-03-06 09:31:23] Production.INFO: ==10265== Releasing lock... [2025-03-06 09:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 09:31:23] Production.INFO: 39 MB #Memory Used# [2025-03-06 09:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 06:32:05 [end_date_ymd] => 2025-03-06 09:32:05 [RateCDR] => 1 ) [2025-03-06 09:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 06:32:05' and `end` < '2025-03-06 09:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 09:32:18] Production.INFO: count ==1477 [2025-03-06 09:32:18] Production.ERROR: pbx CDR StartTime 2025-03-06 06:32:05 - End Time 2025-03-06 09:32:05 [2025-03-06 09:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 09:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619583', 'tblTempUsageDetail_20' ) start [2025-03-06 09:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619583', 'tblTempUsageDetail_20' ) end [2025-03-06 09:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619583', 'tblTempVendorCDR_20' ) start [2025-03-06 09:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619583', 'tblTempVendorCDR_20' ) end [2025-03-06 09:32:18] Production.INFO: ProcessCDR(1,14619583,1,1,2) [2025-03-06 09:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14619583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 09:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14619583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 09:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14619583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 09:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14619583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 09:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619583', 'tblTempUsageDetail_20' ) start [2025-03-06 09:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619583', 'tblTempUsageDetail_20' ) end [2025-03-06 09:32:23] Production.ERROR: pbx prc_insertCDR start [2025-03-06 09:32:23] Production.ERROR: pbx prc_insertCDR end [2025-03-06 09:32:23] Production.INFO: ==10338== Releasing lock... [2025-03-06 09:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 09:32:23] Production.INFO: 39.25 MB #Memory Used# [2025-03-06 09:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 06:33:05 [end_date_ymd] => 2025-03-06 09:33:05 [RateCDR] => 1 ) [2025-03-06 09:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 06:33:05' and `end` < '2025-03-06 09:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 09:33:17] Production.INFO: count ==1490 [2025-03-06 09:33:18] Production.ERROR: pbx CDR StartTime 2025-03-06 06:33:05 - End Time 2025-03-06 09:33:05 [2025-03-06 09:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 09:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619588', 'tblTempUsageDetail_20' ) start [2025-03-06 09:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619588', 'tblTempUsageDetail_20' ) end [2025-03-06 09:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619588', 'tblTempVendorCDR_20' ) start [2025-03-06 09:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619588', 'tblTempVendorCDR_20' ) end [2025-03-06 09:33:18] Production.INFO: ProcessCDR(1,14619588,1,1,2) [2025-03-06 09:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14619588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 09:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14619588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 09:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14619588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 09:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14619588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 09:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619588', 'tblTempUsageDetail_20' ) start [2025-03-06 09:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619588', 'tblTempUsageDetail_20' ) end [2025-03-06 09:33:23] Production.ERROR: pbx prc_insertCDR start [2025-03-06 09:33:23] Production.ERROR: pbx prc_insertCDR end [2025-03-06 09:33:23] Production.INFO: ==10407== Releasing lock... [2025-03-06 09:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 09:33:23] Production.INFO: 39.25 MB #Memory Used# [2025-03-06 09:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 06:34:06 [end_date_ymd] => 2025-03-06 09:34:06 [RateCDR] => 1 ) [2025-03-06 09: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-03-06 06:34:06' and `end` < '2025-03-06 09: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-03-06 09:34:18] Production.INFO: count ==1507 [2025-03-06 09:34:19] Production.ERROR: pbx CDR StartTime 2025-03-06 06:34:06 - End Time 2025-03-06 09:34:06 [2025-03-06 09:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 09:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619593', 'tblTempUsageDetail_20' ) start [2025-03-06 09:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619593', 'tblTempUsageDetail_20' ) end [2025-03-06 09:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619593', 'tblTempVendorCDR_20' ) start [2025-03-06 09:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619593', 'tblTempVendorCDR_20' ) end [2025-03-06 09:34:19] Production.INFO: ProcessCDR(1,14619593,1,1,2) [2025-03-06 09:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14619593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 09:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14619593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 09:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14619593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 09:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14619593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 09:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619593', 'tblTempUsageDetail_20' ) start [2025-03-06 09:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619593', 'tblTempUsageDetail_20' ) end [2025-03-06 09:34:24] Production.ERROR: pbx prc_insertCDR start [2025-03-06 09:34:24] Production.ERROR: pbx prc_insertCDR end [2025-03-06 09:34:24] Production.INFO: ==10518== Releasing lock... [2025-03-06 09:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 09:34:24] Production.INFO: 39.5 MB #Memory Used# [2025-03-06 09:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 06:35:05 [end_date_ymd] => 2025-03-06 09:35:05 [RateCDR] => 1 ) [2025-03-06 09:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 06:35:05' and `end` < '2025-03-06 09:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 09:35:17] Production.INFO: count ==1536 [2025-03-06 09:35:18] Production.ERROR: pbx CDR StartTime 2025-03-06 06:35:05 - End Time 2025-03-06 09:35:05 [2025-03-06 09:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 09:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619598', 'tblTempUsageDetail_20' ) start [2025-03-06 09:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619598', 'tblTempUsageDetail_20' ) end [2025-03-06 09:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619598', 'tblTempVendorCDR_20' ) start [2025-03-06 09:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619598', 'tblTempVendorCDR_20' ) end [2025-03-06 09:35:18] Production.INFO: ProcessCDR(1,14619598,1,1,2) [2025-03-06 09:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14619598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 09:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14619598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 09:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14619598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 09:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14619598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 09:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619598', 'tblTempUsageDetail_20' ) start [2025-03-06 09:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619598', 'tblTempUsageDetail_20' ) end [2025-03-06 09:35:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 09:35:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 09:35:22] Production.INFO: ==10589== Releasing lock... [2025-03-06 09:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 09:35:22] Production.INFO: 39.5 MB #Memory Used# [2025-03-06 09:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 06:36:06 [end_date_ymd] => 2025-03-06 09:36:06 [RateCDR] => 1 ) [2025-03-06 09: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-03-06 06:36:06' and `end` < '2025-03-06 09: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-03-06 09:36:18] Production.INFO: count ==1565 [2025-03-06 09:36:19] Production.ERROR: pbx CDR StartTime 2025-03-06 06:36:06 - End Time 2025-03-06 09:36:06 [2025-03-06 09:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 09:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619603', 'tblTempUsageDetail_20' ) start [2025-03-06 09:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619603', 'tblTempUsageDetail_20' ) end [2025-03-06 09:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619603', 'tblTempVendorCDR_20' ) start [2025-03-06 09:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619603', 'tblTempVendorCDR_20' ) end [2025-03-06 09:36:19] Production.INFO: ProcessCDR(1,14619603,1,1,2) [2025-03-06 09:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14619603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 09:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14619603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 09:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14619603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 09:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14619603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 09:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619603', 'tblTempUsageDetail_20' ) start [2025-03-06 09:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619603', 'tblTempUsageDetail_20' ) end [2025-03-06 09:36:24] Production.ERROR: pbx prc_insertCDR start [2025-03-06 09:36:24] Production.ERROR: pbx prc_insertCDR end [2025-03-06 09:36:24] Production.INFO: ==10660== Releasing lock... [2025-03-06 09:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 09:36:24] Production.INFO: 39.75 MB #Memory Used# [2025-03-06 09:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 06:37:05 [end_date_ymd] => 2025-03-06 09:37:05 [RateCDR] => 1 ) [2025-03-06 09:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 06:37:05' and `end` < '2025-03-06 09:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 09:37:17] Production.INFO: count ==1587 [2025-03-06 09:37:18] Production.ERROR: pbx CDR StartTime 2025-03-06 06:37:05 - End Time 2025-03-06 09:37:05 [2025-03-06 09:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 09:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619608', 'tblTempUsageDetail_20' ) start [2025-03-06 09:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619608', 'tblTempUsageDetail_20' ) end [2025-03-06 09:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619608', 'tblTempVendorCDR_20' ) start [2025-03-06 09:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619608', 'tblTempVendorCDR_20' ) end [2025-03-06 09:37:18] Production.INFO: ProcessCDR(1,14619608,1,1,2) [2025-03-06 09:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14619608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 09:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14619608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 09:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14619608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 09:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14619608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 09:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619608', 'tblTempUsageDetail_20' ) start [2025-03-06 09:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619608', 'tblTempUsageDetail_20' ) end [2025-03-06 09:37:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 09:37:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 09:37:21] Production.INFO: ==10731== Releasing lock... [2025-03-06 09:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 09:37:21] Production.INFO: 40 MB #Memory Used# [2025-03-06 09:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 06:38:05 [end_date_ymd] => 2025-03-06 09:38:05 [RateCDR] => 1 ) [2025-03-06 09:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 06:38:05' and `end` < '2025-03-06 09:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 09:38:18] Production.INFO: count ==1605 [2025-03-06 09:38:19] Production.ERROR: pbx CDR StartTime 2025-03-06 06:38:05 - End Time 2025-03-06 09:38:05 [2025-03-06 09:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 09:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619613', 'tblTempUsageDetail_20' ) start [2025-03-06 09:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619613', 'tblTempUsageDetail_20' ) end [2025-03-06 09:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619613', 'tblTempVendorCDR_20' ) start [2025-03-06 09:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619613', 'tblTempVendorCDR_20' ) end [2025-03-06 09:38:19] Production.INFO: ProcessCDR(1,14619613,1,1,2) [2025-03-06 09:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14619613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 09:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14619613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 09:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14619613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 09:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14619613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 09:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619613', 'tblTempUsageDetail_20' ) start [2025-03-06 09:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619613', 'tblTempUsageDetail_20' ) end [2025-03-06 09:38:24] Production.ERROR: pbx prc_insertCDR start [2025-03-06 09:38:24] Production.ERROR: pbx prc_insertCDR end [2025-03-06 09:38:24] Production.INFO: ==10806== Releasing lock... [2025-03-06 09:38:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 09:38:24] Production.INFO: 40 MB #Memory Used# [2025-03-06 09:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 06:39:05 [end_date_ymd] => 2025-03-06 09:39:05 [RateCDR] => 1 ) [2025-03-06 09:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 06:39:05' and `end` < '2025-03-06 09:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 09:39:17] Production.INFO: count ==1666 [2025-03-06 09:39:18] Production.ERROR: pbx CDR StartTime 2025-03-06 06:39:05 - End Time 2025-03-06 09:39:05 [2025-03-06 09:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 09:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619618', 'tblTempUsageDetail_20' ) start [2025-03-06 09:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619618', 'tblTempUsageDetail_20' ) end [2025-03-06 09:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619618', 'tblTempVendorCDR_20' ) start [2025-03-06 09:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619618', 'tblTempVendorCDR_20' ) end [2025-03-06 09:39:18] Production.INFO: ProcessCDR(1,14619618,1,1,2) [2025-03-06 09:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14619618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 09:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14619618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 09:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14619618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 09:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14619618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 09:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619618', 'tblTempUsageDetail_20' ) start [2025-03-06 09:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619618', 'tblTempUsageDetail_20' ) end [2025-03-06 09:39:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 09:39:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 09:39:21] Production.INFO: ==10876== Releasing lock... [2025-03-06 09:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 09:39:21] Production.INFO: 40.5 MB #Memory Used# [2025-03-06 09:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 06:40:06 [end_date_ymd] => 2025-03-06 09:40:06 [RateCDR] => 1 ) [2025-03-06 09:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 06:40:06' and `end` < '2025-03-06 09:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 09:40:18] Production.INFO: count ==1682 [2025-03-06 09:40:19] Production.ERROR: pbx CDR StartTime 2025-03-06 06:40:06 - End Time 2025-03-06 09:40:06 [2025-03-06 09:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 09:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619624', 'tblTempUsageDetail_20' ) start [2025-03-06 09:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619624', 'tblTempUsageDetail_20' ) end [2025-03-06 09:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619624', 'tblTempVendorCDR_20' ) start [2025-03-06 09:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619624', 'tblTempVendorCDR_20' ) end [2025-03-06 09:40:19] Production.INFO: ProcessCDR(1,14619624,1,1,2) [2025-03-06 09:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14619624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 09:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14619624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 09:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14619624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 09:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14619624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 09:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619624', 'tblTempUsageDetail_20' ) start [2025-03-06 09:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619624', 'tblTempUsageDetail_20' ) end [2025-03-06 09:40:24] Production.ERROR: pbx prc_insertCDR start [2025-03-06 09:40:24] Production.ERROR: pbx prc_insertCDR end [2025-03-06 09:40:24] Production.INFO: ==10950== Releasing lock... [2025-03-06 09:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 09:40:24] Production.INFO: 40.75 MB #Memory Used# [2025-03-06 09:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 06:41:05 [end_date_ymd] => 2025-03-06 09:41:05 [RateCDR] => 1 ) [2025-03-06 09:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 06:41:05' and `end` < '2025-03-06 09:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 09:41:18] Production.INFO: count ==1737 [2025-03-06 09:41:18] Production.ERROR: pbx CDR StartTime 2025-03-06 06:41:05 - End Time 2025-03-06 09:41:05 [2025-03-06 09:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 09:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619629', 'tblTempUsageDetail_20' ) start [2025-03-06 09:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619629', 'tblTempUsageDetail_20' ) end [2025-03-06 09:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619629', 'tblTempVendorCDR_20' ) start [2025-03-06 09:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619629', 'tblTempVendorCDR_20' ) end [2025-03-06 09:41:18] Production.INFO: ProcessCDR(1,14619629,1,1,2) [2025-03-06 09:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14619629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 09:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14619629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 09:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14619629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 09:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14619629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 09:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619629', 'tblTempUsageDetail_20' ) start [2025-03-06 09:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619629', 'tblTempUsageDetail_20' ) end [2025-03-06 09:41:23] Production.ERROR: pbx prc_insertCDR start [2025-03-06 09:41:23] Production.ERROR: pbx prc_insertCDR end [2025-03-06 09:41:23] Production.INFO: ==11025== Releasing lock... [2025-03-06 09:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 09:41:23] Production.INFO: 41 MB #Memory Used# [2025-03-06 09:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 06:42:05 [end_date_ymd] => 2025-03-06 09:42:05 [RateCDR] => 1 ) [2025-03-06 09:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 06:42:05' and `end` < '2025-03-06 09:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 09:42:18] Production.INFO: count ==1743 [2025-03-06 09:42:18] Production.ERROR: pbx CDR StartTime 2025-03-06 06:42:05 - End Time 2025-03-06 09:42:05 [2025-03-06 09:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 09:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619634', 'tblTempUsageDetail_20' ) start [2025-03-06 09:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619634', 'tblTempUsageDetail_20' ) end [2025-03-06 09:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619634', 'tblTempVendorCDR_20' ) start [2025-03-06 09:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619634', 'tblTempVendorCDR_20' ) end [2025-03-06 09:42:19] Production.INFO: ProcessCDR(1,14619634,1,1,2) [2025-03-06 09:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14619634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 09:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14619634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 09:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14619634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 09:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14619634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 09:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619634', 'tblTempUsageDetail_20' ) start [2025-03-06 09:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619634', 'tblTempUsageDetail_20' ) end [2025-03-06 09:42:23] Production.ERROR: pbx prc_insertCDR start [2025-03-06 09:42:23] Production.ERROR: pbx prc_insertCDR end [2025-03-06 09:42:23] Production.INFO: ==11095== Releasing lock... [2025-03-06 09:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 09:42:23] Production.INFO: 41.25 MB #Memory Used# [2025-03-06 09:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 06:43:05 [end_date_ymd] => 2025-03-06 09:43:05 [RateCDR] => 1 ) [2025-03-06 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-03-06 06:43:05' and `end` < '2025-03-06 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-03-06 09:43:17] Production.INFO: count ==1754 [2025-03-06 09:43:18] Production.ERROR: pbx CDR StartTime 2025-03-06 06:43:05 - End Time 2025-03-06 09:43:05 [2025-03-06 09:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 09:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619639', 'tblTempUsageDetail_20' ) start [2025-03-06 09:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619639', 'tblTempUsageDetail_20' ) end [2025-03-06 09:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619639', 'tblTempVendorCDR_20' ) start [2025-03-06 09:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619639', 'tblTempVendorCDR_20' ) end [2025-03-06 09:43:18] Production.INFO: ProcessCDR(1,14619639,1,1,2) [2025-03-06 09:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14619639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 09:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14619639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 09:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14619639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 09:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14619639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 09:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619639', 'tblTempUsageDetail_20' ) start [2025-03-06 09:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619639', 'tblTempUsageDetail_20' ) end [2025-03-06 09:43:23] Production.ERROR: pbx prc_insertCDR start [2025-03-06 09:43:23] Production.ERROR: pbx prc_insertCDR end [2025-03-06 09:43:23] Production.INFO: ==11165== Releasing lock... [2025-03-06 09:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 09:43:23] Production.INFO: 41.25 MB #Memory Used# [2025-03-06 09:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 06:44:05 [end_date_ymd] => 2025-03-06 09:44:05 [RateCDR] => 1 ) [2025-03-06 09:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 06:44:05' and `end` < '2025-03-06 09:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 09:44:18] Production.INFO: count ==1757 [2025-03-06 09:44:19] Production.ERROR: pbx CDR StartTime 2025-03-06 06:44:05 - End Time 2025-03-06 09:44:05 [2025-03-06 09:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 09:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619644', 'tblTempUsageDetail_20' ) start [2025-03-06 09:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619644', 'tblTempUsageDetail_20' ) end [2025-03-06 09:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619644', 'tblTempVendorCDR_20' ) start [2025-03-06 09:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619644', 'tblTempVendorCDR_20' ) end [2025-03-06 09:44:19] Production.INFO: ProcessCDR(1,14619644,1,1,2) [2025-03-06 09:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14619644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 09:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14619644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 09:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14619644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 09:44:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14619644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 09:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619644', 'tblTempUsageDetail_20' ) start [2025-03-06 09:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619644', 'tblTempUsageDetail_20' ) end [2025-03-06 09:44:24] Production.ERROR: pbx prc_insertCDR start [2025-03-06 09:44:24] Production.ERROR: pbx prc_insertCDR end [2025-03-06 09:44:24] Production.INFO: ==11242== Releasing lock... [2025-03-06 09:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 09:44:24] Production.INFO: 41.25 MB #Memory Used# [2025-03-06 09:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 06:45:05 [end_date_ymd] => 2025-03-06 09:45:05 [RateCDR] => 1 ) [2025-03-06 09:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 06:45:05' and `end` < '2025-03-06 09:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 09:45:17] Production.INFO: count ==1761 [2025-03-06 09:45:18] Production.ERROR: pbx CDR StartTime 2025-03-06 06:45:05 - End Time 2025-03-06 09:45:05 [2025-03-06 09:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 09:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619649', 'tblTempUsageDetail_20' ) start [2025-03-06 09:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619649', 'tblTempUsageDetail_20' ) end [2025-03-06 09:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619649', 'tblTempVendorCDR_20' ) start [2025-03-06 09:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619649', 'tblTempVendorCDR_20' ) end [2025-03-06 09:45:18] Production.INFO: ProcessCDR(1,14619649,1,1,2) [2025-03-06 09:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14619649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 09:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14619649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 09:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14619649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 09:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14619649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 09:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619649', 'tblTempUsageDetail_20' ) start [2025-03-06 09:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619649', 'tblTempUsageDetail_20' ) end [2025-03-06 09:45:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 09:45:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 09:45:21] Production.INFO: ==11318== Releasing lock... [2025-03-06 09:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 09:45:21] Production.INFO: 41.25 MB #Memory Used# [2025-03-06 09:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 06:46:06 [end_date_ymd] => 2025-03-06 09:46:06 [RateCDR] => 1 ) [2025-03-06 09: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-03-06 06:46:06' and `end` < '2025-03-06 09: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-03-06 09:46:18] Production.INFO: count ==1767 [2025-03-06 09:46:19] Production.ERROR: pbx CDR StartTime 2025-03-06 06:46:06 - End Time 2025-03-06 09:46:06 [2025-03-06 09:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 09:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619654', 'tblTempUsageDetail_20' ) start [2025-03-06 09:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619654', 'tblTempUsageDetail_20' ) end [2025-03-06 09:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619654', 'tblTempVendorCDR_20' ) start [2025-03-06 09:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619654', 'tblTempVendorCDR_20' ) end [2025-03-06 09:46:19] Production.INFO: ProcessCDR(1,14619654,1,1,2) [2025-03-06 09:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14619654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 09:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14619654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 09:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14619654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 09:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14619654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 09:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619654', 'tblTempUsageDetail_20' ) start [2025-03-06 09:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619654', 'tblTempUsageDetail_20' ) end [2025-03-06 09:46:24] Production.ERROR: pbx prc_insertCDR start [2025-03-06 09:46:24] Production.ERROR: pbx prc_insertCDR end [2025-03-06 09:46:24] Production.INFO: ==11389== Releasing lock... [2025-03-06 09:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 09:46:24] Production.INFO: 41.5 MB #Memory Used# [2025-03-06 09:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 06:47:05 [end_date_ymd] => 2025-03-06 09:47:05 [RateCDR] => 1 ) [2025-03-06 09:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 06:47:05' and `end` < '2025-03-06 09:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 09:47:18] Production.INFO: count ==1778 [2025-03-06 09:47:18] Production.ERROR: pbx CDR StartTime 2025-03-06 06:47:05 - End Time 2025-03-06 09:47:05 [2025-03-06 09:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 09:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619659', 'tblTempUsageDetail_20' ) start [2025-03-06 09:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619659', 'tblTempUsageDetail_20' ) end [2025-03-06 09:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619659', 'tblTempVendorCDR_20' ) start [2025-03-06 09:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619659', 'tblTempVendorCDR_20' ) end [2025-03-06 09:47:18] Production.INFO: ProcessCDR(1,14619659,1,1,2) [2025-03-06 09:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14619659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 09:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14619659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 09:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14619659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 09:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14619659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 09:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619659', 'tblTempUsageDetail_20' ) start [2025-03-06 09:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619659', 'tblTempUsageDetail_20' ) end [2025-03-06 09:47:24] Production.ERROR: pbx prc_insertCDR start [2025-03-06 09:47:24] Production.ERROR: pbx prc_insertCDR end [2025-03-06 09:47:24] Production.INFO: ==11459== Releasing lock... [2025-03-06 09:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 09:47:24] Production.INFO: 41.75 MB #Memory Used# [2025-03-06 09:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 06:48:06 [end_date_ymd] => 2025-03-06 09:48:06 [RateCDR] => 1 ) [2025-03-06 09: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-03-06 06:48:06' and `end` < '2025-03-06 09: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-03-06 09:48:18] Production.INFO: count ==1787 [2025-03-06 09:48:19] Production.ERROR: pbx CDR StartTime 2025-03-06 06:48:06 - End Time 2025-03-06 09:48:06 [2025-03-06 09:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 09:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619664', 'tblTempUsageDetail_20' ) start [2025-03-06 09:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619664', 'tblTempUsageDetail_20' ) end [2025-03-06 09:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619664', 'tblTempVendorCDR_20' ) start [2025-03-06 09:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619664', 'tblTempVendorCDR_20' ) end [2025-03-06 09:48:19] Production.INFO: ProcessCDR(1,14619664,1,1,2) [2025-03-06 09:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14619664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 09:48:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14619664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 09:48:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14619664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 09:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14619664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 09:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619664', 'tblTempUsageDetail_20' ) start [2025-03-06 09:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619664', 'tblTempUsageDetail_20' ) end [2025-03-06 09:48:24] Production.ERROR: pbx prc_insertCDR start [2025-03-06 09:48:24] Production.ERROR: pbx prc_insertCDR end [2025-03-06 09:48:24] Production.INFO: ==11533== Releasing lock... [2025-03-06 09:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 09:48:24] Production.INFO: 41.5 MB #Memory Used# [2025-03-06 09:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 06:49:05 [end_date_ymd] => 2025-03-06 09:49:05 [RateCDR] => 1 ) [2025-03-06 09:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 06:49:05' and `end` < '2025-03-06 09:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 09:49:17] Production.INFO: count ==1800 [2025-03-06 09:49:18] Production.ERROR: pbx CDR StartTime 2025-03-06 06:49:05 - End Time 2025-03-06 09:49:05 [2025-03-06 09:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 09:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619669', 'tblTempUsageDetail_20' ) start [2025-03-06 09:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619669', 'tblTempUsageDetail_20' ) end [2025-03-06 09:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619669', 'tblTempVendorCDR_20' ) start [2025-03-06 09:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619669', 'tblTempVendorCDR_20' ) end [2025-03-06 09:49:18] Production.INFO: ProcessCDR(1,14619669,1,1,2) [2025-03-06 09:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14619669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 09:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14619669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 09:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14619669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 09:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14619669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 09:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619669', 'tblTempUsageDetail_20' ) start [2025-03-06 09:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619669', 'tblTempUsageDetail_20' ) end [2025-03-06 09:49:23] Production.ERROR: pbx prc_insertCDR start [2025-03-06 09:49:23] Production.ERROR: pbx prc_insertCDR end [2025-03-06 09:49:23] Production.INFO: ==11644== Releasing lock... [2025-03-06 09:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 09:49:23] Production.INFO: 41.75 MB #Memory Used# [2025-03-06 09:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 06:50:06 [end_date_ymd] => 2025-03-06 09:50:06 [RateCDR] => 1 ) [2025-03-06 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-03-06 06:50:06' and `end` < '2025-03-06 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-03-06 09:50:19] Production.INFO: count ==1815 [2025-03-06 09:50:20] Production.ERROR: pbx CDR StartTime 2025-03-06 06:50:06 - End Time 2025-03-06 09:50:06 [2025-03-06 09:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 09:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619675', 'tblTempUsageDetail_20' ) start [2025-03-06 09:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619675', 'tblTempUsageDetail_20' ) end [2025-03-06 09:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619675', 'tblTempVendorCDR_20' ) start [2025-03-06 09:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619675', 'tblTempVendorCDR_20' ) end [2025-03-06 09:50:20] Production.INFO: ProcessCDR(1,14619675,1,1,2) [2025-03-06 09:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14619675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 09:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14619675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 09:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14619675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 09:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14619675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 09:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619675', 'tblTempUsageDetail_20' ) start [2025-03-06 09:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619675', 'tblTempUsageDetail_20' ) end [2025-03-06 09:50:24] Production.ERROR: pbx prc_insertCDR start [2025-03-06 09:50:24] Production.ERROR: pbx prc_insertCDR end [2025-03-06 09:50:24] Production.INFO: ==11717== Releasing lock... [2025-03-06 09:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 09:50:24] Production.INFO: 42 MB #Memory Used# [2025-03-06 09:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 06:51:05 [end_date_ymd] => 2025-03-06 09:51:05 [RateCDR] => 1 ) [2025-03-06 09:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 06:51:05' and `end` < '2025-03-06 09:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 09:51:17] Production.INFO: count ==1907 [2025-03-06 09:51:18] Production.ERROR: pbx CDR StartTime 2025-03-06 06:51:05 - End Time 2025-03-06 09:51:05 [2025-03-06 09:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 09:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619680', 'tblTempUsageDetail_20' ) start [2025-03-06 09:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619680', 'tblTempUsageDetail_20' ) end [2025-03-06 09:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619680', 'tblTempVendorCDR_20' ) start [2025-03-06 09:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619680', 'tblTempVendorCDR_20' ) end [2025-03-06 09:51:18] Production.INFO: ProcessCDR(1,14619680,1,1,2) [2025-03-06 09:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14619680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 09:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14619680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 09:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14619680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 09:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14619680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 09:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619680', 'tblTempUsageDetail_20' ) start [2025-03-06 09:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619680', 'tblTempUsageDetail_20' ) end [2025-03-06 09:51:23] Production.ERROR: pbx prc_insertCDR start [2025-03-06 09:51:23] Production.ERROR: pbx prc_insertCDR end [2025-03-06 09:51:23] Production.INFO: ==11790== Releasing lock... [2025-03-06 09:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 09:51:23] Production.INFO: 42.25 MB #Memory Used# [2025-03-06 09:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 06:52:05 [end_date_ymd] => 2025-03-06 09:52:05 [RateCDR] => 1 ) [2025-03-06 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-03-06 06:52:05' and `end` < '2025-03-06 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-03-06 09:52:18] Production.INFO: count ==1919 [2025-03-06 09:52:18] Production.ERROR: pbx CDR StartTime 2025-03-06 06:52:05 - End Time 2025-03-06 09:52:05 [2025-03-06 09:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 09:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619685', 'tblTempUsageDetail_20' ) start [2025-03-06 09:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619685', 'tblTempUsageDetail_20' ) end [2025-03-06 09:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619685', 'tblTempVendorCDR_20' ) start [2025-03-06 09:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619685', 'tblTempVendorCDR_20' ) end [2025-03-06 09:52:19] Production.INFO: ProcessCDR(1,14619685,1,1,2) [2025-03-06 09:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14619685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 09:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14619685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 09:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14619685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 09:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14619685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 09:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619685', 'tblTempUsageDetail_20' ) start [2025-03-06 09:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619685', 'tblTempUsageDetail_20' ) end [2025-03-06 09:52:23] Production.ERROR: pbx prc_insertCDR start [2025-03-06 09:52:23] Production.ERROR: pbx prc_insertCDR end [2025-03-06 09:52:23] Production.INFO: ==11862== Releasing lock... [2025-03-06 09:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 09:52:23] Production.INFO: 42.5 MB #Memory Used# [2025-03-06 09:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 06:53:05 [end_date_ymd] => 2025-03-06 09:53:05 [RateCDR] => 1 ) [2025-03-06 09:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 06:53:05' and `end` < '2025-03-06 09:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 09:53:18] Production.INFO: count ==1921 [2025-03-06 09:53:18] Production.ERROR: pbx CDR StartTime 2025-03-06 06:53:05 - End Time 2025-03-06 09:53:05 [2025-03-06 09:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 09:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619690', 'tblTempUsageDetail_20' ) start [2025-03-06 09:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619690', 'tblTempUsageDetail_20' ) end [2025-03-06 09:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619690', 'tblTempVendorCDR_20' ) start [2025-03-06 09:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619690', 'tblTempVendorCDR_20' ) end [2025-03-06 09:53:18] Production.INFO: ProcessCDR(1,14619690,1,1,2) [2025-03-06 09:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14619690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 09:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14619690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 09:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14619690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 09:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14619690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 09:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619690', 'tblTempUsageDetail_20' ) start [2025-03-06 09:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619690', 'tblTempUsageDetail_20' ) end [2025-03-06 09:53:23] Production.ERROR: pbx prc_insertCDR start [2025-03-06 09:53:23] Production.ERROR: pbx prc_insertCDR end [2025-03-06 09:53:23] Production.INFO: ==11933== Releasing lock... [2025-03-06 09:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 09:53:23] Production.INFO: 42.5 MB #Memory Used# [2025-03-06 09:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 06:54:05 [end_date_ymd] => 2025-03-06 09:54:05 [RateCDR] => 1 ) [2025-03-06 09:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 06:54:05' and `end` < '2025-03-06 09:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 09:54:18] Production.INFO: count ==1943 [2025-03-06 09:54:18] Production.ERROR: pbx CDR StartTime 2025-03-06 06:54:05 - End Time 2025-03-06 09:54:05 [2025-03-06 09:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 09:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619695', 'tblTempUsageDetail_20' ) start [2025-03-06 09:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619695', 'tblTempUsageDetail_20' ) end [2025-03-06 09:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619695', 'tblTempVendorCDR_20' ) start [2025-03-06 09:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619695', 'tblTempVendorCDR_20' ) end [2025-03-06 09:54:18] Production.INFO: ProcessCDR(1,14619695,1,1,2) [2025-03-06 09:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14619695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 09:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14619695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 09:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14619695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 09:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14619695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 09:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619695', 'tblTempUsageDetail_20' ) start [2025-03-06 09:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619695', 'tblTempUsageDetail_20' ) end [2025-03-06 09:54:24] Production.ERROR: pbx prc_insertCDR start [2025-03-06 09:54:24] Production.ERROR: pbx prc_insertCDR end [2025-03-06 09:54:24] Production.INFO: ==12002== Releasing lock... [2025-03-06 09:54:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 09:54:24] Production.INFO: 42.75 MB #Memory Used# [2025-03-06 09:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 06:55:06 [end_date_ymd] => 2025-03-06 09:55:06 [RateCDR] => 1 ) [2025-03-06 09: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-03-06 06:55:06' and `end` < '2025-03-06 09: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-03-06 09:55:18] Production.INFO: count ==1959 [2025-03-06 09:55:19] Production.ERROR: pbx CDR StartTime 2025-03-06 06:55:06 - End Time 2025-03-06 09:55:06 [2025-03-06 09:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 09:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619700', 'tblTempUsageDetail_20' ) start [2025-03-06 09:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619700', 'tblTempUsageDetail_20' ) end [2025-03-06 09:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619700', 'tblTempVendorCDR_20' ) start [2025-03-06 09:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619700', 'tblTempVendorCDR_20' ) end [2025-03-06 09:55:19] Production.INFO: ProcessCDR(1,14619700,1,1,2) [2025-03-06 09:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14619700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 09:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14619700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 09:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14619700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 09:55:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14619700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 09:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619700', 'tblTempUsageDetail_20' ) start [2025-03-06 09:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619700', 'tblTempUsageDetail_20' ) end [2025-03-06 09:55:24] Production.ERROR: pbx prc_insertCDR start [2025-03-06 09:55:24] Production.ERROR: pbx prc_insertCDR end [2025-03-06 09:55:24] Production.INFO: ==12074== Releasing lock... [2025-03-06 09:55:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 09:55:24] Production.INFO: 42.75 MB #Memory Used# [2025-03-06 09:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 06:56:05 [end_date_ymd] => 2025-03-06 09:56:05 [RateCDR] => 1 ) [2025-03-06 09:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 06:56:05' and `end` < '2025-03-06 09:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 09:56:18] Production.INFO: count ==1969 [2025-03-06 09:56:18] Production.ERROR: pbx CDR StartTime 2025-03-06 06:56:05 - End Time 2025-03-06 09:56:05 [2025-03-06 09:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 09:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619705', 'tblTempUsageDetail_20' ) start [2025-03-06 09:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619705', 'tblTempUsageDetail_20' ) end [2025-03-06 09:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619705', 'tblTempVendorCDR_20' ) start [2025-03-06 09:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619705', 'tblTempVendorCDR_20' ) end [2025-03-06 09:56:19] Production.INFO: ProcessCDR(1,14619705,1,1,2) [2025-03-06 09:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14619705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 09:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14619705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 09:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14619705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 09:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14619705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 09:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619705', 'tblTempUsageDetail_20' ) start [2025-03-06 09:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619705', 'tblTempUsageDetail_20' ) end [2025-03-06 09:56:24] Production.ERROR: pbx prc_insertCDR start [2025-03-06 09:56:24] Production.ERROR: pbx prc_insertCDR end [2025-03-06 09:56:24] Production.INFO: ==12146== Releasing lock... [2025-03-06 09:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 09:56:24] Production.INFO: 42.75 MB #Memory Used# [2025-03-06 09:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 06:57:06 [end_date_ymd] => 2025-03-06 09:57:06 [RateCDR] => 1 ) [2025-03-06 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-03-06 06:57:06' and `end` < '2025-03-06 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-03-06 09:57:18] Production.INFO: count ==1976 [2025-03-06 09:57:19] Production.ERROR: pbx CDR StartTime 2025-03-06 06:57:06 - End Time 2025-03-06 09:57:06 [2025-03-06 09:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 09:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619710', 'tblTempUsageDetail_20' ) start [2025-03-06 09:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619710', 'tblTempUsageDetail_20' ) end [2025-03-06 09:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619710', 'tblTempVendorCDR_20' ) start [2025-03-06 09:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619710', 'tblTempVendorCDR_20' ) end [2025-03-06 09:57:19] Production.INFO: ProcessCDR(1,14619710,1,1,2) [2025-03-06 09:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14619710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 09:57:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14619710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 09:57:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14619710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 09:57:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14619710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 09:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619710', 'tblTempUsageDetail_20' ) start [2025-03-06 09:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619710', 'tblTempUsageDetail_20' ) end [2025-03-06 09:57:25] Production.ERROR: pbx prc_insertCDR start [2025-03-06 09:57:25] Production.ERROR: pbx prc_insertCDR end [2025-03-06 09:57:25] Production.INFO: ==12217== Releasing lock... [2025-03-06 09:57:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 09:57:25] Production.INFO: 42.75 MB #Memory Used# [2025-03-06 09:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 06:58:05 [end_date_ymd] => 2025-03-06 09:58:05 [RateCDR] => 1 ) [2025-03-06 09:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 06:58:05' and `end` < '2025-03-06 09:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 09:58:18] Production.INFO: count ==1991 [2025-03-06 09:58:19] Production.ERROR: pbx CDR StartTime 2025-03-06 06:58:05 - End Time 2025-03-06 09:58:05 [2025-03-06 09:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 09:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619715', 'tblTempUsageDetail_20' ) start [2025-03-06 09:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619715', 'tblTempUsageDetail_20' ) end [2025-03-06 09:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619715', 'tblTempVendorCDR_20' ) start [2025-03-06 09:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619715', 'tblTempVendorCDR_20' ) end [2025-03-06 09:58:19] Production.INFO: ProcessCDR(1,14619715,1,1,2) [2025-03-06 09:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14619715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 09:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14619715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 09:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14619715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 09:58:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14619715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 09:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619715', 'tblTempUsageDetail_20' ) start [2025-03-06 09:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619715', 'tblTempUsageDetail_20' ) end [2025-03-06 09:58:24] Production.ERROR: pbx prc_insertCDR start [2025-03-06 09:58:24] Production.ERROR: pbx prc_insertCDR end [2025-03-06 09:58:24] Production.INFO: ==12289== Releasing lock... [2025-03-06 09:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 09:58:24] Production.INFO: 43 MB #Memory Used# [2025-03-06 09:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 06:59:05 [end_date_ymd] => 2025-03-06 09:59:05 [RateCDR] => 1 ) [2025-03-06 09:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 06:59:05' and `end` < '2025-03-06 09:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 09:59:18] Production.INFO: count ==2004 [2025-03-06 09:59:19] Production.ERROR: pbx CDR StartTime 2025-03-06 06:59:05 - End Time 2025-03-06 09:59:05 [2025-03-06 09:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 09:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619720', 'tblTempUsageDetail_20' ) start [2025-03-06 09:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619720', 'tblTempUsageDetail_20' ) end [2025-03-06 09:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619720', 'tblTempVendorCDR_20' ) start [2025-03-06 09:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619720', 'tblTempVendorCDR_20' ) end [2025-03-06 09:59:19] Production.INFO: ProcessCDR(1,14619720,1,1,2) [2025-03-06 09:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14619720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 09:59:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14619720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 09:59:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14619720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 09:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14619720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 09:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619720', 'tblTempUsageDetail_20' ) start [2025-03-06 09:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619720', 'tblTempUsageDetail_20' ) end [2025-03-06 09:59:24] Production.ERROR: pbx prc_insertCDR start [2025-03-06 09:59:24] Production.ERROR: pbx prc_insertCDR end [2025-03-06 09:59:24] Production.INFO: ==12359== Releasing lock... [2025-03-06 09:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 09:59:24] Production.INFO: 43 MB #Memory Used# [2025-03-06 10:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 07:00:07 [end_date_ymd] => 2025-03-06 10:00:07 [RateCDR] => 1 ) [2025-03-06 10:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 07:00:07' and `end` < '2025-03-06 10:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 10:00:20] Production.INFO: count ==2033 [2025-03-06 10:00:20] Production.ERROR: pbx CDR StartTime 2025-03-06 07:00:07 - End Time 2025-03-06 10:00:07 [2025-03-06 10:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 10:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619726', 'tblTempUsageDetail_20' ) start [2025-03-06 10:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619726', 'tblTempUsageDetail_20' ) end [2025-03-06 10:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619726', 'tblTempVendorCDR_20' ) start [2025-03-06 10:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619726', 'tblTempVendorCDR_20' ) end [2025-03-06 10:00:21] Production.INFO: ProcessCDR(1,14619726,1,1,2) [2025-03-06 10:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14619726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 10:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14619726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 10:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14619726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 10:00:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14619726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 10:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619726', 'tblTempUsageDetail_20' ) start [2025-03-06 10:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619726', 'tblTempUsageDetail_20' ) end [2025-03-06 10:00:26] Production.ERROR: pbx prc_insertCDR start [2025-03-06 10:00:26] Production.ERROR: pbx prc_insertCDR end [2025-03-06 10:00:26] Production.INFO: ==12437== Releasing lock... [2025-03-06 10:00:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 10:00:26] Production.INFO: 43.25 MB #Memory Used# [2025-03-06 10:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 07:01:06 [end_date_ymd] => 2025-03-06 10:01:06 [RateCDR] => 1 ) [2025-03-06 10:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 07:01:06' and `end` < '2025-03-06 10:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 10:01:18] Production.INFO: count ==2130 [2025-03-06 10:01:19] Production.ERROR: pbx CDR StartTime 2025-03-06 07:01:06 - End Time 2025-03-06 10:01:06 [2025-03-06 10:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 10:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619731', 'tblTempUsageDetail_20' ) start [2025-03-06 10:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619731', 'tblTempUsageDetail_20' ) end [2025-03-06 10:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619731', 'tblTempVendorCDR_20' ) start [2025-03-06 10:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619731', 'tblTempVendorCDR_20' ) end [2025-03-06 10:01:19] Production.INFO: ProcessCDR(1,14619731,1,1,2) [2025-03-06 10:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14619731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 10:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14619731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 10:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14619731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 10:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14619731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 10:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619731', 'tblTempUsageDetail_20' ) start [2025-03-06 10:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619731', 'tblTempUsageDetail_20' ) end [2025-03-06 10:01:24] Production.ERROR: pbx prc_insertCDR start [2025-03-06 10:01:24] Production.ERROR: pbx prc_insertCDR end [2025-03-06 10:01:24] Production.INFO: ==12524== Releasing lock... [2025-03-06 10:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 10:01:24] Production.INFO: 44 MB #Memory Used# [2025-03-06 10:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 07:02:05 [end_date_ymd] => 2025-03-06 10:02:05 [RateCDR] => 1 ) [2025-03-06 10:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 07:02:05' and `end` < '2025-03-06 10:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 10:02:18] Production.INFO: count ==2144 [2025-03-06 10:02:19] Production.ERROR: pbx CDR StartTime 2025-03-06 07:02:05 - End Time 2025-03-06 10:02:05 [2025-03-06 10:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 10:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619736', 'tblTempUsageDetail_20' ) start [2025-03-06 10:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619736', 'tblTempUsageDetail_20' ) end [2025-03-06 10:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619736', 'tblTempVendorCDR_20' ) start [2025-03-06 10:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619736', 'tblTempVendorCDR_20' ) end [2025-03-06 10:02:19] Production.INFO: ProcessCDR(1,14619736,1,1,2) [2025-03-06 10:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14619736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 10:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14619736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 10:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14619736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 10:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14619736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 10:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619736', 'tblTempUsageDetail_20' ) start [2025-03-06 10:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619736', 'tblTempUsageDetail_20' ) end [2025-03-06 10:02:24] Production.ERROR: pbx prc_insertCDR start [2025-03-06 10:02:24] Production.ERROR: pbx prc_insertCDR end [2025-03-06 10:02:24] Production.INFO: ==12596== Releasing lock... [2025-03-06 10:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 10:02:24] Production.INFO: 44.25 MB #Memory Used# [2025-03-06 10:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 07:03:06 [end_date_ymd] => 2025-03-06 10:03:06 [RateCDR] => 1 ) [2025-03-06 10:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 07:03:06' and `end` < '2025-03-06 10:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 10:03:19] Production.INFO: count ==2154 [2025-03-06 10:03:19] Production.ERROR: pbx CDR StartTime 2025-03-06 07:03:06 - End Time 2025-03-06 10:03:06 [2025-03-06 10:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 10:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619741', 'tblTempUsageDetail_20' ) start [2025-03-06 10:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619741', 'tblTempUsageDetail_20' ) end [2025-03-06 10:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619741', 'tblTempVendorCDR_20' ) start [2025-03-06 10:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619741', 'tblTempVendorCDR_20' ) end [2025-03-06 10:03:19] Production.INFO: ProcessCDR(1,14619741,1,1,2) [2025-03-06 10:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14619741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 10:03:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14619741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 10:03:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14619741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 10:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14619741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 10:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619741', 'tblTempUsageDetail_20' ) start [2025-03-06 10:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619741', 'tblTempUsageDetail_20' ) end [2025-03-06 10:03:24] Production.ERROR: pbx prc_insertCDR start [2025-03-06 10:03:24] Production.ERROR: pbx prc_insertCDR end [2025-03-06 10:03:24] Production.INFO: ==12666== Releasing lock... [2025-03-06 10:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 10:03:24] Production.INFO: 44.25 MB #Memory Used# [2025-03-06 10:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 07:04:05 [end_date_ymd] => 2025-03-06 10:04:05 [RateCDR] => 1 ) [2025-03-06 10:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 07:04:05' and `end` < '2025-03-06 10:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 10:04:17] Production.INFO: count ==2158 [2025-03-06 10:04:18] Production.ERROR: pbx CDR StartTime 2025-03-06 07:04:05 - End Time 2025-03-06 10:04:05 [2025-03-06 10:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 10:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619746', 'tblTempUsageDetail_20' ) start [2025-03-06 10:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619746', 'tblTempUsageDetail_20' ) end [2025-03-06 10:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619746', 'tblTempVendorCDR_20' ) start [2025-03-06 10:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619746', 'tblTempVendorCDR_20' ) end [2025-03-06 10:04:18] Production.INFO: ProcessCDR(1,14619746,1,1,2) [2025-03-06 10:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14619746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 10:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14619746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 10:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14619746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 10:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14619746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 10:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619746', 'tblTempUsageDetail_20' ) start [2025-03-06 10:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619746', 'tblTempUsageDetail_20' ) end [2025-03-06 10:04:24] Production.ERROR: pbx prc_insertCDR start [2025-03-06 10:04:24] Production.ERROR: pbx prc_insertCDR end [2025-03-06 10:04:24] Production.INFO: ==12743== Releasing lock... [2025-03-06 10:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 10:04:24] Production.INFO: 44.25 MB #Memory Used# [2025-03-06 10:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 07:05:06 [end_date_ymd] => 2025-03-06 10:05:06 [RateCDR] => 1 ) [2025-03-06 10:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 07:05:06' and `end` < '2025-03-06 10:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 10:05:18] Production.INFO: count ==2168 [2025-03-06 10:05:19] Production.ERROR: pbx CDR StartTime 2025-03-06 07:05:06 - End Time 2025-03-06 10:05:06 [2025-03-06 10:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 10:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619751', 'tblTempUsageDetail_20' ) start [2025-03-06 10:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619751', 'tblTempUsageDetail_20' ) end [2025-03-06 10:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619751', 'tblTempVendorCDR_20' ) start [2025-03-06 10:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619751', 'tblTempVendorCDR_20' ) end [2025-03-06 10:05:19] Production.INFO: ProcessCDR(1,14619751,1,1,2) [2025-03-06 10:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14619751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 10:05:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14619751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 10:05:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14619751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 10:05:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14619751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 10:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619751', 'tblTempUsageDetail_20' ) start [2025-03-06 10:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619751', 'tblTempUsageDetail_20' ) end [2025-03-06 10:05:25] Production.ERROR: pbx prc_insertCDR start [2025-03-06 10:05:25] Production.ERROR: pbx prc_insertCDR end [2025-03-06 10:05:25] Production.INFO: ==12856== Releasing lock... [2025-03-06 10:05:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 10:05:25] Production.INFO: 44.5 MB #Memory Used# [2025-03-06 10:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 07:06:05 [end_date_ymd] => 2025-03-06 10:06:05 [RateCDR] => 1 ) [2025-03-06 10:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 07:06:05' and `end` < '2025-03-06 10:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 10:06:18] Production.INFO: count ==2180 [2025-03-06 10:06:18] Production.ERROR: pbx CDR StartTime 2025-03-06 07:06:05 - End Time 2025-03-06 10:06:05 [2025-03-06 10:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 10:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619756', 'tblTempUsageDetail_20' ) start [2025-03-06 10:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619756', 'tblTempUsageDetail_20' ) end [2025-03-06 10:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619756', 'tblTempVendorCDR_20' ) start [2025-03-06 10:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619756', 'tblTempVendorCDR_20' ) end [2025-03-06 10:06:19] Production.INFO: ProcessCDR(1,14619756,1,1,2) [2025-03-06 10:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14619756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 10:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14619756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 10:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14619756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 10:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14619756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 10:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619756', 'tblTempUsageDetail_20' ) start [2025-03-06 10:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619756', 'tblTempUsageDetail_20' ) end [2025-03-06 10:06:24] Production.ERROR: pbx prc_insertCDR start [2025-03-06 10:06:24] Production.ERROR: pbx prc_insertCDR end [2025-03-06 10:06:24] Production.INFO: ==12930== Releasing lock... [2025-03-06 10:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 10:06:24] Production.INFO: 44.5 MB #Memory Used# [2025-03-06 10:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 07:07:06 [end_date_ymd] => 2025-03-06 10:07:06 [RateCDR] => 1 ) [2025-03-06 10: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-03-06 07:07:06' and `end` < '2025-03-06 10: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-03-06 10:07:18] Production.INFO: count ==2203 [2025-03-06 10:07:19] Production.ERROR: pbx CDR StartTime 2025-03-06 07:07:06 - End Time 2025-03-06 10:07:06 [2025-03-06 10:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 10:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619761', 'tblTempUsageDetail_20' ) start [2025-03-06 10:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619761', 'tblTempUsageDetail_20' ) end [2025-03-06 10:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619761', 'tblTempVendorCDR_20' ) start [2025-03-06 10:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619761', 'tblTempVendorCDR_20' ) end [2025-03-06 10:07:20] Production.INFO: ProcessCDR(1,14619761,1,1,2) [2025-03-06 10:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14619761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 10:07:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14619761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 10:07:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14619761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 10:07:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14619761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 10:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619761', 'tblTempUsageDetail_20' ) start [2025-03-06 10:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619761', 'tblTempUsageDetail_20' ) end [2025-03-06 10:07:25] Production.ERROR: pbx prc_insertCDR start [2025-03-06 10:07:25] Production.ERROR: pbx prc_insertCDR end [2025-03-06 10:07:25] Production.INFO: ==13001== Releasing lock... [2025-03-06 10:07:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 10:07:25] Production.INFO: 44.75 MB #Memory Used# [2025-03-06 10:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 07:08:05 [end_date_ymd] => 2025-03-06 10:08:05 [RateCDR] => 1 ) [2025-03-06 10:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 07:08:05' and `end` < '2025-03-06 10:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 10:08:18] Production.INFO: count ==2220 [2025-03-06 10:08:19] Production.ERROR: pbx CDR StartTime 2025-03-06 07:08:05 - End Time 2025-03-06 10:08:05 [2025-03-06 10:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 10:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619766', 'tblTempUsageDetail_20' ) start [2025-03-06 10:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619766', 'tblTempUsageDetail_20' ) end [2025-03-06 10:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619766', 'tblTempVendorCDR_20' ) start [2025-03-06 10:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619766', 'tblTempVendorCDR_20' ) end [2025-03-06 10:08:19] Production.INFO: ProcessCDR(1,14619766,1,1,2) [2025-03-06 10:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14619766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 10:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14619766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 10:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14619766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 10:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14619766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 10:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619766', 'tblTempUsageDetail_20' ) start [2025-03-06 10:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619766', 'tblTempUsageDetail_20' ) end [2025-03-06 10:08:24] Production.ERROR: pbx prc_insertCDR start [2025-03-06 10:08:24] Production.ERROR: pbx prc_insertCDR end [2025-03-06 10:08:24] Production.INFO: ==13073== Releasing lock... [2025-03-06 10:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 10:08:24] Production.INFO: 44.75 MB #Memory Used# [2025-03-06 10:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 07:09:06 [end_date_ymd] => 2025-03-06 10:09:06 [RateCDR] => 1 ) [2025-03-06 10: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-03-06 07:09:06' and `end` < '2025-03-06 10: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-03-06 10:09:18] Production.INFO: count ==2232 [2025-03-06 10:09:19] Production.ERROR: pbx CDR StartTime 2025-03-06 07:09:06 - End Time 2025-03-06 10:09:06 [2025-03-06 10:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 10:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619771', 'tblTempUsageDetail_20' ) start [2025-03-06 10:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619771', 'tblTempUsageDetail_20' ) end [2025-03-06 10:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619771', 'tblTempVendorCDR_20' ) start [2025-03-06 10:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619771', 'tblTempVendorCDR_20' ) end [2025-03-06 10:09:19] Production.INFO: ProcessCDR(1,14619771,1,1,2) [2025-03-06 10:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14619771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 10:09:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14619771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 10:09:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14619771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 10:09:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14619771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 10:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619771', 'tblTempUsageDetail_20' ) start [2025-03-06 10:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619771', 'tblTempUsageDetail_20' ) end [2025-03-06 10:09:24] Production.ERROR: pbx prc_insertCDR start [2025-03-06 10:09:24] Production.ERROR: pbx prc_insertCDR end [2025-03-06 10:09:24] Production.INFO: ==13144== Releasing lock... [2025-03-06 10:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 10:09:24] Production.INFO: 44.75 MB #Memory Used# [2025-03-06 10:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 07:10:06 [end_date_ymd] => 2025-03-06 10:10:06 [RateCDR] => 1 ) [2025-03-06 10:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 07:10:06' and `end` < '2025-03-06 10:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 10:10:19] Production.INFO: count ==2258 [2025-03-06 10:10:20] Production.ERROR: pbx CDR StartTime 2025-03-06 07:10:06 - End Time 2025-03-06 10:10:06 [2025-03-06 10:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 10:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619777', 'tblTempUsageDetail_20' ) start [2025-03-06 10:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619777', 'tblTempUsageDetail_20' ) end [2025-03-06 10:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619777', 'tblTempVendorCDR_20' ) start [2025-03-06 10:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619777', 'tblTempVendorCDR_20' ) end [2025-03-06 10:10:20] Production.INFO: ProcessCDR(1,14619777,1,1,2) [2025-03-06 10:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14619777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 10:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14619777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 10:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14619777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 10:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14619777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 10:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619777', 'tblTempUsageDetail_20' ) start [2025-03-06 10:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619777', 'tblTempUsageDetail_20' ) end [2025-03-06 10:10:25] Production.ERROR: pbx prc_insertCDR start [2025-03-06 10:10:25] Production.ERROR: pbx prc_insertCDR end [2025-03-06 10:10:25] Production.INFO: ==13218== Releasing lock... [2025-03-06 10:10:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 10:10:25] Production.INFO: 45 MB #Memory Used# [2025-03-06 10:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 07:11:06 [end_date_ymd] => 2025-03-06 10:11:06 [RateCDR] => 1 ) [2025-03-06 10: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-03-06 07:11:06' and `end` < '2025-03-06 10: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-03-06 10:11:18] Production.INFO: count ==2344 [2025-03-06 10:11:19] Production.ERROR: pbx CDR StartTime 2025-03-06 07:11:06 - End Time 2025-03-06 10:11:06 [2025-03-06 10:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 10:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619782', 'tblTempUsageDetail_20' ) start [2025-03-06 10:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619782', 'tblTempUsageDetail_20' ) end [2025-03-06 10:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619782', 'tblTempVendorCDR_20' ) start [2025-03-06 10:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619782', 'tblTempVendorCDR_20' ) end [2025-03-06 10:11:19] Production.INFO: ProcessCDR(1,14619782,1,1,2) [2025-03-06 10:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14619782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 10:11:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14619782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 10:11:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14619782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 10:11:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14619782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 10:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619782', 'tblTempUsageDetail_20' ) start [2025-03-06 10:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619782', 'tblTempUsageDetail_20' ) end [2025-03-06 10:11:24] Production.ERROR: pbx prc_insertCDR start [2025-03-06 10:11:24] Production.ERROR: pbx prc_insertCDR end [2025-03-06 10:11:24] Production.INFO: ==13295== Releasing lock... [2025-03-06 10:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 10:11:24] Production.INFO: 45.75 MB #Memory Used# [2025-03-06 10:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 07:12:05 [end_date_ymd] => 2025-03-06 10:12:05 [RateCDR] => 1 ) [2025-03-06 10:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 07:12:05' and `end` < '2025-03-06 10:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 10:12:17] Production.INFO: count ==2367 [2025-03-06 10:12:18] Production.ERROR: pbx CDR StartTime 2025-03-06 07:12:05 - End Time 2025-03-06 10:12:05 [2025-03-06 10:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 10:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619787', 'tblTempUsageDetail_20' ) start [2025-03-06 10:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619787', 'tblTempUsageDetail_20' ) end [2025-03-06 10:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619787', 'tblTempVendorCDR_20' ) start [2025-03-06 10:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619787', 'tblTempVendorCDR_20' ) end [2025-03-06 10:12:18] Production.INFO: ProcessCDR(1,14619787,1,1,2) [2025-03-06 10:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14619787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 10:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14619787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 10:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14619787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 10:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14619787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 10:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619787', 'tblTempUsageDetail_20' ) start [2025-03-06 10:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619787', 'tblTempUsageDetail_20' ) end [2025-03-06 10:12:23] Production.ERROR: pbx prc_insertCDR start [2025-03-06 10:12:23] Production.ERROR: pbx prc_insertCDR end [2025-03-06 10:12:23] Production.INFO: ==13369== Releasing lock... [2025-03-06 10:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 10:12:23] Production.INFO: 45.75 MB #Memory Used# [2025-03-06 10:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 07:13:06 [end_date_ymd] => 2025-03-06 10:13:06 [RateCDR] => 1 ) [2025-03-06 10: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-03-06 07:13:06' and `end` < '2025-03-06 10: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-03-06 10:13:18] Production.INFO: count ==2376 [2025-03-06 10:13:19] Production.ERROR: pbx CDR StartTime 2025-03-06 07:13:06 - End Time 2025-03-06 10:13:06 [2025-03-06 10:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 10:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619792', 'tblTempUsageDetail_20' ) start [2025-03-06 10:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619792', 'tblTempUsageDetail_20' ) end [2025-03-06 10:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619792', 'tblTempVendorCDR_20' ) start [2025-03-06 10:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619792', 'tblTempVendorCDR_20' ) end [2025-03-06 10:13:19] Production.INFO: ProcessCDR(1,14619792,1,1,2) [2025-03-06 10:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14619792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 10:13:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14619792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 10:13:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14619792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 10:13:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14619792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 10:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619792', 'tblTempUsageDetail_20' ) start [2025-03-06 10:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619792', 'tblTempUsageDetail_20' ) end [2025-03-06 10:13:24] Production.ERROR: pbx prc_insertCDR start [2025-03-06 10:13:24] Production.ERROR: pbx prc_insertCDR end [2025-03-06 10:13:24] Production.INFO: ==13448== Releasing lock... [2025-03-06 10:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 10:13:24] Production.INFO: 46 MB #Memory Used# [2025-03-06 10:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 07:14:05 [end_date_ymd] => 2025-03-06 10:14:05 [RateCDR] => 1 ) [2025-03-06 10:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 07:14:05' and `end` < '2025-03-06 10:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 10:14:18] Production.INFO: count ==2396 [2025-03-06 10:14:19] Production.ERROR: pbx CDR StartTime 2025-03-06 07:14:05 - End Time 2025-03-06 10:14:05 [2025-03-06 10:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 10:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619797', 'tblTempUsageDetail_20' ) start [2025-03-06 10:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619797', 'tblTempUsageDetail_20' ) end [2025-03-06 10:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619797', 'tblTempVendorCDR_20' ) start [2025-03-06 10:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619797', 'tblTempVendorCDR_20' ) end [2025-03-06 10:14:19] Production.INFO: ProcessCDR(1,14619797,1,1,2) [2025-03-06 10:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14619797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 10:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14619797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 10:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14619797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 10:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14619797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 10:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619797', 'tblTempUsageDetail_20' ) start [2025-03-06 10:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619797', 'tblTempUsageDetail_20' ) end [2025-03-06 10:14:24] Production.ERROR: pbx prc_insertCDR start [2025-03-06 10:14:24] Production.ERROR: pbx prc_insertCDR end [2025-03-06 10:14:24] Production.INFO: ==13527== Releasing lock... [2025-03-06 10:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 10:14:24] Production.INFO: 46 MB #Memory Used# [2025-03-06 10:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 07:15:06 [end_date_ymd] => 2025-03-06 10:15:06 [RateCDR] => 1 ) [2025-03-06 10:15:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 07:15:06' and `end` < '2025-03-06 10:15:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 10:15:18] Production.INFO: count ==2408 [2025-03-06 10:15:19] Production.ERROR: pbx CDR StartTime 2025-03-06 07:15:06 - End Time 2025-03-06 10:15:06 [2025-03-06 10:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 10:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619802', 'tblTempUsageDetail_20' ) start [2025-03-06 10:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619802', 'tblTempUsageDetail_20' ) end [2025-03-06 10:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619802', 'tblTempVendorCDR_20' ) start [2025-03-06 10:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619802', 'tblTempVendorCDR_20' ) end [2025-03-06 10:15:19] Production.INFO: ProcessCDR(1,14619802,1,1,2) [2025-03-06 10:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14619802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 10:15:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14619802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 10:15:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14619802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 10:15:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14619802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 10:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619802', 'tblTempUsageDetail_20' ) start [2025-03-06 10:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619802', 'tblTempUsageDetail_20' ) end [2025-03-06 10:15:24] Production.ERROR: pbx prc_insertCDR start [2025-03-06 10:15:24] Production.ERROR: pbx prc_insertCDR end [2025-03-06 10:15:24] Production.INFO: ==13608== Releasing lock... [2025-03-06 10:15:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 10:15:24] Production.INFO: 46.25 MB #Memory Used# [2025-03-06 10:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 07:16:05 [end_date_ymd] => 2025-03-06 10:16:05 [RateCDR] => 1 ) [2025-03-06 10:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 07:16:05' and `end` < '2025-03-06 10:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 10:16:18] Production.INFO: count ==2421 [2025-03-06 10:16:19] Production.ERROR: pbx CDR StartTime 2025-03-06 07:16:05 - End Time 2025-03-06 10:16:05 [2025-03-06 10:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 10:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619807', 'tblTempUsageDetail_20' ) start [2025-03-06 10:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619807', 'tblTempUsageDetail_20' ) end [2025-03-06 10:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619807', 'tblTempVendorCDR_20' ) start [2025-03-06 10:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619807', 'tblTempVendorCDR_20' ) end [2025-03-06 10:16:19] Production.INFO: ProcessCDR(1,14619807,1,1,2) [2025-03-06 10:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14619807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 10:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14619807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 10:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14619807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 10:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14619807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 10:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619807', 'tblTempUsageDetail_20' ) start [2025-03-06 10:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619807', 'tblTempUsageDetail_20' ) end [2025-03-06 10:16:24] Production.ERROR: pbx prc_insertCDR start [2025-03-06 10:16:24] Production.ERROR: pbx prc_insertCDR end [2025-03-06 10:16:24] Production.INFO: ==13683== Releasing lock... [2025-03-06 10:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 10:16:24] Production.INFO: 46 MB #Memory Used# [2025-03-06 10:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 07:17:06 [end_date_ymd] => 2025-03-06 10:17:06 [RateCDR] => 1 ) [2025-03-06 10: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-03-06 07:17:06' and `end` < '2025-03-06 10: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-03-06 10:17:18] Production.INFO: count ==2428 [2025-03-06 10:17:19] Production.ERROR: pbx CDR StartTime 2025-03-06 07:17:06 - End Time 2025-03-06 10:17:06 [2025-03-06 10:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 10:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619812', 'tblTempUsageDetail_20' ) start [2025-03-06 10:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619812', 'tblTempUsageDetail_20' ) end [2025-03-06 10:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619812', 'tblTempVendorCDR_20' ) start [2025-03-06 10:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619812', 'tblTempVendorCDR_20' ) end [2025-03-06 10:17:19] Production.INFO: ProcessCDR(1,14619812,1,1,2) [2025-03-06 10:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14619812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 10:17:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14619812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 10:17:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14619812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 10:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14619812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 10:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619812', 'tblTempUsageDetail_20' ) start [2025-03-06 10:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619812', 'tblTempUsageDetail_20' ) end [2025-03-06 10:17:24] Production.ERROR: pbx prc_insertCDR start [2025-03-06 10:17:24] Production.ERROR: pbx prc_insertCDR end [2025-03-06 10:17:24] Production.INFO: ==13757== Releasing lock... [2025-03-06 10:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 10:17:24] Production.INFO: 46.25 MB #Memory Used# [2025-03-06 10:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 07:18:05 [end_date_ymd] => 2025-03-06 10:18:05 [RateCDR] => 1 ) [2025-03-06 10:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 07:18:05' and `end` < '2025-03-06 10:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 10:18:18] Production.INFO: count ==2456 [2025-03-06 10:18:19] Production.ERROR: pbx CDR StartTime 2025-03-06 07:18:05 - End Time 2025-03-06 10:18:05 [2025-03-06 10:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 10:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619817', 'tblTempUsageDetail_20' ) start [2025-03-06 10:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619817', 'tblTempUsageDetail_20' ) end [2025-03-06 10:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619817', 'tblTempVendorCDR_20' ) start [2025-03-06 10:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619817', 'tblTempVendorCDR_20' ) end [2025-03-06 10:18:19] Production.INFO: ProcessCDR(1,14619817,1,1,2) [2025-03-06 10:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14619817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 10:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14619817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 10:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14619817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 10:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14619817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 10:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619817', 'tblTempUsageDetail_20' ) start [2025-03-06 10:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619817', 'tblTempUsageDetail_20' ) end [2025-03-06 10:18:24] Production.ERROR: pbx prc_insertCDR start [2025-03-06 10:18:24] Production.ERROR: pbx prc_insertCDR end [2025-03-06 10:18:24] Production.INFO: ==13836== Releasing lock... [2025-03-06 10:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 10:18:24] Production.INFO: 46.5 MB #Memory Used# [2025-03-06 10:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 07:19:06 [end_date_ymd] => 2025-03-06 10:19:06 [RateCDR] => 1 ) [2025-03-06 10: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-03-06 07:19:06' and `end` < '2025-03-06 10: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-03-06 10:19:19] Production.INFO: count ==2459 [2025-03-06 10:19:20] Production.ERROR: pbx CDR StartTime 2025-03-06 07:19:06 - End Time 2025-03-06 10:19:06 [2025-03-06 10:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 10:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619822', 'tblTempUsageDetail_20' ) start [2025-03-06 10:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619822', 'tblTempUsageDetail_20' ) end [2025-03-06 10:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619822', 'tblTempVendorCDR_20' ) start [2025-03-06 10:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619822', 'tblTempVendorCDR_20' ) end [2025-03-06 10:19:20] Production.INFO: ProcessCDR(1,14619822,1,1,2) [2025-03-06 10:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14619822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 10:19:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14619822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 10:19:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14619822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 10:19:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14619822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 10:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619822', 'tblTempUsageDetail_20' ) start [2025-03-06 10:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619822', 'tblTempUsageDetail_20' ) end [2025-03-06 10:19:24] Production.ERROR: pbx prc_insertCDR start [2025-03-06 10:19:25] Production.ERROR: pbx prc_insertCDR end [2025-03-06 10:19:25] Production.INFO: ==13917== Releasing lock... [2025-03-06 10:19:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 10:19:25] Production.INFO: 46.5 MB #Memory Used# [2025-03-06 10:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 07:20:05 [end_date_ymd] => 2025-03-06 10:20:05 [RateCDR] => 1 ) [2025-03-06 10: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-03-06 07:20:05' and `end` < '2025-03-06 10: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-03-06 10:20:18] Production.INFO: count ==2465 [2025-03-06 10:20:19] Production.ERROR: pbx CDR StartTime 2025-03-06 07:20:05 - End Time 2025-03-06 10:20:05 [2025-03-06 10:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 10:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619828', 'tblTempUsageDetail_20' ) start [2025-03-06 10:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619828', 'tblTempUsageDetail_20' ) end [2025-03-06 10:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619828', 'tblTempVendorCDR_20' ) start [2025-03-06 10:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619828', 'tblTempVendorCDR_20' ) end [2025-03-06 10:20:19] Production.INFO: ProcessCDR(1,14619828,1,1,2) [2025-03-06 10:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14619828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 10:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14619828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 10:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14619828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 10:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14619828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 10:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619828', 'tblTempUsageDetail_20' ) start [2025-03-06 10:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619828', 'tblTempUsageDetail_20' ) end [2025-03-06 10:20:24] Production.ERROR: pbx prc_insertCDR start [2025-03-06 10:20:24] Production.ERROR: pbx prc_insertCDR end [2025-03-06 10:20:24] Production.INFO: ==14035== Releasing lock... [2025-03-06 10:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 10:20:24] Production.INFO: 46.5 MB #Memory Used# [2025-03-06 10:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 07:21:05 [end_date_ymd] => 2025-03-06 10:21:05 [RateCDR] => 1 ) [2025-03-06 10:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 07:21:05' and `end` < '2025-03-06 10:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 10:21:18] Production.INFO: count ==2554 [2025-03-06 10:21:19] Production.ERROR: pbx CDR StartTime 2025-03-06 07:21:05 - End Time 2025-03-06 10:21:05 [2025-03-06 10:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 10:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619833', 'tblTempUsageDetail_20' ) start [2025-03-06 10:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619833', 'tblTempUsageDetail_20' ) end [2025-03-06 10:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619833', 'tblTempVendorCDR_20' ) start [2025-03-06 10:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619833', 'tblTempVendorCDR_20' ) end [2025-03-06 10:21:19] Production.INFO: ProcessCDR(1,14619833,1,1,2) [2025-03-06 10:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14619833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 10:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14619833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 10:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14619833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 10:21:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14619833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 10:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619833', 'tblTempUsageDetail_20' ) start [2025-03-06 10:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619833', 'tblTempUsageDetail_20' ) end [2025-03-06 10:21:24] Production.ERROR: pbx prc_insertCDR start [2025-03-06 10:21:24] Production.ERROR: pbx prc_insertCDR end [2025-03-06 10:21:24] Production.INFO: ==14115== Releasing lock... [2025-03-06 10:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 10:21:24] Production.INFO: 47.25 MB #Memory Used# [2025-03-06 10:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 07:22:05 [end_date_ymd] => 2025-03-06 10:22:05 [RateCDR] => 1 ) [2025-03-06 10:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 07:22:05' and `end` < '2025-03-06 10:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 10:22:18] Production.INFO: count ==2573 [2025-03-06 10:22:19] Production.ERROR: pbx CDR StartTime 2025-03-06 07:22:05 - End Time 2025-03-06 10:22:05 [2025-03-06 10:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 10:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619838', 'tblTempUsageDetail_20' ) start [2025-03-06 10:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619838', 'tblTempUsageDetail_20' ) end [2025-03-06 10:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619838', 'tblTempVendorCDR_20' ) start [2025-03-06 10:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619838', 'tblTempVendorCDR_20' ) end [2025-03-06 10:22:19] Production.INFO: ProcessCDR(1,14619838,1,1,2) [2025-03-06 10:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14619838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 10:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14619838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 10:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14619838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 10:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14619838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 10:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619838', 'tblTempUsageDetail_20' ) start [2025-03-06 10:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619838', 'tblTempUsageDetail_20' ) end [2025-03-06 10:22:24] Production.ERROR: pbx prc_insertCDR start [2025-03-06 10:22:24] Production.ERROR: pbx prc_insertCDR end [2025-03-06 10:22:24] Production.INFO: ==14195== Releasing lock... [2025-03-06 10:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 10:22:24] Production.INFO: 47.25 MB #Memory Used# [2025-03-06 10:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 07:23:06 [end_date_ymd] => 2025-03-06 10:23:06 [RateCDR] => 1 ) [2025-03-06 10:23:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 07:23:06' and `end` < '2025-03-06 10:23:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 10:23:18] Production.INFO: count ==2617 [2025-03-06 10:23:19] Production.ERROR: pbx CDR StartTime 2025-03-06 07:23:06 - End Time 2025-03-06 10:23:06 [2025-03-06 10:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 10:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619843', 'tblTempUsageDetail_20' ) start [2025-03-06 10:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619843', 'tblTempUsageDetail_20' ) end [2025-03-06 10:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619843', 'tblTempVendorCDR_20' ) start [2025-03-06 10:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619843', 'tblTempVendorCDR_20' ) end [2025-03-06 10:23:19] Production.INFO: ProcessCDR(1,14619843,1,1,2) [2025-03-06 10:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14619843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 10:23:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14619843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 10:23:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14619843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 10:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14619843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 10:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619843', 'tblTempUsageDetail_20' ) start [2025-03-06 10:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619843', 'tblTempUsageDetail_20' ) end [2025-03-06 10:23:24] Production.ERROR: pbx prc_insertCDR start [2025-03-06 10:23:25] Production.ERROR: pbx prc_insertCDR end [2025-03-06 10:23:25] Production.INFO: ==14281== Releasing lock... [2025-03-06 10:23:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 10:23:25] Production.INFO: 48 MB #Memory Used# [2025-03-06 10:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 07:24:06 [end_date_ymd] => 2025-03-06 10:24:06 [RateCDR] => 1 ) [2025-03-06 10:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 07:24:06' and `end` < '2025-03-06 10:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 10:24:18] Production.INFO: count ==2674 [2025-03-06 10:24:19] Production.ERROR: pbx CDR StartTime 2025-03-06 07:24:06 - End Time 2025-03-06 10:24:06 [2025-03-06 10:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 10:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619848', 'tblTempUsageDetail_20' ) start [2025-03-06 10:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619848', 'tblTempUsageDetail_20' ) end [2025-03-06 10:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619848', 'tblTempVendorCDR_20' ) start [2025-03-06 10:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619848', 'tblTempVendorCDR_20' ) end [2025-03-06 10:24:19] Production.INFO: ProcessCDR(1,14619848,1,1,2) [2025-03-06 10:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14619848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 10:24:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14619848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 10:24:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14619848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 10:24:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14619848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 10:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619848', 'tblTempUsageDetail_20' ) start [2025-03-06 10:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619848', 'tblTempUsageDetail_20' ) end [2025-03-06 10:24:24] Production.ERROR: pbx prc_insertCDR start [2025-03-06 10:24:24] Production.ERROR: pbx prc_insertCDR end [2025-03-06 10:24:24] Production.INFO: ==14356== Releasing lock... [2025-03-06 10:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 10:24:24] Production.INFO: 48.5 MB #Memory Used# [2025-03-06 10:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 07:25:05 [end_date_ymd] => 2025-03-06 10:25:05 [RateCDR] => 1 ) [2025-03-06 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-03-06 07:25:05' and `end` < '2025-03-06 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-03-06 10:25:17] Production.INFO: count ==2705 [2025-03-06 10:25:18] Production.ERROR: pbx CDR StartTime 2025-03-06 07:25:05 - End Time 2025-03-06 10:25:05 [2025-03-06 10:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 10:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619853', 'tblTempUsageDetail_20' ) start [2025-03-06 10:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619853', 'tblTempUsageDetail_20' ) end [2025-03-06 10:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619853', 'tblTempVendorCDR_20' ) start [2025-03-06 10:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619853', 'tblTempVendorCDR_20' ) end [2025-03-06 10:25:18] Production.INFO: ProcessCDR(1,14619853,1,1,2) [2025-03-06 10:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14619853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 10:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14619853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 10:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14619853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 10:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14619853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 10:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619853', 'tblTempUsageDetail_20' ) start [2025-03-06 10:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619853', 'tblTempUsageDetail_20' ) end [2025-03-06 10:25:23] Production.ERROR: pbx prc_insertCDR start [2025-03-06 10:25:23] Production.ERROR: pbx prc_insertCDR end [2025-03-06 10:25:23] Production.INFO: ==14436== Releasing lock... [2025-03-06 10:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 10:25:23] Production.INFO: 48.25 MB #Memory Used# [2025-03-06 10:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 07:26:06 [end_date_ymd] => 2025-03-06 10:26:06 [RateCDR] => 1 ) [2025-03-06 10: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-03-06 07:26:06' and `end` < '2025-03-06 10: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-03-06 10:26:18] Production.INFO: count ==2726 [2025-03-06 10:26:19] Production.ERROR: pbx CDR StartTime 2025-03-06 07:26:06 - End Time 2025-03-06 10:26:06 [2025-03-06 10:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 10:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619858', 'tblTempUsageDetail_20' ) start [2025-03-06 10:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619858', 'tblTempUsageDetail_20' ) end [2025-03-06 10:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619858', 'tblTempVendorCDR_20' ) start [2025-03-06 10:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619858', 'tblTempVendorCDR_20' ) end [2025-03-06 10:26:20] Production.INFO: ProcessCDR(1,14619858,1,1,2) [2025-03-06 10:26:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14619858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 10:26:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14619858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 10:26:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14619858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 10:26:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14619858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 10:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619858', 'tblTempUsageDetail_20' ) start [2025-03-06 10:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619858', 'tblTempUsageDetail_20' ) end [2025-03-06 10:26:24] Production.ERROR: pbx prc_insertCDR start [2025-03-06 10:26:24] Production.ERROR: pbx prc_insertCDR end [2025-03-06 10:26:24] Production.INFO: ==14515== Releasing lock... [2025-03-06 10:26:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 10:26:24] Production.INFO: 48.5 MB #Memory Used# [2025-03-06 10:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 07:27:05 [end_date_ymd] => 2025-03-06 10:27:05 [RateCDR] => 1 ) [2025-03-06 10: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-03-06 07:27:05' and `end` < '2025-03-06 10: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-03-06 10:27:18] Production.INFO: count ==2744 [2025-03-06 10:27:19] Production.ERROR: pbx CDR StartTime 2025-03-06 07:27:05 - End Time 2025-03-06 10:27:05 [2025-03-06 10:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 10:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619863', 'tblTempUsageDetail_20' ) start [2025-03-06 10:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619863', 'tblTempUsageDetail_20' ) end [2025-03-06 10:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619863', 'tblTempVendorCDR_20' ) start [2025-03-06 10:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619863', 'tblTempVendorCDR_20' ) end [2025-03-06 10:27:19] Production.INFO: ProcessCDR(1,14619863,1,1,2) [2025-03-06 10:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14619863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 10:27:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14619863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 10:27:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14619863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 10:27:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14619863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 10:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619863', 'tblTempUsageDetail_20' ) start [2025-03-06 10:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619863', 'tblTempUsageDetail_20' ) end [2025-03-06 10:27:24] Production.ERROR: pbx prc_insertCDR start [2025-03-06 10:27:24] Production.ERROR: pbx prc_insertCDR end [2025-03-06 10:27:24] Production.INFO: ==14591== Releasing lock... [2025-03-06 10:27:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 10:27:24] Production.INFO: 48.5 MB #Memory Used# [2025-03-06 10:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 07:28:06 [end_date_ymd] => 2025-03-06 10:28:06 [RateCDR] => 1 ) [2025-03-06 10:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 07:28:06' and `end` < '2025-03-06 10:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 10:28:19] Production.INFO: count ==2754 [2025-03-06 10:28:20] Production.ERROR: pbx CDR StartTime 2025-03-06 07:28:06 - End Time 2025-03-06 10:28:06 [2025-03-06 10:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 10:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619868', 'tblTempUsageDetail_20' ) start [2025-03-06 10:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619868', 'tblTempUsageDetail_20' ) end [2025-03-06 10:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619868', 'tblTempVendorCDR_20' ) start [2025-03-06 10:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619868', 'tblTempVendorCDR_20' ) end [2025-03-06 10:28:20] Production.INFO: ProcessCDR(1,14619868,1,1,2) [2025-03-06 10:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14619868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 10:28:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14619868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 10:28:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14619868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 10:28:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14619868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 10:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619868', 'tblTempUsageDetail_20' ) start [2025-03-06 10:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619868', 'tblTempUsageDetail_20' ) end [2025-03-06 10:28:25] Production.ERROR: pbx prc_insertCDR start [2025-03-06 10:28:25] Production.ERROR: pbx prc_insertCDR end [2025-03-06 10:28:25] Production.INFO: ==14670== Releasing lock... [2025-03-06 10:28:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 10:28:25] Production.INFO: 48.75 MB #Memory Used# [2025-03-06 10:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 07:29:05 [end_date_ymd] => 2025-03-06 10:29:05 [RateCDR] => 1 ) [2025-03-06 10:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 07:29:05' and `end` < '2025-03-06 10:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 10:29:17] Production.INFO: count ==2761 [2025-03-06 10:29:18] Production.ERROR: pbx CDR StartTime 2025-03-06 07:29:05 - End Time 2025-03-06 10:29:05 [2025-03-06 10:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 10:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619873', 'tblTempUsageDetail_20' ) start [2025-03-06 10:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619873', 'tblTempUsageDetail_20' ) end [2025-03-06 10:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619873', 'tblTempVendorCDR_20' ) start [2025-03-06 10:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619873', 'tblTempVendorCDR_20' ) end [2025-03-06 10:29:18] Production.INFO: ProcessCDR(1,14619873,1,1,2) [2025-03-06 10:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14619873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 10:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14619873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 10:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14619873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 10:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14619873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 10:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619873', 'tblTempUsageDetail_20' ) start [2025-03-06 10:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619873', 'tblTempUsageDetail_20' ) end [2025-03-06 10:29:23] Production.ERROR: pbx prc_insertCDR start [2025-03-06 10:29:23] Production.ERROR: pbx prc_insertCDR end [2025-03-06 10:29:23] Production.INFO: ==14745== Releasing lock... [2025-03-06 10:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 10:29:23] Production.INFO: 48.75 MB #Memory Used# [2025-03-06 10:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 07:30:07 [end_date_ymd] => 2025-03-06 10:30:07 [RateCDR] => 1 ) [2025-03-06 10:30: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-03-06 07:30:07' and `end` < '2025-03-06 10:30: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-03-06 10:30:19] Production.INFO: count ==2772 [2025-03-06 10:30:20] Production.ERROR: pbx CDR StartTime 2025-03-06 07:30:07 - End Time 2025-03-06 10:30:07 [2025-03-06 10:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 10:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619879', 'tblTempUsageDetail_20' ) start [2025-03-06 10:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619879', 'tblTempUsageDetail_20' ) end [2025-03-06 10:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619879', 'tblTempVendorCDR_20' ) start [2025-03-06 10:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619879', 'tblTempVendorCDR_20' ) end [2025-03-06 10:30:21] Production.INFO: ProcessCDR(1,14619879,1,1,2) [2025-03-06 10:30:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14619879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 10:30:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14619879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 10:30:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14619879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 10:30:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14619879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 10:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619879', 'tblTempUsageDetail_20' ) start [2025-03-06 10:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619879', 'tblTempUsageDetail_20' ) end [2025-03-06 10:30:25] Production.ERROR: pbx prc_insertCDR start [2025-03-06 10:30:26] Production.ERROR: pbx prc_insertCDR end [2025-03-06 10:30:26] Production.INFO: ==14832== Releasing lock... [2025-03-06 10:30:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 10:30:26] Production.INFO: 49 MB #Memory Used# [2025-03-06 10:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 07:31:05 [end_date_ymd] => 2025-03-06 10:31:05 [RateCDR] => 1 ) [2025-03-06 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-03-06 07:31:05' and `end` < '2025-03-06 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-03-06 10:31:18] Production.INFO: count ==2844 [2025-03-06 10:31:19] Production.ERROR: pbx CDR StartTime 2025-03-06 07:31:05 - End Time 2025-03-06 10:31:05 [2025-03-06 10:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 10:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619884', 'tblTempUsageDetail_20' ) start [2025-03-06 10:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619884', 'tblTempUsageDetail_20' ) end [2025-03-06 10:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619884', 'tblTempVendorCDR_20' ) start [2025-03-06 10:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619884', 'tblTempVendorCDR_20' ) end [2025-03-06 10:31:19] Production.INFO: ProcessCDR(1,14619884,1,1,2) [2025-03-06 10:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14619884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 10:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14619884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 10:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14619884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 10:31:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14619884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 10:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619884', 'tblTempUsageDetail_20' ) start [2025-03-06 10:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619884', 'tblTempUsageDetail_20' ) end [2025-03-06 10:31:24] Production.ERROR: pbx prc_insertCDR start [2025-03-06 10:31:24] Production.ERROR: pbx prc_insertCDR end [2025-03-06 10:31:24] Production.INFO: ==14915== Releasing lock... [2025-03-06 10:31:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 10:31:24] Production.INFO: 49.25 MB #Memory Used# [2025-03-06 10:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 07:32:06 [end_date_ymd] => 2025-03-06 10:32:06 [RateCDR] => 1 ) [2025-03-06 10: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-03-06 07:32:06' and `end` < '2025-03-06 10: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-03-06 10:32:18] Production.INFO: count ==2848 [2025-03-06 10:32:19] Production.ERROR: pbx CDR StartTime 2025-03-06 07:32:06 - End Time 2025-03-06 10:32:06 [2025-03-06 10:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 10:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619889', 'tblTempUsageDetail_20' ) start [2025-03-06 10:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619889', 'tblTempUsageDetail_20' ) end [2025-03-06 10:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619889', 'tblTempVendorCDR_20' ) start [2025-03-06 10:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619889', 'tblTempVendorCDR_20' ) end [2025-03-06 10:32:19] Production.INFO: ProcessCDR(1,14619889,1,1,2) [2025-03-06 10:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14619889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 10:32:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14619889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 10:32:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14619889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 10:32:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14619889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 10:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619889', 'tblTempUsageDetail_20' ) start [2025-03-06 10:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619889', 'tblTempUsageDetail_20' ) end [2025-03-06 10:32:24] Production.ERROR: pbx prc_insertCDR start [2025-03-06 10:32:24] Production.ERROR: pbx prc_insertCDR end [2025-03-06 10:32:24] Production.INFO: ==14991== Releasing lock... [2025-03-06 10:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 10:32:24] Production.INFO: 49.25 MB #Memory Used# [2025-03-06 10:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 07:33:05 [end_date_ymd] => 2025-03-06 10:33:05 [RateCDR] => 1 ) [2025-03-06 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-03-06 07:33:05' and `end` < '2025-03-06 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-03-06 10:33:18] Production.INFO: count ==2863 [2025-03-06 10:33:19] Production.ERROR: pbx CDR StartTime 2025-03-06 07:33:05 - End Time 2025-03-06 10:33:05 [2025-03-06 10:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 10:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619894', 'tblTempUsageDetail_20' ) start [2025-03-06 10:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619894', 'tblTempUsageDetail_20' ) end [2025-03-06 10:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619894', 'tblTempVendorCDR_20' ) start [2025-03-06 10:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619894', 'tblTempVendorCDR_20' ) end [2025-03-06 10:33:19] Production.INFO: ProcessCDR(1,14619894,1,1,2) [2025-03-06 10:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14619894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 10:33:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14619894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 10:33:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14619894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 10:33:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14619894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 10:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619894', 'tblTempUsageDetail_20' ) start [2025-03-06 10:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619894', 'tblTempUsageDetail_20' ) end [2025-03-06 10:33:24] Production.ERROR: pbx prc_insertCDR start [2025-03-06 10:33:24] Production.ERROR: pbx prc_insertCDR end [2025-03-06 10:33:24] Production.INFO: ==15070== Releasing lock... [2025-03-06 10:33:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 10:33:24] Production.INFO: 49.25 MB #Memory Used# [2025-03-06 10:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 07:34:06 [end_date_ymd] => 2025-03-06 10:34:06 [RateCDR] => 1 ) [2025-03-06 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-03-06 07:34:06' and `end` < '2025-03-06 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-03-06 10:34:18] Production.INFO: count ==2876 [2025-03-06 10:34:20] Production.ERROR: pbx CDR StartTime 2025-03-06 07:34:06 - End Time 2025-03-06 10:34:06 [2025-03-06 10:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 10:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619899', 'tblTempUsageDetail_20' ) start [2025-03-06 10:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619899', 'tblTempUsageDetail_20' ) end [2025-03-06 10:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619899', 'tblTempVendorCDR_20' ) start [2025-03-06 10:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619899', 'tblTempVendorCDR_20' ) end [2025-03-06 10:34:20] Production.INFO: ProcessCDR(1,14619899,1,1,2) [2025-03-06 10:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14619899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 10:34:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14619899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 10:34:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14619899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 10:34:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14619899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 10:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619899', 'tblTempUsageDetail_20' ) start [2025-03-06 10:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619899', 'tblTempUsageDetail_20' ) end [2025-03-06 10:34:24] Production.ERROR: pbx prc_insertCDR start [2025-03-06 10:34:25] Production.ERROR: pbx prc_insertCDR end [2025-03-06 10:34:25] Production.INFO: ==15147== Releasing lock... [2025-03-06 10:34:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 10:34:25] Production.INFO: 49.5 MB #Memory Used# [2025-03-06 10:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 07:35:05 [end_date_ymd] => 2025-03-06 10:35:05 [RateCDR] => 1 ) [2025-03-06 10:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 07:35:05' and `end` < '2025-03-06 10:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 10:35:18] Production.INFO: count ==2881 [2025-03-06 10:35:19] Production.ERROR: pbx CDR StartTime 2025-03-06 07:35:05 - End Time 2025-03-06 10:35:05 [2025-03-06 10:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 10:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619904', 'tblTempUsageDetail_20' ) start [2025-03-06 10:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619904', 'tblTempUsageDetail_20' ) end [2025-03-06 10:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619904', 'tblTempVendorCDR_20' ) start [2025-03-06 10:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619904', 'tblTempVendorCDR_20' ) end [2025-03-06 10:35:19] Production.INFO: ProcessCDR(1,14619904,1,1,2) [2025-03-06 10:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14619904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 10:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14619904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 10:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14619904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 10:35:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14619904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 10:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619904', 'tblTempUsageDetail_20' ) start [2025-03-06 10:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619904', 'tblTempUsageDetail_20' ) end [2025-03-06 10:35:24] Production.ERROR: pbx prc_insertCDR start [2025-03-06 10:35:24] Production.ERROR: pbx prc_insertCDR end [2025-03-06 10:35:24] Production.INFO: ==15261== Releasing lock... [2025-03-06 10:35:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 10:35:24] Production.INFO: 49.5 MB #Memory Used# [2025-03-06 10:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 07:36:06 [end_date_ymd] => 2025-03-06 10:36:06 [RateCDR] => 1 ) [2025-03-06 10: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-03-06 07:36:06' and `end` < '2025-03-06 10: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-03-06 10:36:19] Production.INFO: count ==2908 [2025-03-06 10:36:20] Production.ERROR: pbx CDR StartTime 2025-03-06 07:36:06 - End Time 2025-03-06 10:36:06 [2025-03-06 10:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 10:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619909', 'tblTempUsageDetail_20' ) start [2025-03-06 10:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619909', 'tblTempUsageDetail_20' ) end [2025-03-06 10:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619909', 'tblTempVendorCDR_20' ) start [2025-03-06 10:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619909', 'tblTempVendorCDR_20' ) end [2025-03-06 10:36:20] Production.INFO: ProcessCDR(1,14619909,1,1,2) [2025-03-06 10:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14619909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 10:36:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14619909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 10:36:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14619909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 10:36:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14619909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 10:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619909', 'tblTempUsageDetail_20' ) start [2025-03-06 10:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619909', 'tblTempUsageDetail_20' ) end [2025-03-06 10:36:25] Production.ERROR: pbx prc_insertCDR start [2025-03-06 10:36:25] Production.ERROR: pbx prc_insertCDR end [2025-03-06 10:36:25] Production.INFO: ==15342== Releasing lock... [2025-03-06 10:36:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 10:36:25] Production.INFO: 49.5 MB #Memory Used# [2025-03-06 10:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 07:37:05 [end_date_ymd] => 2025-03-06 10:37:05 [RateCDR] => 1 ) [2025-03-06 10:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 07:37:05' and `end` < '2025-03-06 10:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 10:37:17] Production.INFO: count ==2917 [2025-03-06 10:37:19] Production.ERROR: pbx CDR StartTime 2025-03-06 07:37:05 - End Time 2025-03-06 10:37:05 [2025-03-06 10:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 10:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619914', 'tblTempUsageDetail_20' ) start [2025-03-06 10:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619914', 'tblTempUsageDetail_20' ) end [2025-03-06 10:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619914', 'tblTempVendorCDR_20' ) start [2025-03-06 10:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619914', 'tblTempVendorCDR_20' ) end [2025-03-06 10:37:19] Production.INFO: ProcessCDR(1,14619914,1,1,2) [2025-03-06 10:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14619914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 10:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14619914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 10:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14619914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 10:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14619914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 10:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619914', 'tblTempUsageDetail_20' ) start [2025-03-06 10:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619914', 'tblTempUsageDetail_20' ) end [2025-03-06 10:37:24] Production.ERROR: pbx prc_insertCDR start [2025-03-06 10:37:24] Production.ERROR: pbx prc_insertCDR end [2025-03-06 10:37:24] Production.INFO: ==15416== Releasing lock... [2025-03-06 10:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 10:37:24] Production.INFO: 49.5 MB #Memory Used# [2025-03-06 10:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 07:38:06 [end_date_ymd] => 2025-03-06 10:38:06 [RateCDR] => 1 ) [2025-03-06 10: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-03-06 07:38:06' and `end` < '2025-03-06 10: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-03-06 10:38:18] Production.INFO: count ==2950 [2025-03-06 10:38:20] Production.ERROR: pbx CDR StartTime 2025-03-06 07:38:06 - End Time 2025-03-06 10:38:06 [2025-03-06 10:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 10:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619919', 'tblTempUsageDetail_20' ) start [2025-03-06 10:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619919', 'tblTempUsageDetail_20' ) end [2025-03-06 10:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619919', 'tblTempVendorCDR_20' ) start [2025-03-06 10:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619919', 'tblTempVendorCDR_20' ) end [2025-03-06 10:38:20] Production.INFO: ProcessCDR(1,14619919,1,1,2) [2025-03-06 10:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14619919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 10:38:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14619919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 10:38:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14619919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 10:38:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14619919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 10:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619919', 'tblTempUsageDetail_20' ) start [2025-03-06 10:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619919', 'tblTempUsageDetail_20' ) end [2025-03-06 10:38:25] Production.ERROR: pbx prc_insertCDR start [2025-03-06 10:38:25] Production.ERROR: pbx prc_insertCDR end [2025-03-06 10:38:25] Production.INFO: ==15501== Releasing lock... [2025-03-06 10:38:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 10:38:25] Production.INFO: 50.25 MB #Memory Used# [2025-03-06 10:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 07:39:05 [end_date_ymd] => 2025-03-06 10:39:05 [RateCDR] => 1 ) [2025-03-06 10:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 07:39:05' and `end` < '2025-03-06 10:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 10:39:17] Production.INFO: count ==2951 [2025-03-06 10:39:18] Production.ERROR: pbx CDR StartTime 2025-03-06 07:39:05 - End Time 2025-03-06 10:39:05 [2025-03-06 10:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 10:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619924', 'tblTempUsageDetail_20' ) start [2025-03-06 10:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619924', 'tblTempUsageDetail_20' ) end [2025-03-06 10:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619924', 'tblTempVendorCDR_20' ) start [2025-03-06 10:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619924', 'tblTempVendorCDR_20' ) end [2025-03-06 10:39:18] Production.INFO: ProcessCDR(1,14619924,1,1,2) [2025-03-06 10:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14619924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 10:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14619924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 10:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14619924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 10:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14619924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 10:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619924', 'tblTempUsageDetail_20' ) start [2025-03-06 10:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619924', 'tblTempUsageDetail_20' ) end [2025-03-06 10:39:23] Production.ERROR: pbx prc_insertCDR start [2025-03-06 10:39:23] Production.ERROR: pbx prc_insertCDR end [2025-03-06 10:39:23] Production.INFO: ==15577== Releasing lock... [2025-03-06 10:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 10:39:23] Production.INFO: 50 MB #Memory Used# [2025-03-06 10:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 07:40:06 [end_date_ymd] => 2025-03-06 10:40:06 [RateCDR] => 1 ) [2025-03-06 10:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 07:40:06' and `end` < '2025-03-06 10:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 10:40:18] Production.INFO: count ==2958 [2025-03-06 10:40:20] Production.ERROR: pbx CDR StartTime 2025-03-06 07:40:06 - End Time 2025-03-06 10:40:06 [2025-03-06 10:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 10:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619929', 'tblTempUsageDetail_20' ) start [2025-03-06 10:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619929', 'tblTempUsageDetail_20' ) end [2025-03-06 10:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619929', 'tblTempVendorCDR_20' ) start [2025-03-06 10:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619929', 'tblTempVendorCDR_20' ) end [2025-03-06 10:40:20] Production.INFO: ProcessCDR(1,14619929,1,1,2) [2025-03-06 10:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14619929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 10:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14619929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 10:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14619929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 10:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14619929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 10:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619929', 'tblTempUsageDetail_20' ) start [2025-03-06 10:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619929', 'tblTempUsageDetail_20' ) end [2025-03-06 10:40:24] Production.ERROR: pbx prc_insertCDR start [2025-03-06 10:40:24] Production.ERROR: pbx prc_insertCDR end [2025-03-06 10:40:24] Production.INFO: ==15657== Releasing lock... [2025-03-06 10:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 10:40:24] Production.INFO: 49.75 MB #Memory Used# [2025-03-06 10:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 07:41:05 [end_date_ymd] => 2025-03-06 10:41:05 [RateCDR] => 1 ) [2025-03-06 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-03-06 07:41:05' and `end` < '2025-03-06 10:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 10:41:18] Production.INFO: count ==3064 [2025-03-06 10:41:19] Production.ERROR: pbx CDR StartTime 2025-03-06 07:41:05 - End Time 2025-03-06 10:41:05 [2025-03-06 10:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 10:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619935', 'tblTempUsageDetail_20' ) start [2025-03-06 10:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619935', 'tblTempUsageDetail_20' ) end [2025-03-06 10:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619935', 'tblTempVendorCDR_20' ) start [2025-03-06 10:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619935', 'tblTempVendorCDR_20' ) end [2025-03-06 10:41:19] Production.INFO: ProcessCDR(1,14619935,1,1,2) [2025-03-06 10:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14619935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 10:41:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14619935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 10:41:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14619935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 10:41:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14619935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 10:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619935', 'tblTempUsageDetail_20' ) start [2025-03-06 10:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619935', 'tblTempUsageDetail_20' ) end [2025-03-06 10:41:24] Production.ERROR: pbx prc_insertCDR start [2025-03-06 10:41:24] Production.ERROR: pbx prc_insertCDR end [2025-03-06 10:41:24] Production.INFO: ==15738== Releasing lock... [2025-03-06 10:41:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 10:41:24] Production.INFO: 51.25 MB #Memory Used# [2025-03-06 10:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 07:42:05 [end_date_ymd] => 2025-03-06 10:42:05 [RateCDR] => 1 ) [2025-03-06 10:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 07:42:05' and `end` < '2025-03-06 10:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 10:42:18] Production.INFO: count ==3071 [2025-03-06 10:42:19] Production.ERROR: pbx CDR StartTime 2025-03-06 07:42:05 - End Time 2025-03-06 10:42:05 [2025-03-06 10:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 10:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619940', 'tblTempUsageDetail_20' ) start [2025-03-06 10:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619940', 'tblTempUsageDetail_20' ) end [2025-03-06 10:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619940', 'tblTempVendorCDR_20' ) start [2025-03-06 10:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619940', 'tblTempVendorCDR_20' ) end [2025-03-06 10:42:19] Production.INFO: ProcessCDR(1,14619940,1,1,2) [2025-03-06 10:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14619940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 10:42:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14619940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 10:42:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14619940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 10:42:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14619940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 10:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619940', 'tblTempUsageDetail_20' ) start [2025-03-06 10:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619940', 'tblTempUsageDetail_20' ) end [2025-03-06 10:42:24] Production.ERROR: pbx prc_insertCDR start [2025-03-06 10:42:24] Production.ERROR: pbx prc_insertCDR end [2025-03-06 10:42:24] Production.INFO: ==15820== Releasing lock... [2025-03-06 10:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 10:42:24] Production.INFO: 51.25 MB #Memory Used# [2025-03-06 10:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 07:43:06 [end_date_ymd] => 2025-03-06 10:43:06 [RateCDR] => 1 ) [2025-03-06 10:43:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 07:43:06' and `end` < '2025-03-06 10:43:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 10:43:19] Production.INFO: count ==3085 [2025-03-06 10:43:20] Production.ERROR: pbx CDR StartTime 2025-03-06 07:43:06 - End Time 2025-03-06 10:43:06 [2025-03-06 10:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 10:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619945', 'tblTempUsageDetail_20' ) start [2025-03-06 10:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619945', 'tblTempUsageDetail_20' ) end [2025-03-06 10:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619945', 'tblTempVendorCDR_20' ) start [2025-03-06 10:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619945', 'tblTempVendorCDR_20' ) end [2025-03-06 10:43:20] Production.INFO: ProcessCDR(1,14619945,1,1,2) [2025-03-06 10:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14619945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 10:43:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14619945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 10:43:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14619945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 10:43:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14619945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 10:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619945', 'tblTempUsageDetail_20' ) start [2025-03-06 10:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619945', 'tblTempUsageDetail_20' ) end [2025-03-06 10:43:25] Production.ERROR: pbx prc_insertCDR start [2025-03-06 10:43:25] Production.ERROR: pbx prc_insertCDR end [2025-03-06 10:43:25] Production.INFO: ==15895== Releasing lock... [2025-03-06 10:43:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 10:43:25] Production.INFO: 51.25 MB #Memory Used# [2025-03-06 10:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 07:44:05 [end_date_ymd] => 2025-03-06 10:44:05 [RateCDR] => 1 ) [2025-03-06 10:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 07:44:05' and `end` < '2025-03-06 10:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 10:44:18] Production.INFO: count ==3095 [2025-03-06 10:44:19] Production.ERROR: pbx CDR StartTime 2025-03-06 07:44:05 - End Time 2025-03-06 10:44:05 [2025-03-06 10:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 10:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619950', 'tblTempUsageDetail_20' ) start [2025-03-06 10:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619950', 'tblTempUsageDetail_20' ) end [2025-03-06 10:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619950', 'tblTempVendorCDR_20' ) start [2025-03-06 10:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619950', 'tblTempVendorCDR_20' ) end [2025-03-06 10:44:19] Production.INFO: ProcessCDR(1,14619950,1,1,2) [2025-03-06 10:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14619950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 10:44:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14619950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 10:44:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14619950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 10:44:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14619950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 10:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619950', 'tblTempUsageDetail_20' ) start [2025-03-06 10:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619950', 'tblTempUsageDetail_20' ) end [2025-03-06 10:44:24] Production.ERROR: pbx prc_insertCDR start [2025-03-06 10:44:24] Production.ERROR: pbx prc_insertCDR end [2025-03-06 10:44:24] Production.INFO: ==15967== Releasing lock... [2025-03-06 10:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 10:44:24] Production.INFO: 51.5 MB #Memory Used# [2025-03-06 10:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 07:45:06 [end_date_ymd] => 2025-03-06 10:45:06 [RateCDR] => 1 ) [2025-03-06 10:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 07:45:06' and `end` < '2025-03-06 10:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 10:45:19] Production.INFO: count ==3111 [2025-03-06 10:45:20] Production.ERROR: pbx CDR StartTime 2025-03-06 07:45:06 - End Time 2025-03-06 10:45:06 [2025-03-06 10:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 10:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619955', 'tblTempUsageDetail_20' ) start [2025-03-06 10:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619955', 'tblTempUsageDetail_20' ) end [2025-03-06 10:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619955', 'tblTempVendorCDR_20' ) start [2025-03-06 10:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619955', 'tblTempVendorCDR_20' ) end [2025-03-06 10:45:20] Production.INFO: ProcessCDR(1,14619955,1,1,2) [2025-03-06 10:45:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14619955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 10:45:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14619955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 10:45:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14619955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 10:45:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14619955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 10:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619955', 'tblTempUsageDetail_20' ) start [2025-03-06 10:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619955', 'tblTempUsageDetail_20' ) end [2025-03-06 10:45:25] Production.ERROR: pbx prc_insertCDR start [2025-03-06 10:45:25] Production.ERROR: pbx prc_insertCDR end [2025-03-06 10:45:25] Production.INFO: ==16048== Releasing lock... [2025-03-06 10:45:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 10:45:25] Production.INFO: 51.5 MB #Memory Used# [2025-03-06 10:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 07:46:05 [end_date_ymd] => 2025-03-06 10:46:05 [RateCDR] => 1 ) [2025-03-06 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-03-06 07:46:05' and `end` < '2025-03-06 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-03-06 10:46:18] Production.INFO: count ==3122 [2025-03-06 10:46:19] Production.ERROR: pbx CDR StartTime 2025-03-06 07:46:05 - End Time 2025-03-06 10:46:05 [2025-03-06 10:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 10:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619960', 'tblTempUsageDetail_20' ) start [2025-03-06 10:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619960', 'tblTempUsageDetail_20' ) end [2025-03-06 10:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619960', 'tblTempVendorCDR_20' ) start [2025-03-06 10:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619960', 'tblTempVendorCDR_20' ) end [2025-03-06 10:46:19] Production.INFO: ProcessCDR(1,14619960,1,1,2) [2025-03-06 10:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14619960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 10:46:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14619960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 10:46:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14619960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 10:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14619960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 10:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619960', 'tblTempUsageDetail_20' ) start [2025-03-06 10:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619960', 'tblTempUsageDetail_20' ) end [2025-03-06 10:46:24] Production.ERROR: pbx prc_insertCDR start [2025-03-06 10:46:24] Production.ERROR: pbx prc_insertCDR end [2025-03-06 10:46:24] Production.INFO: ==16125== Releasing lock... [2025-03-06 10:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 10:46:24] Production.INFO: 51.75 MB #Memory Used# [2025-03-06 10:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 07:47:05 [end_date_ymd] => 2025-03-06 10:47:05 [RateCDR] => 1 ) [2025-03-06 10:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 07:47:05' and `end` < '2025-03-06 10:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 10:47:18] Production.INFO: count ==3134 [2025-03-06 10:47:19] Production.ERROR: pbx CDR StartTime 2025-03-06 07:47:05 - End Time 2025-03-06 10:47:05 [2025-03-06 10:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 10:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619965', 'tblTempUsageDetail_20' ) start [2025-03-06 10:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619965', 'tblTempUsageDetail_20' ) end [2025-03-06 10:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619965', 'tblTempVendorCDR_20' ) start [2025-03-06 10:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619965', 'tblTempVendorCDR_20' ) end [2025-03-06 10:47:20] Production.INFO: ProcessCDR(1,14619965,1,1,2) [2025-03-06 10:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14619965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 10:47:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14619965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 10:47:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14619965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 10:47:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14619965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 10:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619965', 'tblTempUsageDetail_20' ) start [2025-03-06 10:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619965', 'tblTempUsageDetail_20' ) end [2025-03-06 10:47:25] Production.ERROR: pbx prc_insertCDR start [2025-03-06 10:47:25] Production.ERROR: pbx prc_insertCDR end [2025-03-06 10:47:25] Production.INFO: ==16202== Releasing lock... [2025-03-06 10:47:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 10:47:25] Production.INFO: 51.5 MB #Memory Used# [2025-03-06 10:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 07:48:05 [end_date_ymd] => 2025-03-06 10:48:05 [RateCDR] => 1 ) [2025-03-06 10:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 07:48:05' and `end` < '2025-03-06 10:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 10:48:18] Production.INFO: count ==3170 [2025-03-06 10:48:19] Production.ERROR: pbx CDR StartTime 2025-03-06 07:48:05 - End Time 2025-03-06 10:48:05 [2025-03-06 10:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 10:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619970', 'tblTempUsageDetail_20' ) start [2025-03-06 10:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619970', 'tblTempUsageDetail_20' ) end [2025-03-06 10:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619970', 'tblTempVendorCDR_20' ) start [2025-03-06 10:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619970', 'tblTempVendorCDR_20' ) end [2025-03-06 10:48:19] Production.INFO: ProcessCDR(1,14619970,1,1,2) [2025-03-06 10:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14619970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 10:48:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14619970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 10:48:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14619970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 10:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14619970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 10:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619970', 'tblTempUsageDetail_20' ) start [2025-03-06 10:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619970', 'tblTempUsageDetail_20' ) end [2025-03-06 10:48:24] Production.ERROR: pbx prc_insertCDR start [2025-03-06 10:48:24] Production.ERROR: pbx prc_insertCDR end [2025-03-06 10:48:25] Production.INFO: ==16274== Releasing lock... [2025-03-06 10:48:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 10:48:25] Production.INFO: 51.75 MB #Memory Used# [2025-03-06 10:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 07:49:05 [end_date_ymd] => 2025-03-06 10:49:05 [RateCDR] => 1 ) [2025-03-06 10:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 07:49:05' and `end` < '2025-03-06 10:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 10:49:17] Production.INFO: count ==3203 [2025-03-06 10:49:19] Production.ERROR: pbx CDR StartTime 2025-03-06 07:49:05 - End Time 2025-03-06 10:49:05 [2025-03-06 10:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 10:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619975', 'tblTempUsageDetail_20' ) start [2025-03-06 10:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619975', 'tblTempUsageDetail_20' ) end [2025-03-06 10:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619975', 'tblTempVendorCDR_20' ) start [2025-03-06 10:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619975', 'tblTempVendorCDR_20' ) end [2025-03-06 10:49:19] Production.INFO: ProcessCDR(1,14619975,1,1,2) [2025-03-06 10:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14619975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 10:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14619975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 10:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14619975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 10:49:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14619975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 10:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619975', 'tblTempUsageDetail_20' ) start [2025-03-06 10:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619975', 'tblTempUsageDetail_20' ) end [2025-03-06 10:49:24] Production.ERROR: pbx prc_insertCDR start [2025-03-06 10:49:24] Production.ERROR: pbx prc_insertCDR end [2025-03-06 10:49:24] Production.INFO: ==16344== Releasing lock... [2025-03-06 10:49:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 10:49:24] Production.INFO: 52 MB #Memory Used# [2025-03-06 10:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 07:50:06 [end_date_ymd] => 2025-03-06 10:50:06 [RateCDR] => 1 ) [2025-03-06 10:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 07:50:06' and `end` < '2025-03-06 10:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 10:50:19] Production.INFO: count ==3229 [2025-03-06 10:50:20] Production.ERROR: pbx CDR StartTime 2025-03-06 07:50:06 - End Time 2025-03-06 10:50:06 [2025-03-06 10:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 10:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619981', 'tblTempUsageDetail_20' ) start [2025-03-06 10:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619981', 'tblTempUsageDetail_20' ) end [2025-03-06 10:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619981', 'tblTempVendorCDR_20' ) start [2025-03-06 10:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619981', 'tblTempVendorCDR_20' ) end [2025-03-06 10:50:20] Production.INFO: ProcessCDR(1,14619981,1,1,2) [2025-03-06 10:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14619981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 10:50:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14619981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 10:50:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14619981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 10:50:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14619981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 10:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619981', 'tblTempUsageDetail_20' ) start [2025-03-06 10:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619981', 'tblTempUsageDetail_20' ) end [2025-03-06 10:50:25] Production.ERROR: pbx prc_insertCDR start [2025-03-06 10:50:25] Production.ERROR: pbx prc_insertCDR end [2025-03-06 10:50:25] Production.INFO: ==16419== Releasing lock... [2025-03-06 10:50:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 10:50:25] Production.INFO: 52.5 MB #Memory Used# [2025-03-06 10:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 07:51:06 [end_date_ymd] => 2025-03-06 10:51:06 [RateCDR] => 1 ) [2025-03-06 10: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-03-06 07:51:06' and `end` < '2025-03-06 10: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-03-06 10:51:19] Production.INFO: count ==3361 [2025-03-06 10:51:20] Production.ERROR: pbx CDR StartTime 2025-03-06 07:51:06 - End Time 2025-03-06 10:51:06 [2025-03-06 10:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 10:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619986', 'tblTempUsageDetail_20' ) start [2025-03-06 10:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619986', 'tblTempUsageDetail_20' ) end [2025-03-06 10:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619986', 'tblTempVendorCDR_20' ) start [2025-03-06 10:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619986', 'tblTempVendorCDR_20' ) end [2025-03-06 10:51:20] Production.INFO: ProcessCDR(1,14619986,1,1,2) [2025-03-06 10:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14619986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 10:51:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14619986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 10:51:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14619986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 10:51:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14619986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 10:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619986', 'tblTempUsageDetail_20' ) start [2025-03-06 10:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619986', 'tblTempUsageDetail_20' ) end [2025-03-06 10:51:26] Production.ERROR: pbx prc_insertCDR start [2025-03-06 10:51:26] Production.ERROR: pbx prc_insertCDR end [2025-03-06 10:51:26] Production.INFO: ==16537== Releasing lock... [2025-03-06 10:51:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 10:51:26] Production.INFO: 53.5 MB #Memory Used# [2025-03-06 10:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 07:52:05 [end_date_ymd] => 2025-03-06 10:52:05 [RateCDR] => 1 ) [2025-03-06 10:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 07:52:05' and `end` < '2025-03-06 10:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 10:52:18] Production.INFO: count ==3378 [2025-03-06 10:52:19] Production.ERROR: pbx CDR StartTime 2025-03-06 07:52:05 - End Time 2025-03-06 10:52:05 [2025-03-06 10:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 10:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619991', 'tblTempUsageDetail_20' ) start [2025-03-06 10:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619991', 'tblTempUsageDetail_20' ) end [2025-03-06 10:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619991', 'tblTempVendorCDR_20' ) start [2025-03-06 10:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619991', 'tblTempVendorCDR_20' ) end [2025-03-06 10:52:20] Production.INFO: ProcessCDR(1,14619991,1,1,2) [2025-03-06 10:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14619991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 10:52:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14619991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 10:52:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14619991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 10:52:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14619991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 10:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619991', 'tblTempUsageDetail_20' ) start [2025-03-06 10:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619991', 'tblTempUsageDetail_20' ) end [2025-03-06 10:52:25] Production.ERROR: pbx prc_insertCDR start [2025-03-06 10:52:25] Production.ERROR: pbx prc_insertCDR end [2025-03-06 10:52:25] Production.INFO: ==16608== Releasing lock... [2025-03-06 10:52:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 10:52:25] Production.INFO: 53.25 MB #Memory Used# [2025-03-06 10:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 07:53:06 [end_date_ymd] => 2025-03-06 10:53:06 [RateCDR] => 1 ) [2025-03-06 10: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-03-06 07:53:06' and `end` < '2025-03-06 10: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-03-06 10:53:19] Production.INFO: count ==3402 [2025-03-06 10:53:20] Production.ERROR: pbx CDR StartTime 2025-03-06 07:53:06 - End Time 2025-03-06 10:53:06 [2025-03-06 10:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 10:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619996', 'tblTempUsageDetail_20' ) start [2025-03-06 10:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14619996', 'tblTempUsageDetail_20' ) end [2025-03-06 10:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619996', 'tblTempVendorCDR_20' ) start [2025-03-06 10:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14619996', 'tblTempVendorCDR_20' ) end [2025-03-06 10:53:20] Production.INFO: ProcessCDR(1,14619996,1,1,2) [2025-03-06 10:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14619996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 10:53:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14619996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 10:53:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14619996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 10:53:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14619996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 10:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619996', 'tblTempUsageDetail_20' ) start [2025-03-06 10:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14619996', 'tblTempUsageDetail_20' ) end [2025-03-06 10:53:25] Production.ERROR: pbx prc_insertCDR start [2025-03-06 10:53:25] Production.ERROR: pbx prc_insertCDR end [2025-03-06 10:53:25] Production.INFO: ==16680== Releasing lock... [2025-03-06 10:53:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 10:53:25] Production.INFO: 53.75 MB #Memory Used# [2025-03-06 10:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 07:54:05 [end_date_ymd] => 2025-03-06 10:54:05 [RateCDR] => 1 ) [2025-03-06 10:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 07:54:05' and `end` < '2025-03-06 10:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 10:54:18] Production.INFO: count ==3447 [2025-03-06 10:54:19] Production.ERROR: pbx CDR StartTime 2025-03-06 07:54:05 - End Time 2025-03-06 10:54:05 [2025-03-06 10:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 10:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620001', 'tblTempUsageDetail_20' ) start [2025-03-06 10:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620001', 'tblTempUsageDetail_20' ) end [2025-03-06 10:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620001', 'tblTempVendorCDR_20' ) start [2025-03-06 10:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620001', 'tblTempVendorCDR_20' ) end [2025-03-06 10:54:19] Production.INFO: ProcessCDR(1,14620001,1,1,2) [2025-03-06 10:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14620001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 10:54:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14620001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 10:54:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14620001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 10:54:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14620001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 10:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620001', 'tblTempUsageDetail_20' ) start [2025-03-06 10:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620001', 'tblTempUsageDetail_20' ) end [2025-03-06 10:54:24] Production.ERROR: pbx prc_insertCDR start [2025-03-06 10:54:24] Production.ERROR: pbx prc_insertCDR end [2025-03-06 10:54:24] Production.INFO: ==16754== Releasing lock... [2025-03-06 10:54:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 10:54:24] Production.INFO: 54 MB #Memory Used# [2025-03-06 10:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 07:55:06 [end_date_ymd] => 2025-03-06 10:55:06 [RateCDR] => 1 ) [2025-03-06 10:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 07:55:06' and `end` < '2025-03-06 10:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 10:55:18] Production.INFO: count ==3445 [2025-03-06 10:55:20] Production.ERROR: pbx CDR StartTime 2025-03-06 07:55:06 - End Time 2025-03-06 10:55:06 [2025-03-06 10:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 10:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620006', 'tblTempUsageDetail_20' ) start [2025-03-06 10:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620006', 'tblTempUsageDetail_20' ) end [2025-03-06 10:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620006', 'tblTempVendorCDR_20' ) start [2025-03-06 10:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620006', 'tblTempVendorCDR_20' ) end [2025-03-06 10:55:20] Production.INFO: ProcessCDR(1,14620006,1,1,2) [2025-03-06 10:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14620006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 10:55:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14620006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 10:55:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14620006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 10:55:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14620006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 10:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620006', 'tblTempUsageDetail_20' ) start [2025-03-06 10:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620006', 'tblTempUsageDetail_20' ) end [2025-03-06 10:55:25] Production.ERROR: pbx prc_insertCDR start [2025-03-06 10:55:25] Production.ERROR: pbx prc_insertCDR end [2025-03-06 10:55:25] Production.INFO: ==16827== Releasing lock... [2025-03-06 10:55:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 10:55:25] Production.INFO: 54.75 MB #Memory Used# [2025-03-06 10:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 07:56:06 [end_date_ymd] => 2025-03-06 10:56:06 [RateCDR] => 1 ) [2025-03-06 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-03-06 07:56:06' and `end` < '2025-03-06 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-03-06 10:56:19] Production.INFO: count ==3477 [2025-03-06 10:56:20] Production.ERROR: pbx CDR StartTime 2025-03-06 07:56:06 - End Time 2025-03-06 10:56:06 [2025-03-06 10:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 10:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620011', 'tblTempUsageDetail_20' ) start [2025-03-06 10:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620011', 'tblTempUsageDetail_20' ) end [2025-03-06 10:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620011', 'tblTempVendorCDR_20' ) start [2025-03-06 10:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620011', 'tblTempVendorCDR_20' ) end [2025-03-06 10:56:20] Production.INFO: ProcessCDR(1,14620011,1,1,2) [2025-03-06 10:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14620011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 10:56:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14620011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 10:56:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14620011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 10:56:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14620011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 10:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620011', 'tblTempUsageDetail_20' ) start [2025-03-06 10:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620011', 'tblTempUsageDetail_20' ) end [2025-03-06 10:56:26] Production.ERROR: pbx prc_insertCDR start [2025-03-06 10:56:26] Production.ERROR: pbx prc_insertCDR end [2025-03-06 10:56:26] Production.INFO: ==16899== Releasing lock... [2025-03-06 10:56:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 10:56:26] Production.INFO: 55.25 MB #Memory Used# [2025-03-06 10:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 07:57:06 [end_date_ymd] => 2025-03-06 10:57:06 [RateCDR] => 1 ) [2025-03-06 10: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-03-06 07:57:06' and `end` < '2025-03-06 10: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-03-06 10:57:19] Production.INFO: count ==3480 [2025-03-06 10:57:20] Production.ERROR: pbx CDR StartTime 2025-03-06 07:57:06 - End Time 2025-03-06 10:57:06 [2025-03-06 10:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 10:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620016', 'tblTempUsageDetail_20' ) start [2025-03-06 10:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620016', 'tblTempUsageDetail_20' ) end [2025-03-06 10:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620016', 'tblTempVendorCDR_20' ) start [2025-03-06 10:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620016', 'tblTempVendorCDR_20' ) end [2025-03-06 10:57:20] Production.INFO: ProcessCDR(1,14620016,1,1,2) [2025-03-06 10:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14620016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 10:57:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14620016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 10:57:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14620016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 10:57:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14620016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 10:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620016', 'tblTempUsageDetail_20' ) start [2025-03-06 10:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620016', 'tblTempUsageDetail_20' ) end [2025-03-06 10:57:25] Production.ERROR: pbx prc_insertCDR start [2025-03-06 10:57:25] Production.ERROR: pbx prc_insertCDR end [2025-03-06 10:57:25] Production.INFO: ==16973== Releasing lock... [2025-03-06 10:57:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 10:57:25] Production.INFO: 55.25 MB #Memory Used# [2025-03-06 10:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 07:58:05 [end_date_ymd] => 2025-03-06 10:58:05 [RateCDR] => 1 ) [2025-03-06 10:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 07:58:05' and `end` < '2025-03-06 10:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 10:58:18] Production.INFO: count ==3524 [2025-03-06 10:58:20] Production.ERROR: pbx CDR StartTime 2025-03-06 07:58:05 - End Time 2025-03-06 10:58:05 [2025-03-06 10:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 10:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620021', 'tblTempUsageDetail_20' ) start [2025-03-06 10:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620021', 'tblTempUsageDetail_20' ) end [2025-03-06 10:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620021', 'tblTempVendorCDR_20' ) start [2025-03-06 10:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620021', 'tblTempVendorCDR_20' ) end [2025-03-06 10:58:20] Production.INFO: ProcessCDR(1,14620021,1,1,2) [2025-03-06 10:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14620021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 10:58:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14620021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 10:58:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14620021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 10:58:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14620021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 10:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620021', 'tblTempUsageDetail_20' ) start [2025-03-06 10:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620021', 'tblTempUsageDetail_20' ) end [2025-03-06 10:58:25] Production.ERROR: pbx prc_insertCDR start [2025-03-06 10:58:26] Production.ERROR: pbx prc_insertCDR end [2025-03-06 10:58:26] Production.INFO: ==17043== Releasing lock... [2025-03-06 10:58:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 10:58:26] Production.INFO: 55 MB #Memory Used# [2025-03-06 10:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 07:59:06 [end_date_ymd] => 2025-03-06 10:59:06 [RateCDR] => 1 ) [2025-03-06 10: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-03-06 07:59:06' and `end` < '2025-03-06 10: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-03-06 10:59:19] Production.INFO: count ==3518 [2025-03-06 10:59:20] Production.ERROR: pbx CDR StartTime 2025-03-06 07:59:06 - End Time 2025-03-06 10:59:06 [2025-03-06 10:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 10:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620026', 'tblTempUsageDetail_20' ) start [2025-03-06 10:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620026', 'tblTempUsageDetail_20' ) end [2025-03-06 10:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620026', 'tblTempVendorCDR_20' ) start [2025-03-06 10:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620026', 'tblTempVendorCDR_20' ) end [2025-03-06 10:59:20] Production.INFO: ProcessCDR(1,14620026,1,1,2) [2025-03-06 10:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14620026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 10:59:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14620026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 10:59:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14620026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 10:59:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14620026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 10:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620026', 'tblTempUsageDetail_20' ) start [2025-03-06 10:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620026', 'tblTempUsageDetail_20' ) end [2025-03-06 10:59:25] Production.ERROR: pbx prc_insertCDR start [2025-03-06 10:59:25] Production.ERROR: pbx prc_insertCDR end [2025-03-06 10:59:25] Production.INFO: ==17119== Releasing lock... [2025-03-06 10:59:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 10:59:25] Production.INFO: 54.5 MB #Memory Used# [2025-03-06 11:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 08:00:06 [end_date_ymd] => 2025-03-06 11:00:06 [RateCDR] => 1 ) [2025-03-06 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-03-06 08:00:06' and `end` < '2025-03-06 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-03-06 11:00:19] Production.INFO: count ==3518 [2025-03-06 11:00:20] Production.ERROR: pbx CDR StartTime 2025-03-06 08:00:06 - End Time 2025-03-06 11:00:06 [2025-03-06 11:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 11:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620032', 'tblTempUsageDetail_20' ) start [2025-03-06 11:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620032', 'tblTempUsageDetail_20' ) end [2025-03-06 11:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620032', 'tblTempVendorCDR_20' ) start [2025-03-06 11:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620032', 'tblTempVendorCDR_20' ) end [2025-03-06 11:00:20] Production.INFO: ProcessCDR(1,14620032,1,1,2) [2025-03-06 11:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14620032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 11:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14620032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 11:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14620032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 11:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14620032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 11:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620032', 'tblTempUsageDetail_20' ) start [2025-03-06 11:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620032', 'tblTempUsageDetail_20' ) end [2025-03-06 11:00:25] Production.ERROR: pbx prc_insertCDR start [2025-03-06 11:00:25] Production.ERROR: pbx prc_insertCDR end [2025-03-06 11:00:25] Production.INFO: ==17194== Releasing lock... [2025-03-06 11:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 11:00:25] Production.INFO: 54.5 MB #Memory Used# [2025-03-06 11:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 08:01:06 [end_date_ymd] => 2025-03-06 11:01:06 [RateCDR] => 1 ) [2025-03-06 11: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-03-06 08:01:06' and `end` < '2025-03-06 11: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-03-06 11:01:19] Production.INFO: count ==3558 [2025-03-06 11:01:20] Production.ERROR: pbx CDR StartTime 2025-03-06 08:01:06 - End Time 2025-03-06 11:01:06 [2025-03-06 11:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 11:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620037', 'tblTempUsageDetail_20' ) start [2025-03-06 11:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620037', 'tblTempUsageDetail_20' ) end [2025-03-06 11:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620037', 'tblTempVendorCDR_20' ) start [2025-03-06 11:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620037', 'tblTempVendorCDR_20' ) end [2025-03-06 11:01:20] Production.INFO: ProcessCDR(1,14620037,1,1,2) [2025-03-06 11:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14620037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 11:01:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14620037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 11:01:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14620037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 11:01:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14620037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 11:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620037', 'tblTempUsageDetail_20' ) start [2025-03-06 11:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620037', 'tblTempUsageDetail_20' ) end [2025-03-06 11:01:25] Production.ERROR: pbx prc_insertCDR start [2025-03-06 11:01:25] Production.ERROR: pbx prc_insertCDR end [2025-03-06 11:01:25] Production.INFO: ==17282== Releasing lock... [2025-03-06 11:01:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 11:01:25] Production.INFO: 54.5 MB #Memory Used# [2025-03-06 11:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 08:02:05 [end_date_ymd] => 2025-03-06 11:02:05 [RateCDR] => 1 ) [2025-03-06 11:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 08:02:05' and `end` < '2025-03-06 11:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 11:02:18] Production.INFO: count ==3577 [2025-03-06 11:02:20] Production.ERROR: pbx CDR StartTime 2025-03-06 08:02:05 - End Time 2025-03-06 11:02:05 [2025-03-06 11:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 11:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620042', 'tblTempUsageDetail_20' ) start [2025-03-06 11:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620042', 'tblTempUsageDetail_20' ) end [2025-03-06 11:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620042', 'tblTempVendorCDR_20' ) start [2025-03-06 11:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620042', 'tblTempVendorCDR_20' ) end [2025-03-06 11:02:20] Production.INFO: ProcessCDR(1,14620042,1,1,2) [2025-03-06 11:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14620042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 11:02:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14620042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 11:02:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14620042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 11:02:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14620042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 11:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620042', 'tblTempUsageDetail_20' ) start [2025-03-06 11:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620042', 'tblTempUsageDetail_20' ) end [2025-03-06 11:02:25] Production.ERROR: pbx prc_insertCDR start [2025-03-06 11:02:25] Production.ERROR: pbx prc_insertCDR end [2025-03-06 11:02:25] Production.INFO: ==17438== Releasing lock... [2025-03-06 11:02:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 11:02:25] Production.INFO: 55.5 MB #Memory Used# [2025-03-06 11:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 08:03:06 [end_date_ymd] => 2025-03-06 11:03:06 [RateCDR] => 1 ) [2025-03-06 11:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 08:03:06' and `end` < '2025-03-06 11:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 11:03:19] Production.INFO: count ==3585 [2025-03-06 11:03:20] Production.ERROR: pbx CDR StartTime 2025-03-06 08:03:06 - End Time 2025-03-06 11:03:06 [2025-03-06 11:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 11:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620047', 'tblTempUsageDetail_20' ) start [2025-03-06 11:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620047', 'tblTempUsageDetail_20' ) end [2025-03-06 11:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620047', 'tblTempVendorCDR_20' ) start [2025-03-06 11:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620047', 'tblTempVendorCDR_20' ) end [2025-03-06 11:03:20] Production.INFO: ProcessCDR(1,14620047,1,1,2) [2025-03-06 11:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14620047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 11:03:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14620047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 11:03:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14620047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 11:03:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14620047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 11:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620047', 'tblTempUsageDetail_20' ) start [2025-03-06 11:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620047', 'tblTempUsageDetail_20' ) end [2025-03-06 11:03:25] Production.ERROR: pbx prc_insertCDR start [2025-03-06 11:03:25] Production.ERROR: pbx prc_insertCDR end [2025-03-06 11:03:25] Production.INFO: ==17511== Releasing lock... [2025-03-06 11:03:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 11:03:25] Production.INFO: 55.5 MB #Memory Used# [2025-03-06 11:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 08:04:06 [end_date_ymd] => 2025-03-06 11:04:06 [RateCDR] => 1 ) [2025-03-06 11: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-03-06 08:04:06' and `end` < '2025-03-06 11: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-03-06 11:04:19] Production.INFO: count ==3596 [2025-03-06 11:04:21] Production.ERROR: pbx CDR StartTime 2025-03-06 08:04:06 - End Time 2025-03-06 11:04:06 [2025-03-06 11:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 11:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620052', 'tblTempUsageDetail_20' ) start [2025-03-06 11:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620052', 'tblTempUsageDetail_20' ) end [2025-03-06 11:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620052', 'tblTempVendorCDR_20' ) start [2025-03-06 11:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620052', 'tblTempVendorCDR_20' ) end [2025-03-06 11:04:21] Production.INFO: ProcessCDR(1,14620052,1,1,2) [2025-03-06 11:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14620052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 11:04:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14620052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 11:04:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14620052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 11:04:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14620052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 11:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620052', 'tblTempUsageDetail_20' ) start [2025-03-06 11:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620052', 'tblTempUsageDetail_20' ) end [2025-03-06 11:04:26] Production.ERROR: pbx prc_insertCDR start [2025-03-06 11:04:26] Production.ERROR: pbx prc_insertCDR end [2025-03-06 11:04:26] Production.INFO: ==17584== Releasing lock... [2025-03-06 11:04:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 11:04:26] Production.INFO: 55.75 MB #Memory Used# [2025-03-06 11:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 08:05:06 [end_date_ymd] => 2025-03-06 11:05:06 [RateCDR] => 1 ) [2025-03-06 11:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 08:05:06' and `end` < '2025-03-06 11:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 11:05:19] Production.INFO: count ==3614 [2025-03-06 11:05:20] Production.ERROR: pbx CDR StartTime 2025-03-06 08:05:06 - End Time 2025-03-06 11:05:06 [2025-03-06 11:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 11:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620057', 'tblTempUsageDetail_20' ) start [2025-03-06 11:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620057', 'tblTempUsageDetail_20' ) end [2025-03-06 11:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620057', 'tblTempVendorCDR_20' ) start [2025-03-06 11:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620057', 'tblTempVendorCDR_20' ) end [2025-03-06 11:05:20] Production.INFO: ProcessCDR(1,14620057,1,1,2) [2025-03-06 11:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14620057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 11:05:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14620057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 11:05:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14620057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 11:05:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14620057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 11:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620057', 'tblTempUsageDetail_20' ) start [2025-03-06 11:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620057', 'tblTempUsageDetail_20' ) end [2025-03-06 11:05:26] Production.ERROR: pbx prc_insertCDR start [2025-03-06 11:05:26] Production.ERROR: pbx prc_insertCDR end [2025-03-06 11:05:26] Production.INFO: ==17737== Releasing lock... [2025-03-06 11:05:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 11:05:26] Production.INFO: 55.5 MB #Memory Used# [2025-03-06 11:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 08:06:06 [end_date_ymd] => 2025-03-06 11:06:06 [RateCDR] => 1 ) [2025-03-06 11: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-03-06 08:06:06' and `end` < '2025-03-06 11: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-03-06 11:06:18] Production.INFO: count ==3642 [2025-03-06 11:06:20] Production.ERROR: pbx CDR StartTime 2025-03-06 08:06:06 - End Time 2025-03-06 11:06:06 [2025-03-06 11:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 11:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620062', 'tblTempUsageDetail_20' ) start [2025-03-06 11:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620062', 'tblTempUsageDetail_20' ) end [2025-03-06 11:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620062', 'tblTempVendorCDR_20' ) start [2025-03-06 11:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620062', 'tblTempVendorCDR_20' ) end [2025-03-06 11:06:20] Production.INFO: ProcessCDR(1,14620062,1,1,2) [2025-03-06 11:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14620062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 11:06:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14620062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 11:06:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14620062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 11:06:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14620062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 11:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620062', 'tblTempUsageDetail_20' ) start [2025-03-06 11:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620062', 'tblTempUsageDetail_20' ) end [2025-03-06 11:06:25] Production.ERROR: pbx prc_insertCDR start [2025-03-06 11:06:25] Production.ERROR: pbx prc_insertCDR end [2025-03-06 11:06:25] Production.INFO: ==17847== Releasing lock... [2025-03-06 11:06:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 11:06:25] Production.INFO: 56.25 MB #Memory Used# [2025-03-06 11:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 08:07:05 [end_date_ymd] => 2025-03-06 11:07:05 [RateCDR] => 1 ) [2025-03-06 11:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 08:07:05' and `end` < '2025-03-06 11:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 11:07:20] Production.INFO: count ==3660 [2025-03-06 11:07:21] Production.ERROR: pbx CDR StartTime 2025-03-06 08:07:05 - End Time 2025-03-06 11:07:05 [2025-03-06 11:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 11:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620067', 'tblTempUsageDetail_20' ) start [2025-03-06 11:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620067', 'tblTempUsageDetail_20' ) end [2025-03-06 11:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620067', 'tblTempVendorCDR_20' ) start [2025-03-06 11:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620067', 'tblTempVendorCDR_20' ) end [2025-03-06 11:07:21] Production.INFO: ProcessCDR(1,14620067,1,1,2) [2025-03-06 11:07:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14620067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 11:07:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14620067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 11:07:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14620067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 11:07:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14620067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 11:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620067', 'tblTempUsageDetail_20' ) start [2025-03-06 11:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620067', 'tblTempUsageDetail_20' ) end [2025-03-06 11:07:26] Production.ERROR: pbx prc_insertCDR start [2025-03-06 11:07:26] Production.ERROR: pbx prc_insertCDR end [2025-03-06 11:07:26] Production.INFO: ==17920== Releasing lock... [2025-03-06 11:07:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 11:07:26] Production.INFO: 56 MB #Memory Used# [2025-03-06 11:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 08:08:06 [end_date_ymd] => 2025-03-06 11:08:06 [RateCDR] => 1 ) [2025-03-06 11: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-03-06 08:08:06' and `end` < '2025-03-06 11: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-03-06 11:08:18] Production.INFO: count ==3673 [2025-03-06 11:08:20] Production.ERROR: pbx CDR StartTime 2025-03-06 08:08:06 - End Time 2025-03-06 11:08:06 [2025-03-06 11:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 11:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620072', 'tblTempUsageDetail_20' ) start [2025-03-06 11:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620072', 'tblTempUsageDetail_20' ) end [2025-03-06 11:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620072', 'tblTempVendorCDR_20' ) start [2025-03-06 11:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620072', 'tblTempVendorCDR_20' ) end [2025-03-06 11:08:20] Production.INFO: ProcessCDR(1,14620072,1,1,2) [2025-03-06 11:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14620072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 11:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14620072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 11:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14620072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 11:08:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14620072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 11:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620072', 'tblTempUsageDetail_20' ) start [2025-03-06 11:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620072', 'tblTempUsageDetail_20' ) end [2025-03-06 11:08:25] Production.ERROR: pbx prc_insertCDR start [2025-03-06 11:08:25] Production.ERROR: pbx prc_insertCDR end [2025-03-06 11:08:25] Production.INFO: ==18031== Releasing lock... [2025-03-06 11:08:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 11:08:25] Production.INFO: 56.25 MB #Memory Used# [2025-03-06 11:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 08:09:05 [end_date_ymd] => 2025-03-06 11:09:05 [RateCDR] => 1 ) [2025-03-06 11:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 08:09:05' and `end` < '2025-03-06 11:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 11:09:18] Production.INFO: count ==3678 [2025-03-06 11:09:20] Production.ERROR: pbx CDR StartTime 2025-03-06 08:09:05 - End Time 2025-03-06 11:09:05 [2025-03-06 11:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 11:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620077', 'tblTempUsageDetail_20' ) start [2025-03-06 11:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620077', 'tblTempUsageDetail_20' ) end [2025-03-06 11:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620077', 'tblTempVendorCDR_20' ) start [2025-03-06 11:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620077', 'tblTempVendorCDR_20' ) end [2025-03-06 11:09:20] Production.INFO: ProcessCDR(1,14620077,1,1,2) [2025-03-06 11:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14620077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 11:09:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14620077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 11:09:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14620077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 11:09:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14620077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 11:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620077', 'tblTempUsageDetail_20' ) start [2025-03-06 11:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620077', 'tblTempUsageDetail_20' ) end [2025-03-06 11:09:25] Production.ERROR: pbx prc_insertCDR start [2025-03-06 11:09:25] Production.ERROR: pbx prc_insertCDR end [2025-03-06 11:09:25] Production.INFO: ==18141== Releasing lock... [2025-03-06 11:09:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 11:09:25] Production.INFO: 55.5 MB #Memory Used# [2025-03-06 11:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 08:10:05 [end_date_ymd] => 2025-03-06 11:10:05 [RateCDR] => 1 ) [2025-03-06 11:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 08:10:05' and `end` < '2025-03-06 11:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 11:10:18] Production.INFO: count ==3677 [2025-03-06 11:10:20] Production.ERROR: pbx CDR StartTime 2025-03-06 08:10:05 - End Time 2025-03-06 11:10:05 [2025-03-06 11:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 11:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620083', 'tblTempUsageDetail_20' ) start [2025-03-06 11:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620083', 'tblTempUsageDetail_20' ) end [2025-03-06 11:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620083', 'tblTempVendorCDR_20' ) start [2025-03-06 11:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620083', 'tblTempVendorCDR_20' ) end [2025-03-06 11:10:20] Production.INFO: ProcessCDR(1,14620083,1,1,2) [2025-03-06 11:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14620083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 11:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14620083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 11:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14620083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 11:10:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14620083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 11:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620083', 'tblTempUsageDetail_20' ) start [2025-03-06 11:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620083', 'tblTempUsageDetail_20' ) end [2025-03-06 11:10:25] Production.ERROR: pbx prc_insertCDR start [2025-03-06 11:10:25] Production.ERROR: pbx prc_insertCDR end [2025-03-06 11:10:25] Production.INFO: ==18213== Releasing lock... [2025-03-06 11:10:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 11:10:25] Production.INFO: 56 MB #Memory Used# [2025-03-06 11:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 08:11:06 [end_date_ymd] => 2025-03-06 11:11:06 [RateCDR] => 1 ) [2025-03-06 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-03-06 08:11:06' and `end` < '2025-03-06 11: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-03-06 11:11:19] Production.INFO: count ==3758 [2025-03-06 11:11:21] Production.ERROR: pbx CDR StartTime 2025-03-06 08:11:06 - End Time 2025-03-06 11:11:06 [2025-03-06 11:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 11:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620088', 'tblTempUsageDetail_20' ) start [2025-03-06 11:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620088', 'tblTempUsageDetail_20' ) end [2025-03-06 11:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620088', 'tblTempVendorCDR_20' ) start [2025-03-06 11:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620088', 'tblTempVendorCDR_20' ) end [2025-03-06 11:11:21] Production.INFO: ProcessCDR(1,14620088,1,1,2) [2025-03-06 11:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14620088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 11:11:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14620088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 11:11:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14620088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 11:11:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14620088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 11:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620088', 'tblTempUsageDetail_20' ) start [2025-03-06 11:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620088', 'tblTempUsageDetail_20' ) end [2025-03-06 11:11:26] Production.ERROR: pbx prc_insertCDR start [2025-03-06 11:11:26] Production.ERROR: pbx prc_insertCDR end [2025-03-06 11:11:26] Production.INFO: ==18296== Releasing lock... [2025-03-06 11:11:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 11:11:26] Production.INFO: 56.5 MB #Memory Used# [2025-03-06 11:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 08:12:05 [end_date_ymd] => 2025-03-06 11:12:05 [RateCDR] => 1 ) [2025-03-06 11:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 08:12:05' and `end` < '2025-03-06 11:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 11:12:18] Production.INFO: count ==3769 [2025-03-06 11:12:19] Production.ERROR: pbx CDR StartTime 2025-03-06 08:12:05 - End Time 2025-03-06 11:12:05 [2025-03-06 11:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 11:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620093', 'tblTempUsageDetail_20' ) start [2025-03-06 11:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620093', 'tblTempUsageDetail_20' ) end [2025-03-06 11:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620093', 'tblTempVendorCDR_20' ) start [2025-03-06 11:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620093', 'tblTempVendorCDR_20' ) end [2025-03-06 11:12:20] Production.INFO: ProcessCDR(1,14620093,1,1,2) [2025-03-06 11:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14620093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 11:12:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14620093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 11:12:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14620093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 11:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14620093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 11:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620093', 'tblTempUsageDetail_20' ) start [2025-03-06 11:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620093', 'tblTempUsageDetail_20' ) end [2025-03-06 11:12:25] Production.ERROR: pbx prc_insertCDR start [2025-03-06 11:12:25] Production.ERROR: pbx prc_insertCDR end [2025-03-06 11:12:25] Production.INFO: ==18448== Releasing lock... [2025-03-06 11:12:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 11:12:25] Production.INFO: 56.25 MB #Memory Used# [2025-03-06 11:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 08:13:06 [end_date_ymd] => 2025-03-06 11:13:06 [RateCDR] => 1 ) [2025-03-06 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-03-06 08:13:06' and `end` < '2025-03-06 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-03-06 11:13:19] Production.INFO: count ==3776 [2025-03-06 11:13:20] Production.ERROR: pbx CDR StartTime 2025-03-06 08:13:06 - End Time 2025-03-06 11:13:06 [2025-03-06 11:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 11:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620098', 'tblTempUsageDetail_20' ) start [2025-03-06 11:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620098', 'tblTempUsageDetail_20' ) end [2025-03-06 11:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620098', 'tblTempVendorCDR_20' ) start [2025-03-06 11:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620098', 'tblTempVendorCDR_20' ) end [2025-03-06 11:13:20] Production.INFO: ProcessCDR(1,14620098,1,1,2) [2025-03-06 11:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14620098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 11:13:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14620098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 11:13:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14620098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 11:13:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14620098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 11:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620098', 'tblTempUsageDetail_20' ) start [2025-03-06 11:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620098', 'tblTempUsageDetail_20' ) end [2025-03-06 11:13:26] Production.ERROR: pbx prc_insertCDR start [2025-03-06 11:13:26] Production.ERROR: pbx prc_insertCDR end [2025-03-06 11:13:26] Production.INFO: ==18520== Releasing lock... [2025-03-06 11:13:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 11:13:26] Production.INFO: 56.5 MB #Memory Used# [2025-03-06 11:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 08:14:05 [end_date_ymd] => 2025-03-06 11:14:05 [RateCDR] => 1 ) [2025-03-06 11:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 08:14:05' and `end` < '2025-03-06 11:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 11:14:18] Production.INFO: count ==3787 [2025-03-06 11:14:20] Production.ERROR: pbx CDR StartTime 2025-03-06 08:14:05 - End Time 2025-03-06 11:14:05 [2025-03-06 11:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 11:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620103', 'tblTempUsageDetail_20' ) start [2025-03-06 11:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620103', 'tblTempUsageDetail_20' ) end [2025-03-06 11:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620103', 'tblTempVendorCDR_20' ) start [2025-03-06 11:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620103', 'tblTempVendorCDR_20' ) end [2025-03-06 11:14:20] Production.INFO: ProcessCDR(1,14620103,1,1,2) [2025-03-06 11:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14620103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 11:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14620103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 11:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14620103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 11:14:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14620103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 11:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620103', 'tblTempUsageDetail_20' ) start [2025-03-06 11:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620103', 'tblTempUsageDetail_20' ) end [2025-03-06 11:14:25] Production.ERROR: pbx prc_insertCDR start [2025-03-06 11:14:25] Production.ERROR: pbx prc_insertCDR end [2025-03-06 11:14:25] Production.INFO: ==18593== Releasing lock... [2025-03-06 11:14:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 11:14:25] Production.INFO: 56.5 MB #Memory Used# [2025-03-06 11:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 08:15:05 [end_date_ymd] => 2025-03-06 11:15:05 [RateCDR] => 1 ) [2025-03-06 11:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 08:15:05' and `end` < '2025-03-06 11:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 11:15:18] Production.INFO: count ==3790 [2025-03-06 11:15:20] Production.ERROR: pbx CDR StartTime 2025-03-06 08:15:05 - End Time 2025-03-06 11:15:05 [2025-03-06 11:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 11:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620108', 'tblTempUsageDetail_20' ) start [2025-03-06 11:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620108', 'tblTempUsageDetail_20' ) end [2025-03-06 11:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620108', 'tblTempVendorCDR_20' ) start [2025-03-06 11:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620108', 'tblTempVendorCDR_20' ) end [2025-03-06 11:15:20] Production.INFO: ProcessCDR(1,14620108,1,1,2) [2025-03-06 11:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14620108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 11:15:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14620108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 11:15:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14620108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 11:15:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14620108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 11:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620108', 'tblTempUsageDetail_20' ) start [2025-03-06 11:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620108', 'tblTempUsageDetail_20' ) end [2025-03-06 11:15:25] Production.ERROR: pbx prc_insertCDR start [2025-03-06 11:15:25] Production.ERROR: pbx prc_insertCDR end [2025-03-06 11:15:25] Production.INFO: ==18744== Releasing lock... [2025-03-06 11:15:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 11:15:25] Production.INFO: 56.25 MB #Memory Used# [2025-03-06 11:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 08:16:05 [end_date_ymd] => 2025-03-06 11:16:05 [RateCDR] => 1 ) [2025-03-06 11: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-03-06 08:16:05' and `end` < '2025-03-06 11: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-03-06 11:16:18] Production.INFO: count ==3806 [2025-03-06 11:16:19] Production.ERROR: pbx CDR StartTime 2025-03-06 08:16:05 - End Time 2025-03-06 11:16:05 [2025-03-06 11:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 11:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620113', 'tblTempUsageDetail_20' ) start [2025-03-06 11:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620113', 'tblTempUsageDetail_20' ) end [2025-03-06 11:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620113', 'tblTempVendorCDR_20' ) start [2025-03-06 11:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620113', 'tblTempVendorCDR_20' ) end [2025-03-06 11:16:19] Production.INFO: ProcessCDR(1,14620113,1,1,2) [2025-03-06 11:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14620113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 11:16:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14620113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 11:16:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14620113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 11:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14620113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 11:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620113', 'tblTempUsageDetail_20' ) start [2025-03-06 11:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620113', 'tblTempUsageDetail_20' ) end [2025-03-06 11:16:24] Production.ERROR: pbx prc_insertCDR start [2025-03-06 11:16:24] Production.ERROR: pbx prc_insertCDR end [2025-03-06 11:16:24] Production.INFO: ==18818== Releasing lock... [2025-03-06 11:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 11:16:24] Production.INFO: 56.5 MB #Memory Used# [2025-03-06 11:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 08:17:05 [end_date_ymd] => 2025-03-06 11:17:05 [RateCDR] => 1 ) [2025-03-06 11: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-03-06 08:17:05' and `end` < '2025-03-06 11: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-03-06 11:17:18] Production.INFO: count ==3810 [2025-03-06 11:17:19] Production.ERROR: pbx CDR StartTime 2025-03-06 08:17:05 - End Time 2025-03-06 11:17:05 [2025-03-06 11:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 11:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620118', 'tblTempUsageDetail_20' ) start [2025-03-06 11:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620118', 'tblTempUsageDetail_20' ) end [2025-03-06 11:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620118', 'tblTempVendorCDR_20' ) start [2025-03-06 11:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620118', 'tblTempVendorCDR_20' ) end [2025-03-06 11:17:20] Production.INFO: ProcessCDR(1,14620118,1,1,2) [2025-03-06 11:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14620118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 11:17:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14620118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 11:17:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14620118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 11:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14620118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 11:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620118', 'tblTempUsageDetail_20' ) start [2025-03-06 11:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620118', 'tblTempUsageDetail_20' ) end [2025-03-06 11:17:24] Production.ERROR: pbx prc_insertCDR start [2025-03-06 11:17:24] Production.ERROR: pbx prc_insertCDR end [2025-03-06 11:17:24] Production.INFO: ==18889== Releasing lock... [2025-03-06 11:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 11:17:24] Production.INFO: 56.5 MB #Memory Used# [2025-03-06 11:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 08:18:05 [end_date_ymd] => 2025-03-06 11:18:05 [RateCDR] => 1 ) [2025-03-06 11:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 08:18:05' and `end` < '2025-03-06 11:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 11:18:18] Production.INFO: count ==3806 [2025-03-06 11:18:19] Production.ERROR: pbx CDR StartTime 2025-03-06 08:18:05 - End Time 2025-03-06 11:18:05 [2025-03-06 11:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 11:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620123', 'tblTempUsageDetail_20' ) start [2025-03-06 11:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620123', 'tblTempUsageDetail_20' ) end [2025-03-06 11:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620123', 'tblTempVendorCDR_20' ) start [2025-03-06 11:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620123', 'tblTempVendorCDR_20' ) end [2025-03-06 11:18:19] Production.INFO: ProcessCDR(1,14620123,1,1,2) [2025-03-06 11:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14620123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 11:18:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14620123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 11:18:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14620123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 11:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14620123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 11:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620123', 'tblTempUsageDetail_20' ) start [2025-03-06 11:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620123', 'tblTempUsageDetail_20' ) end [2025-03-06 11:18:24] Production.ERROR: pbx prc_insertCDR start [2025-03-06 11:18:25] Production.ERROR: pbx prc_insertCDR end [2025-03-06 11:18:25] Production.INFO: ==18966== Releasing lock... [2025-03-06 11:18:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 11:18:25] Production.INFO: 57 MB #Memory Used# [2025-03-06 11:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 08:19:05 [end_date_ymd] => 2025-03-06 11:19:05 [RateCDR] => 1 ) [2025-03-06 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-03-06 08:19:05' and `end` < '2025-03-06 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-03-06 11:19:18] Production.INFO: count ==3827 [2025-03-06 11:19:20] Production.ERROR: pbx CDR StartTime 2025-03-06 08:19:05 - End Time 2025-03-06 11:19:05 [2025-03-06 11:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 11:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620128', 'tblTempUsageDetail_20' ) start [2025-03-06 11:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620128', 'tblTempUsageDetail_20' ) end [2025-03-06 11:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620128', 'tblTempVendorCDR_20' ) start [2025-03-06 11:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620128', 'tblTempVendorCDR_20' ) end [2025-03-06 11:19:20] Production.INFO: ProcessCDR(1,14620128,1,1,2) [2025-03-06 11:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14620128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 11:19:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14620128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 11:19:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14620128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 11:19:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14620128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 11:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620128', 'tblTempUsageDetail_20' ) start [2025-03-06 11:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620128', 'tblTempUsageDetail_20' ) end [2025-03-06 11:19:25] Production.ERROR: pbx prc_insertCDR start [2025-03-06 11:19:25] Production.ERROR: pbx prc_insertCDR end [2025-03-06 11:19:25] Production.INFO: ==19042== Releasing lock... [2025-03-06 11:19:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 11:19:25] Production.INFO: 56.5 MB #Memory Used# [2025-03-06 11:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 08:20:06 [end_date_ymd] => 2025-03-06 11:20:06 [RateCDR] => 1 ) [2025-03-06 11:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 08:20:06' and `end` < '2025-03-06 11:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 11:20:19] Production.INFO: count ==3847 [2025-03-06 11:20:20] Production.ERROR: pbx CDR StartTime 2025-03-06 08:20:06 - End Time 2025-03-06 11:20:06 [2025-03-06 11:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 11:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620134', 'tblTempUsageDetail_20' ) start [2025-03-06 11:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620134', 'tblTempUsageDetail_20' ) end [2025-03-06 11:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620134', 'tblTempVendorCDR_20' ) start [2025-03-06 11:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620134', 'tblTempVendorCDR_20' ) end [2025-03-06 11:20:21] Production.INFO: ProcessCDR(1,14620134,1,1,2) [2025-03-06 11:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14620134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 11:20:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14620134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 11:20:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14620134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 11:20:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14620134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 11:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620134', 'tblTempUsageDetail_20' ) start [2025-03-06 11:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620134', 'tblTempUsageDetail_20' ) end [2025-03-06 11:20:26] Production.ERROR: pbx prc_insertCDR start [2025-03-06 11:20:26] Production.ERROR: pbx prc_insertCDR end [2025-03-06 11:20:26] Production.INFO: ==19121== Releasing lock... [2025-03-06 11:20:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 11:20:26] Production.INFO: 57 MB #Memory Used# [2025-03-06 11:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 08:21:05 [end_date_ymd] => 2025-03-06 11:21:05 [RateCDR] => 1 ) [2025-03-06 11:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 08:21:05' and `end` < '2025-03-06 11:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 11:21:19] Production.INFO: count ==3922 [2025-03-06 11:21:20] Production.ERROR: pbx CDR StartTime 2025-03-06 08:21:05 - End Time 2025-03-06 11:21:05 [2025-03-06 11:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 11:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620139', 'tblTempUsageDetail_20' ) start [2025-03-06 11:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620139', 'tblTempUsageDetail_20' ) end [2025-03-06 11:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620139', 'tblTempVendorCDR_20' ) start [2025-03-06 11:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620139', 'tblTempVendorCDR_20' ) end [2025-03-06 11:21:20] Production.INFO: ProcessCDR(1,14620139,1,1,2) [2025-03-06 11:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14620139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 11:21:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14620139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 11:21:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14620139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 11:21:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14620139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 11:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620139', 'tblTempUsageDetail_20' ) start [2025-03-06 11:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620139', 'tblTempUsageDetail_20' ) end [2025-03-06 11:21:25] Production.ERROR: pbx prc_insertCDR start [2025-03-06 11:21:25] Production.ERROR: pbx prc_insertCDR end [2025-03-06 11:21:25] Production.INFO: ==19203== Releasing lock... [2025-03-06 11:21:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 11:21:25] Production.INFO: 57.25 MB #Memory Used# [2025-03-06 11:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 08:22:05 [end_date_ymd] => 2025-03-06 11:22:05 [RateCDR] => 1 ) [2025-03-06 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-03-06 08:22:05' and `end` < '2025-03-06 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-03-06 11:22:18] Production.INFO: count ==3928 [2025-03-06 11:22:19] Production.ERROR: pbx CDR StartTime 2025-03-06 08:22:05 - End Time 2025-03-06 11:22:05 [2025-03-06 11:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 11:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620144', 'tblTempUsageDetail_20' ) start [2025-03-06 11:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620144', 'tblTempUsageDetail_20' ) end [2025-03-06 11:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620144', 'tblTempVendorCDR_20' ) start [2025-03-06 11:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620144', 'tblTempVendorCDR_20' ) end [2025-03-06 11:22:19] Production.INFO: ProcessCDR(1,14620144,1,1,2) [2025-03-06 11:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14620144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 11:22:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14620144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 11:22:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14620144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 11:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14620144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 11:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620144', 'tblTempUsageDetail_20' ) start [2025-03-06 11:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620144', 'tblTempUsageDetail_20' ) end [2025-03-06 11:22:24] Production.ERROR: pbx prc_insertCDR start [2025-03-06 11:22:24] Production.ERROR: pbx prc_insertCDR end [2025-03-06 11:22:25] Production.INFO: ==19315== Releasing lock... [2025-03-06 11:22:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 11:22:25] Production.INFO: 57.25 MB #Memory Used# [2025-03-06 11:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 08:23:05 [end_date_ymd] => 2025-03-06 11:23:05 [RateCDR] => 1 ) [2025-03-06 11:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 08:23:05' and `end` < '2025-03-06 11:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 11:23:18] Production.INFO: count ==3934 [2025-03-06 11:23:20] Production.ERROR: pbx CDR StartTime 2025-03-06 08:23:05 - End Time 2025-03-06 11:23:05 [2025-03-06 11:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 11:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620149', 'tblTempUsageDetail_20' ) start [2025-03-06 11:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620149', 'tblTempUsageDetail_20' ) end [2025-03-06 11:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620149', 'tblTempVendorCDR_20' ) start [2025-03-06 11:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620149', 'tblTempVendorCDR_20' ) end [2025-03-06 11:23:20] Production.INFO: ProcessCDR(1,14620149,1,1,2) [2025-03-06 11:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14620149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 11:23:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14620149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 11:23:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14620149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 11:23:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14620149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 11:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620149', 'tblTempUsageDetail_20' ) start [2025-03-06 11:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620149', 'tblTempUsageDetail_20' ) end [2025-03-06 11:23:25] Production.ERROR: pbx prc_insertCDR start [2025-03-06 11:23:25] Production.ERROR: pbx prc_insertCDR end [2025-03-06 11:23:25] Production.INFO: ==19386== Releasing lock... [2025-03-06 11:23:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 11:23:25] Production.INFO: 57.5 MB #Memory Used# [2025-03-06 11:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 08:24:05 [end_date_ymd] => 2025-03-06 11:24:05 [RateCDR] => 1 ) [2025-03-06 11:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 08:24:05' and `end` < '2025-03-06 11:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 11:24:19] Production.INFO: count ==3972 [2025-03-06 11:24:20] Production.ERROR: pbx CDR StartTime 2025-03-06 08:24:05 - End Time 2025-03-06 11:24:05 [2025-03-06 11:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 11:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620154', 'tblTempUsageDetail_20' ) start [2025-03-06 11:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620154', 'tblTempUsageDetail_20' ) end [2025-03-06 11:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620154', 'tblTempVendorCDR_20' ) start [2025-03-06 11:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620154', 'tblTempVendorCDR_20' ) end [2025-03-06 11:24:20] Production.INFO: ProcessCDR(1,14620154,1,1,2) [2025-03-06 11:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14620154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 11:24:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14620154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 11:24:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14620154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 11:24:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14620154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 11:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620154', 'tblTempUsageDetail_20' ) start [2025-03-06 11:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620154', 'tblTempUsageDetail_20' ) end [2025-03-06 11:24:26] Production.ERROR: pbx prc_insertCDR start [2025-03-06 11:24:26] Production.ERROR: pbx prc_insertCDR end [2025-03-06 11:24:26] Production.INFO: ==19459== Releasing lock... [2025-03-06 11:24:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 11:24:26] Production.INFO: 57.75 MB #Memory Used# [2025-03-06 11:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 08:25:05 [end_date_ymd] => 2025-03-06 11:25:05 [RateCDR] => 1 ) [2025-03-06 11:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 08:25:05' and `end` < '2025-03-06 11:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 11:25:18] Production.INFO: count ==4000 [2025-03-06 11:25:20] Production.ERROR: pbx CDR StartTime 2025-03-06 08:25:05 - End Time 2025-03-06 11:25:05 [2025-03-06 11:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 11:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620159', 'tblTempUsageDetail_20' ) start [2025-03-06 11:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620159', 'tblTempUsageDetail_20' ) end [2025-03-06 11:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620159', 'tblTempVendorCDR_20' ) start [2025-03-06 11:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620159', 'tblTempVendorCDR_20' ) end [2025-03-06 11:25:20] Production.INFO: ProcessCDR(1,14620159,1,1,2) [2025-03-06 11:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14620159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 11:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14620159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 11:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14620159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 11:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14620159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 11:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620159', 'tblTempUsageDetail_20' ) start [2025-03-06 11:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620159', 'tblTempUsageDetail_20' ) end [2025-03-06 11:25:25] Production.ERROR: pbx prc_insertCDR start [2025-03-06 11:25:26] Production.ERROR: pbx prc_insertCDR end [2025-03-06 11:25:26] Production.INFO: ==19534== Releasing lock... [2025-03-06 11:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 11:25:26] Production.INFO: 58 MB #Memory Used# [2025-03-06 11:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 08:26:05 [end_date_ymd] => 2025-03-06 11:26:05 [RateCDR] => 1 ) [2025-03-06 11:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 08:26:05' and `end` < '2025-03-06 11:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 11:26:18] Production.INFO: count ==4011 [2025-03-06 11:26:20] Production.ERROR: pbx CDR StartTime 2025-03-06 08:26:05 - End Time 2025-03-06 11:26:05 [2025-03-06 11:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 11:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620164', 'tblTempUsageDetail_20' ) start [2025-03-06 11:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620164', 'tblTempUsageDetail_20' ) end [2025-03-06 11:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620164', 'tblTempVendorCDR_20' ) start [2025-03-06 11:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620164', 'tblTempVendorCDR_20' ) end [2025-03-06 11:26:20] Production.INFO: ProcessCDR(1,14620164,1,1,2) [2025-03-06 11:26:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14620164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 11:26:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14620164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 11:26:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14620164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 11:26:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14620164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 11:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620164', 'tblTempUsageDetail_20' ) start [2025-03-06 11:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620164', 'tblTempUsageDetail_20' ) end [2025-03-06 11:26:25] Production.ERROR: pbx prc_insertCDR start [2025-03-06 11:26:25] Production.ERROR: pbx prc_insertCDR end [2025-03-06 11:26:25] Production.INFO: ==19605== Releasing lock... [2025-03-06 11:26:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 11:26:25] Production.INFO: 58 MB #Memory Used# [2025-03-06 11:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 08:27:05 [end_date_ymd] => 2025-03-06 11:27:05 [RateCDR] => 1 ) [2025-03-06 11:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 08:27:05' and `end` < '2025-03-06 11:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 11:27:18] Production.INFO: count ==4016 [2025-03-06 11:27:20] Production.ERROR: pbx CDR StartTime 2025-03-06 08:27:05 - End Time 2025-03-06 11:27:05 [2025-03-06 11:27:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 11:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620169', 'tblTempUsageDetail_20' ) start [2025-03-06 11:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620169', 'tblTempUsageDetail_20' ) end [2025-03-06 11:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620169', 'tblTempVendorCDR_20' ) start [2025-03-06 11:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620169', 'tblTempVendorCDR_20' ) end [2025-03-06 11:27:20] Production.INFO: ProcessCDR(1,14620169,1,1,2) [2025-03-06 11:27:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14620169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 11:27:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14620169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 11:27:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14620169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 11:27:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14620169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 11:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620169', 'tblTempUsageDetail_20' ) start [2025-03-06 11:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620169', 'tblTempUsageDetail_20' ) end [2025-03-06 11:27:25] Production.ERROR: pbx prc_insertCDR start [2025-03-06 11:27:25] Production.ERROR: pbx prc_insertCDR end [2025-03-06 11:27:25] Production.INFO: ==19675== Releasing lock... [2025-03-06 11:27:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 11:27:25] Production.INFO: 58.25 MB #Memory Used# [2025-03-06 11:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 08:28:06 [end_date_ymd] => 2025-03-06 11:28:06 [RateCDR] => 1 ) [2025-03-06 11:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 08:28:06' and `end` < '2025-03-06 11:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 11:28:19] Production.INFO: count ==4032 [2025-03-06 11:28:20] Production.ERROR: pbx CDR StartTime 2025-03-06 08:28:06 - End Time 2025-03-06 11:28:06 [2025-03-06 11:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 11:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620174', 'tblTempUsageDetail_20' ) start [2025-03-06 11:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620174', 'tblTempUsageDetail_20' ) end [2025-03-06 11:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620174', 'tblTempVendorCDR_20' ) start [2025-03-06 11:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620174', 'tblTempVendorCDR_20' ) end [2025-03-06 11:28:20] Production.INFO: ProcessCDR(1,14620174,1,1,2) [2025-03-06 11:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14620174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 11:28:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14620174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 11:28:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14620174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 11:28:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14620174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 11:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620174', 'tblTempUsageDetail_20' ) start [2025-03-06 11:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620174', 'tblTempUsageDetail_20' ) end [2025-03-06 11:28:25] Production.ERROR: pbx prc_insertCDR start [2025-03-06 11:28:25] Production.ERROR: pbx prc_insertCDR end [2025-03-06 11:28:25] Production.INFO: ==19753== Releasing lock... [2025-03-06 11:28:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 11:28:25] Production.INFO: 58 MB #Memory Used# [2025-03-06 11:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 08:29:05 [end_date_ymd] => 2025-03-06 11:29:05 [RateCDR] => 1 ) [2025-03-06 11:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 08:29:05' and `end` < '2025-03-06 11:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 11:29:18] Production.INFO: count ==4043 [2025-03-06 11:29:20] Production.ERROR: pbx CDR StartTime 2025-03-06 08:29:05 - End Time 2025-03-06 11:29:05 [2025-03-06 11:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 11:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620179', 'tblTempUsageDetail_20' ) start [2025-03-06 11:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620179', 'tblTempUsageDetail_20' ) end [2025-03-06 11:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620179', 'tblTempVendorCDR_20' ) start [2025-03-06 11:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620179', 'tblTempVendorCDR_20' ) end [2025-03-06 11:29:20] Production.INFO: ProcessCDR(1,14620179,1,1,2) [2025-03-06 11:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14620179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 11:29:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14620179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 11:29:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14620179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 11:29:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14620179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 11:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620179', 'tblTempUsageDetail_20' ) start [2025-03-06 11:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620179', 'tblTempUsageDetail_20' ) end [2025-03-06 11:29:25] Production.ERROR: pbx prc_insertCDR start [2025-03-06 11:29:25] Production.ERROR: pbx prc_insertCDR end [2025-03-06 11:29:26] Production.INFO: ==19828== Releasing lock... [2025-03-06 11:29:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 11:29:26] Production.INFO: 58.25 MB #Memory Used# [2025-03-06 11:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 08:30:06 [end_date_ymd] => 2025-03-06 11:30:06 [RateCDR] => 1 ) [2025-03-06 11:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 08:30:06' and `end` < '2025-03-06 11:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 11:30:20] Production.INFO: count ==4070 [2025-03-06 11:30:21] Production.ERROR: pbx CDR StartTime 2025-03-06 08:30:06 - End Time 2025-03-06 11:30:06 [2025-03-06 11:30:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 11:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620185', 'tblTempUsageDetail_20' ) start [2025-03-06 11:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620185', 'tblTempUsageDetail_20' ) end [2025-03-06 11:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620185', 'tblTempVendorCDR_20' ) start [2025-03-06 11:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620185', 'tblTempVendorCDR_20' ) end [2025-03-06 11:30:22] Production.INFO: ProcessCDR(1,14620185,1,1,2) [2025-03-06 11:30:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14620185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 11:30:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14620185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 11:30:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14620185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 11:30:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14620185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 11:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620185', 'tblTempUsageDetail_20' ) start [2025-03-06 11:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620185', 'tblTempUsageDetail_20' ) end [2025-03-06 11:30:27] Production.ERROR: pbx prc_insertCDR start [2025-03-06 11:30:27] Production.ERROR: pbx prc_insertCDR end [2025-03-06 11:30:27] Production.INFO: ==19903== Releasing lock... [2025-03-06 11:30:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 11:30:27] Production.INFO: 58.5 MB #Memory Used# [2025-03-06 11:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 08:31:05 [end_date_ymd] => 2025-03-06 11:31:05 [RateCDR] => 1 ) [2025-03-06 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-03-06 08:31:05' and `end` < '2025-03-06 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-03-06 11:31:19] Production.INFO: count ==4178 [2025-03-06 11:31:20] Production.ERROR: pbx CDR StartTime 2025-03-06 08:31:05 - End Time 2025-03-06 11:31:05 [2025-03-06 11:31:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 11:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620190', 'tblTempUsageDetail_20' ) start [2025-03-06 11:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620190', 'tblTempUsageDetail_20' ) end [2025-03-06 11:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620190', 'tblTempVendorCDR_20' ) start [2025-03-06 11:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620190', 'tblTempVendorCDR_20' ) end [2025-03-06 11:31:20] Production.INFO: ProcessCDR(1,14620190,1,1,2) [2025-03-06 11:31:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14620190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 11:31:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14620190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 11:31:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14620190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 11:31:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14620190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 11:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620190', 'tblTempUsageDetail_20' ) start [2025-03-06 11:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620190', 'tblTempUsageDetail_20' ) end [2025-03-06 11:31:26] Production.ERROR: pbx prc_insertCDR start [2025-03-06 11:31:26] Production.ERROR: pbx prc_insertCDR end [2025-03-06 11:31:26] Production.INFO: ==19989== Releasing lock... [2025-03-06 11:31:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 11:31:26] Production.INFO: 59.25 MB #Memory Used# [2025-03-06 11:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 08:32:06 [end_date_ymd] => 2025-03-06 11:32:06 [RateCDR] => 1 ) [2025-03-06 11: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-03-06 08:32:06' and `end` < '2025-03-06 11: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-03-06 11:32:19] Production.INFO: count ==4188 [2025-03-06 11:32:21] Production.ERROR: pbx CDR StartTime 2025-03-06 08:32:06 - End Time 2025-03-06 11:32:06 [2025-03-06 11:32:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 11:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620195', 'tblTempUsageDetail_20' ) start [2025-03-06 11:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620195', 'tblTempUsageDetail_20' ) end [2025-03-06 11:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620195', 'tblTempVendorCDR_20' ) start [2025-03-06 11:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620195', 'tblTempVendorCDR_20' ) end [2025-03-06 11:32:21] Production.INFO: ProcessCDR(1,14620195,1,1,2) [2025-03-06 11:32:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14620195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 11:32:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14620195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 11:32:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14620195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 11:32:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14620195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 11:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620195', 'tblTempUsageDetail_20' ) start [2025-03-06 11:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620195', 'tblTempUsageDetail_20' ) end [2025-03-06 11:32:26] Production.ERROR: pbx prc_insertCDR start [2025-03-06 11:32:26] Production.ERROR: pbx prc_insertCDR end [2025-03-06 11:32:26] Production.INFO: ==20093== Releasing lock... [2025-03-06 11:32:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 11:32:26] Production.INFO: 59.25 MB #Memory Used# [2025-03-06 11:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 08:33:05 [end_date_ymd] => 2025-03-06 11:33:05 [RateCDR] => 1 ) [2025-03-06 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-03-06 08:33:05' and `end` < '2025-03-06 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-03-06 11:33:18] Production.INFO: count ==4207 [2025-03-06 11:33:20] Production.ERROR: pbx CDR StartTime 2025-03-06 08:33:05 - End Time 2025-03-06 11:33:05 [2025-03-06 11:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 11:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620200', 'tblTempUsageDetail_20' ) start [2025-03-06 11:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620200', 'tblTempUsageDetail_20' ) end [2025-03-06 11:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620200', 'tblTempVendorCDR_20' ) start [2025-03-06 11:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620200', 'tblTempVendorCDR_20' ) end [2025-03-06 11:33:20] Production.INFO: ProcessCDR(1,14620200,1,1,2) [2025-03-06 11:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14620200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 11:33:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14620200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 11:33:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14620200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 11:33:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14620200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 11:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620200', 'tblTempUsageDetail_20' ) start [2025-03-06 11:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620200', 'tblTempUsageDetail_20' ) end [2025-03-06 11:33:25] Production.ERROR: pbx prc_insertCDR start [2025-03-06 11:33:26] Production.ERROR: pbx prc_insertCDR end [2025-03-06 11:33:26] Production.INFO: ==20199== Releasing lock... [2025-03-06 11:33:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 11:33:26] Production.INFO: 59.5 MB #Memory Used# [2025-03-06 11:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 08:34:05 [end_date_ymd] => 2025-03-06 11:34:05 [RateCDR] => 1 ) [2025-03-06 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-03-06 08:34:05' and `end` < '2025-03-06 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-03-06 11:34:18] Production.INFO: count ==4205 [2025-03-06 11:34:20] Production.ERROR: pbx CDR StartTime 2025-03-06 08:34:05 - End Time 2025-03-06 11:34:05 [2025-03-06 11:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 11:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620205', 'tblTempUsageDetail_20' ) start [2025-03-06 11:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620205', 'tblTempUsageDetail_20' ) end [2025-03-06 11:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620205', 'tblTempVendorCDR_20' ) start [2025-03-06 11:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620205', 'tblTempVendorCDR_20' ) end [2025-03-06 11:34:20] Production.INFO: ProcessCDR(1,14620205,1,1,2) [2025-03-06 11:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14620205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 11:34:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14620205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 11:34:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14620205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 11:34:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14620205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 11:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620205', 'tblTempUsageDetail_20' ) start [2025-03-06 11:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620205', 'tblTempUsageDetail_20' ) end [2025-03-06 11:34:25] Production.ERROR: pbx prc_insertCDR start [2025-03-06 11:34:25] Production.ERROR: pbx prc_insertCDR end [2025-03-06 11:34:25] Production.INFO: ==20309== Releasing lock... [2025-03-06 11:34:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 11:34:25] Production.INFO: 59.75 MB #Memory Used# [2025-03-06 11:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 08:35:05 [end_date_ymd] => 2025-03-06 11:35:05 [RateCDR] => 1 ) [2025-03-06 11: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-03-06 08:35:05' and `end` < '2025-03-06 11: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-03-06 11:35:19] Production.INFO: count ==4217 [2025-03-06 11:35:20] Production.ERROR: pbx CDR StartTime 2025-03-06 08:35:05 - End Time 2025-03-06 11:35:05 [2025-03-06 11:35:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 11:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620210', 'tblTempUsageDetail_20' ) start [2025-03-06 11:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620210', 'tblTempUsageDetail_20' ) end [2025-03-06 11:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620210', 'tblTempVendorCDR_20' ) start [2025-03-06 11:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620210', 'tblTempVendorCDR_20' ) end [2025-03-06 11:35:21] Production.INFO: ProcessCDR(1,14620210,1,1,2) [2025-03-06 11:35:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14620210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 11:35:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14620210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 11:35:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14620210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 11:35:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14620210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 11:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620210', 'tblTempUsageDetail_20' ) start [2025-03-06 11:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620210', 'tblTempUsageDetail_20' ) end [2025-03-06 11:35:26] Production.ERROR: pbx prc_insertCDR start [2025-03-06 11:35:26] Production.ERROR: pbx prc_insertCDR end [2025-03-06 11:35:26] Production.INFO: ==20415== Releasing lock... [2025-03-06 11:35:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 11:35:26] Production.INFO: 59.5 MB #Memory Used# [2025-03-06 11:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 08:36:05 [end_date_ymd] => 2025-03-06 11:36:05 [RateCDR] => 1 ) [2025-03-06 11:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 08:36:05' and `end` < '2025-03-06 11:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 11:36:18] Production.INFO: count ==4248 [2025-03-06 11:36:20] Production.ERROR: pbx CDR StartTime 2025-03-06 08:36:05 - End Time 2025-03-06 11:36:05 [2025-03-06 11:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 11:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620215', 'tblTempUsageDetail_20' ) start [2025-03-06 11:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620215', 'tblTempUsageDetail_20' ) end [2025-03-06 11:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620215', 'tblTempVendorCDR_20' ) start [2025-03-06 11:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620215', 'tblTempVendorCDR_20' ) end [2025-03-06 11:36:20] Production.INFO: ProcessCDR(1,14620215,1,1,2) [2025-03-06 11:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14620215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 11:36:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14620215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 11:36:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14620215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 11:36:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14620215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 11:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620215', 'tblTempUsageDetail_20' ) start [2025-03-06 11:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620215', 'tblTempUsageDetail_20' ) end [2025-03-06 11:36:25] Production.ERROR: pbx prc_insertCDR start [2025-03-06 11:36:25] Production.ERROR: pbx prc_insertCDR end [2025-03-06 11:36:25] Production.INFO: ==20524== Releasing lock... [2025-03-06 11:36:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 11:36:25] Production.INFO: 59.75 MB #Memory Used# [2025-03-06 11:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 08:37:06 [end_date_ymd] => 2025-03-06 11:37:06 [RateCDR] => 1 ) [2025-03-06 11:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 08:37:06' and `end` < '2025-03-06 11:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 11:37:19] Production.INFO: count ==4253 [2025-03-06 11:37:20] Production.ERROR: pbx CDR StartTime 2025-03-06 08:37:06 - End Time 2025-03-06 11:37:06 [2025-03-06 11:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 11:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620220', 'tblTempUsageDetail_20' ) start [2025-03-06 11:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620220', 'tblTempUsageDetail_20' ) end [2025-03-06 11:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620220', 'tblTempVendorCDR_20' ) start [2025-03-06 11:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620220', 'tblTempVendorCDR_20' ) end [2025-03-06 11:37:21] Production.INFO: ProcessCDR(1,14620220,1,1,2) [2025-03-06 11:37:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14620220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 11:37:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14620220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 11:37:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14620220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 11:37:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14620220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 11:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620220', 'tblTempUsageDetail_20' ) start [2025-03-06 11:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620220', 'tblTempUsageDetail_20' ) end [2025-03-06 11:37:26] Production.ERROR: pbx prc_insertCDR start [2025-03-06 11:37:26] Production.ERROR: pbx prc_insertCDR end [2025-03-06 11:37:26] Production.INFO: ==20668== Releasing lock... [2025-03-06 11:37:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 11:37:26] Production.INFO: 59.75 MB #Memory Used# [2025-03-06 11:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 08:38:06 [end_date_ymd] => 2025-03-06 11:38:06 [RateCDR] => 1 ) [2025-03-06 11: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-03-06 08:38:06' and `end` < '2025-03-06 11: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-03-06 11:38:19] Production.INFO: count ==4299 [2025-03-06 11:38:21] Production.ERROR: pbx CDR StartTime 2025-03-06 08:38:06 - End Time 2025-03-06 11:38:06 [2025-03-06 11:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 11:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620225', 'tblTempUsageDetail_20' ) start [2025-03-06 11:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620225', 'tblTempUsageDetail_20' ) end [2025-03-06 11:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620225', 'tblTempVendorCDR_20' ) start [2025-03-06 11:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620225', 'tblTempVendorCDR_20' ) end [2025-03-06 11:38:21] Production.INFO: ProcessCDR(1,14620225,1,1,2) [2025-03-06 11:38:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14620225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 11:38:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14620225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 11:38:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14620225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 11:38:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14620225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 11:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620225', 'tblTempUsageDetail_20' ) start [2025-03-06 11:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620225', 'tblTempUsageDetail_20' ) end [2025-03-06 11:38:26] Production.ERROR: pbx prc_insertCDR start [2025-03-06 11:38:26] Production.ERROR: pbx prc_insertCDR end [2025-03-06 11:38:26] Production.INFO: ==20777== Releasing lock... [2025-03-06 11:38:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 11:38:26] Production.INFO: 60.25 MB #Memory Used# [2025-03-06 11:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 08:39:05 [end_date_ymd] => 2025-03-06 11:39:05 [RateCDR] => 1 ) [2025-03-06 11:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 08:39:05' and `end` < '2025-03-06 11:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 11:39:18] Production.INFO: count ==4314 [2025-03-06 11:39:20] Production.ERROR: pbx CDR StartTime 2025-03-06 08:39:05 - End Time 2025-03-06 11:39:05 [2025-03-06 11:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 11:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620230', 'tblTempUsageDetail_20' ) start [2025-03-06 11:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620230', 'tblTempUsageDetail_20' ) end [2025-03-06 11:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620230', 'tblTempVendorCDR_20' ) start [2025-03-06 11:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620230', 'tblTempVendorCDR_20' ) end [2025-03-06 11:39:20] Production.INFO: ProcessCDR(1,14620230,1,1,2) [2025-03-06 11:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14620230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 11:39:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14620230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 11:39:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14620230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 11:39:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14620230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 11:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620230', 'tblTempUsageDetail_20' ) start [2025-03-06 11:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620230', 'tblTempUsageDetail_20' ) end [2025-03-06 11:39:25] Production.ERROR: pbx prc_insertCDR start [2025-03-06 11:39:25] Production.ERROR: pbx prc_insertCDR end [2025-03-06 11:39:25] Production.INFO: ==20885== Releasing lock... [2025-03-06 11:39:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 11:39:25] Production.INFO: 60.25 MB #Memory Used# [2025-03-06 11:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 08:40:06 [end_date_ymd] => 2025-03-06 11:40:06 [RateCDR] => 1 ) [2025-03-06 11:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 08:40:06' and `end` < '2025-03-06 11:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 11:40:19] Production.INFO: count ==4324 [2025-03-06 11:40:21] Production.ERROR: pbx CDR StartTime 2025-03-06 08:40:06 - End Time 2025-03-06 11:40:06 [2025-03-06 11:40:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 11:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620236', 'tblTempUsageDetail_20' ) start [2025-03-06 11:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620236', 'tblTempUsageDetail_20' ) end [2025-03-06 11:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620236', 'tblTempVendorCDR_20' ) start [2025-03-06 11:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620236', 'tblTempVendorCDR_20' ) end [2025-03-06 11:40:21] Production.INFO: ProcessCDR(1,14620236,1,1,2) [2025-03-06 11:40:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14620236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 11:40:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14620236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 11:40:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14620236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 11:40:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14620236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 11:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620236', 'tblTempUsageDetail_20' ) start [2025-03-06 11:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620236', 'tblTempUsageDetail_20' ) end [2025-03-06 11:40:26] Production.ERROR: pbx prc_insertCDR start [2025-03-06 11:40:26] Production.ERROR: pbx prc_insertCDR end [2025-03-06 11:40:26] Production.INFO: ==20993== Releasing lock... [2025-03-06 11:40:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 11:40:26] Production.INFO: 60.25 MB #Memory Used# [2025-03-06 11:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 08:41:05 [end_date_ymd] => 2025-03-06 11:41:05 [RateCDR] => 1 ) [2025-03-06 11:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 08:41:05' and `end` < '2025-03-06 11:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 11:41:18] Production.INFO: count ==4451 [2025-03-06 11:41:20] Production.ERROR: pbx CDR StartTime 2025-03-06 08:41:05 - End Time 2025-03-06 11:41:05 [2025-03-06 11:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 11:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620241', 'tblTempUsageDetail_20' ) start [2025-03-06 11:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620241', 'tblTempUsageDetail_20' ) end [2025-03-06 11:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620241', 'tblTempVendorCDR_20' ) start [2025-03-06 11:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620241', 'tblTempVendorCDR_20' ) end [2025-03-06 11:41:20] Production.INFO: ProcessCDR(1,14620241,1,1,2) [2025-03-06 11:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14620241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 11:41:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14620241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 11:41:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14620241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 11:41:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14620241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 11:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620241', 'tblTempUsageDetail_20' ) start [2025-03-06 11:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620241', 'tblTempUsageDetail_20' ) end [2025-03-06 11:41:25] Production.ERROR: pbx prc_insertCDR start [2025-03-06 11:41:25] Production.ERROR: pbx prc_insertCDR end [2025-03-06 11:41:25] Production.INFO: ==21104== Releasing lock... [2025-03-06 11:41:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 11:41:25] Production.INFO: 61.25 MB #Memory Used# [2025-03-06 11:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 08:42:06 [end_date_ymd] => 2025-03-06 11:42:06 [RateCDR] => 1 ) [2025-03-06 11: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-03-06 08:42:06' and `end` < '2025-03-06 11: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-03-06 11:42:19] Production.INFO: count ==4483 [2025-03-06 11:42:21] Production.ERROR: pbx CDR StartTime 2025-03-06 08:42:06 - End Time 2025-03-06 11:42:06 [2025-03-06 11:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 11:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620246', 'tblTempUsageDetail_20' ) start [2025-03-06 11:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620246', 'tblTempUsageDetail_20' ) end [2025-03-06 11:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620246', 'tblTempVendorCDR_20' ) start [2025-03-06 11:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620246', 'tblTempVendorCDR_20' ) end [2025-03-06 11:42:21] Production.INFO: ProcessCDR(1,14620246,1,1,2) [2025-03-06 11:42:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14620246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 11:42:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14620246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 11:42:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14620246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 11:42:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14620246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 11:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620246', 'tblTempUsageDetail_20' ) start [2025-03-06 11:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620246', 'tblTempUsageDetail_20' ) end [2025-03-06 11:42:26] Production.ERROR: pbx prc_insertCDR start [2025-03-06 11:42:26] Production.ERROR: pbx prc_insertCDR end [2025-03-06 11:42:26] Production.INFO: ==21205== Releasing lock... [2025-03-06 11:42:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 11:42:26] Production.INFO: 61.5 MB #Memory Used# [2025-03-06 11:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 08:43:05 [end_date_ymd] => 2025-03-06 11:43:05 [RateCDR] => 1 ) [2025-03-06 11:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 08:43:05' and `end` < '2025-03-06 11:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 11:43:18] Production.INFO: count ==4492 [2025-03-06 11:43:20] Production.ERROR: pbx CDR StartTime 2025-03-06 08:43:05 - End Time 2025-03-06 11:43:05 [2025-03-06 11:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 11:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620251', 'tblTempUsageDetail_20' ) start [2025-03-06 11:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620251', 'tblTempUsageDetail_20' ) end [2025-03-06 11:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620251', 'tblTempVendorCDR_20' ) start [2025-03-06 11:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620251', 'tblTempVendorCDR_20' ) end [2025-03-06 11:43:20] Production.INFO: ProcessCDR(1,14620251,1,1,2) [2025-03-06 11:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14620251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 11:43:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14620251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 11:43:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14620251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 11:43:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14620251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 11:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620251', 'tblTempUsageDetail_20' ) start [2025-03-06 11:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620251', 'tblTempUsageDetail_20' ) end [2025-03-06 11:43:25] Production.ERROR: pbx prc_insertCDR start [2025-03-06 11:43:25] Production.ERROR: pbx prc_insertCDR end [2025-03-06 11:43:26] Production.INFO: ==21312== Releasing lock... [2025-03-06 11:43:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 11:43:26] Production.INFO: 61.5 MB #Memory Used# [2025-03-06 11:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 08:44:05 [end_date_ymd] => 2025-03-06 11:44:05 [RateCDR] => 1 ) [2025-03-06 11: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-03-06 08:44:05' and `end` < '2025-03-06 11: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-03-06 11:44:18] Production.INFO: count ==4500 [2025-03-06 11:44:20] Production.ERROR: pbx CDR StartTime 2025-03-06 08:44:05 - End Time 2025-03-06 11:44:05 [2025-03-06 11:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 11:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620256', 'tblTempUsageDetail_20' ) start [2025-03-06 11:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620256', 'tblTempUsageDetail_20' ) end [2025-03-06 11:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620256', 'tblTempVendorCDR_20' ) start [2025-03-06 11:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620256', 'tblTempVendorCDR_20' ) end [2025-03-06 11:44:20] Production.INFO: ProcessCDR(1,14620256,1,1,2) [2025-03-06 11:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14620256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 11:44:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14620256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 11:44:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14620256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 11:44:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14620256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 11:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620256', 'tblTempUsageDetail_20' ) start [2025-03-06 11:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620256', 'tblTempUsageDetail_20' ) end [2025-03-06 11:44:25] Production.ERROR: pbx prc_insertCDR start [2025-03-06 11:44:25] Production.ERROR: pbx prc_insertCDR end [2025-03-06 11:44:25] Production.INFO: ==21425== Releasing lock... [2025-03-06 11:44:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 11:44:25] Production.INFO: 61.75 MB #Memory Used# [2025-03-06 11:45:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 08:45:04 [end_date_ymd] => 2025-03-06 11:45:04 [RateCDR] => 1 ) [2025-03-06 11: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-03-06 08:45:04' and `end` < '2025-03-06 11: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-03-06 11:45:17] Production.INFO: count ==4529 [2025-03-06 11:45:19] Production.ERROR: pbx CDR StartTime 2025-03-06 08:45:04 - End Time 2025-03-06 11:45:04 [2025-03-06 11:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 11:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620261', 'tblTempUsageDetail_20' ) start [2025-03-06 11:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620261', 'tblTempUsageDetail_20' ) end [2025-03-06 11:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620261', 'tblTempVendorCDR_20' ) start [2025-03-06 11:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620261', 'tblTempVendorCDR_20' ) end [2025-03-06 11:45:20] Production.INFO: ProcessCDR(1,14620261,1,1,2) [2025-03-06 11:45:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14620261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 11:45:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14620261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 11:45:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14620261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 11:45:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14620261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 11:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620261', 'tblTempUsageDetail_20' ) start [2025-03-06 11:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620261', 'tblTempUsageDetail_20' ) end [2025-03-06 11:45:25] Production.ERROR: pbx prc_insertCDR start [2025-03-06 11:45:25] Production.ERROR: pbx prc_insertCDR end [2025-03-06 11:45:25] Production.INFO: ==21528== Releasing lock... [2025-03-06 11:45:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 11:45:25] Production.INFO: 62 MB #Memory Used# [2025-03-06 11:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 08:46:05 [end_date_ymd] => 2025-03-06 11:46:05 [RateCDR] => 1 ) [2025-03-06 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-03-06 08:46:05' and `end` < '2025-03-06 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-03-06 11:46:19] Production.INFO: count ==4537 [2025-03-06 11:46:21] Production.ERROR: pbx CDR StartTime 2025-03-06 08:46:05 - End Time 2025-03-06 11:46:05 [2025-03-06 11:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 11:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620266', 'tblTempUsageDetail_20' ) start [2025-03-06 11:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620266', 'tblTempUsageDetail_20' ) end [2025-03-06 11:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620266', 'tblTempVendorCDR_20' ) start [2025-03-06 11:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620266', 'tblTempVendorCDR_20' ) end [2025-03-06 11:46:21] Production.INFO: ProcessCDR(1,14620266,1,1,2) [2025-03-06 11:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14620266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 11:46:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14620266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 11:46:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14620266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 11:46:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14620266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 11:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620266', 'tblTempUsageDetail_20' ) start [2025-03-06 11:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620266', 'tblTempUsageDetail_20' ) end [2025-03-06 11:46:26] Production.ERROR: pbx prc_insertCDR start [2025-03-06 11:46:26] Production.ERROR: pbx prc_insertCDR end [2025-03-06 11:46:26] Production.INFO: ==21628== Releasing lock... [2025-03-06 11:46:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 11:46:26] Production.INFO: 62 MB #Memory Used# [2025-03-06 11:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 08:47:05 [end_date_ymd] => 2025-03-06 11:47:05 [RateCDR] => 1 ) [2025-03-06 11:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 08:47:05' and `end` < '2025-03-06 11:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 11:47:18] Production.INFO: count ==4560 [2025-03-06 11:47:20] Production.ERROR: pbx CDR StartTime 2025-03-06 08:47:05 - End Time 2025-03-06 11:47:05 [2025-03-06 11:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 11:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620271', 'tblTempUsageDetail_20' ) start [2025-03-06 11:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620271', 'tblTempUsageDetail_20' ) end [2025-03-06 11:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620271', 'tblTempVendorCDR_20' ) start [2025-03-06 11:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620271', 'tblTempVendorCDR_20' ) end [2025-03-06 11:47:20] Production.INFO: ProcessCDR(1,14620271,1,1,2) [2025-03-06 11:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14620271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 11:47:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14620271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 11:47:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14620271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 11:47:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14620271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 11:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620271', 'tblTempUsageDetail_20' ) start [2025-03-06 11:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620271', 'tblTempUsageDetail_20' ) end [2025-03-06 11:47:25] Production.ERROR: pbx prc_insertCDR start [2025-03-06 11:47:25] Production.ERROR: pbx prc_insertCDR end [2025-03-06 11:47:25] Production.INFO: ==21701== Releasing lock... [2025-03-06 11:47:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 11:47:25] Production.INFO: 62.25 MB #Memory Used# [2025-03-06 11:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 08:48:06 [end_date_ymd] => 2025-03-06 11:48:06 [RateCDR] => 1 ) [2025-03-06 11: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-03-06 08:48:06' and `end` < '2025-03-06 11: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-03-06 11:48:19] Production.INFO: count ==4579 [2025-03-06 11:48:21] Production.ERROR: pbx CDR StartTime 2025-03-06 08:48:06 - End Time 2025-03-06 11:48:06 [2025-03-06 11:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 11:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620276', 'tblTempUsageDetail_20' ) start [2025-03-06 11:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620276', 'tblTempUsageDetail_20' ) end [2025-03-06 11:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620276', 'tblTempVendorCDR_20' ) start [2025-03-06 11:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620276', 'tblTempVendorCDR_20' ) end [2025-03-06 11:48:21] Production.INFO: ProcessCDR(1,14620276,1,1,2) [2025-03-06 11:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14620276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 11:48:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14620276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 11:48:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14620276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 11:48:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14620276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 11:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620276', 'tblTempUsageDetail_20' ) start [2025-03-06 11:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620276', 'tblTempUsageDetail_20' ) end [2025-03-06 11:48:27] Production.ERROR: pbx prc_insertCDR start [2025-03-06 11:48:27] Production.ERROR: pbx prc_insertCDR end [2025-03-06 11:48:27] Production.INFO: ==21774== Releasing lock... [2025-03-06 11:48:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 11:48:27] Production.INFO: 62.25 MB #Memory Used# [2025-03-06 11:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 08:49:05 [end_date_ymd] => 2025-03-06 11:49:05 [RateCDR] => 1 ) [2025-03-06 11: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-03-06 08:49:05' and `end` < '2025-03-06 11: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-03-06 11:49:19] Production.INFO: count ==4590 [2025-03-06 11:49:21] Production.ERROR: pbx CDR StartTime 2025-03-06 08:49:05 - End Time 2025-03-06 11:49:05 [2025-03-06 11:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 11:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620281', 'tblTempUsageDetail_20' ) start [2025-03-06 11:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620281', 'tblTempUsageDetail_20' ) end [2025-03-06 11:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620281', 'tblTempVendorCDR_20' ) start [2025-03-06 11:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620281', 'tblTempVendorCDR_20' ) end [2025-03-06 11:49:21] Production.INFO: ProcessCDR(1,14620281,1,1,2) [2025-03-06 11:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14620281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 11:49:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14620281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 11:49:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14620281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 11:49:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14620281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 11:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620281', 'tblTempUsageDetail_20' ) start [2025-03-06 11:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620281', 'tblTempUsageDetail_20' ) end [2025-03-06 11:49:26] Production.ERROR: pbx prc_insertCDR start [2025-03-06 11:49:26] Production.ERROR: pbx prc_insertCDR end [2025-03-06 11:49:27] Production.INFO: ==21849== Releasing lock... [2025-03-06 11:49:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 11:49:27] Production.INFO: 62.25 MB #Memory Used# [2025-03-06 11:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 08:50:07 [end_date_ymd] => 2025-03-06 11:50:07 [RateCDR] => 1 ) [2025-03-06 11:50: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-03-06 08:50:07' and `end` < '2025-03-06 11:50: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-03-06 11:50:20] Production.INFO: count ==4583 [2025-03-06 11:50:22] Production.ERROR: pbx CDR StartTime 2025-03-06 08:50:07 - End Time 2025-03-06 11:50:07 [2025-03-06 11:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 11:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620287', 'tblTempUsageDetail_20' ) start [2025-03-06 11:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620287', 'tblTempUsageDetail_20' ) end [2025-03-06 11:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620287', 'tblTempVendorCDR_20' ) start [2025-03-06 11:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620287', 'tblTempVendorCDR_20' ) end [2025-03-06 11:50:22] Production.INFO: ProcessCDR(1,14620287,1,1,2) [2025-03-06 11:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14620287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 11:50:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14620287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 11:50:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14620287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 11:50:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14620287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 11:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620287', 'tblTempUsageDetail_20' ) start [2025-03-06 11:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620287', 'tblTempUsageDetail_20' ) end [2025-03-06 11:50:27] Production.ERROR: pbx prc_insertCDR start [2025-03-06 11:50:27] Production.ERROR: pbx prc_insertCDR end [2025-03-06 11:50:27] Production.INFO: ==21927== Releasing lock... [2025-03-06 11:50:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 11:50:27] Production.INFO: 62.25 MB #Memory Used# [2025-03-06 11:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 08:51:05 [end_date_ymd] => 2025-03-06 11:51:05 [RateCDR] => 1 ) [2025-03-06 11:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 08:51:05' and `end` < '2025-03-06 11:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 11:51:18] Production.INFO: count ==4688 [2025-03-06 11:51:20] Production.ERROR: pbx CDR StartTime 2025-03-06 08:51:05 - End Time 2025-03-06 11:51:05 [2025-03-06 11:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 11:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620292', 'tblTempUsageDetail_20' ) start [2025-03-06 11:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620292', 'tblTempUsageDetail_20' ) end [2025-03-06 11:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620292', 'tblTempVendorCDR_20' ) start [2025-03-06 11:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620292', 'tblTempVendorCDR_20' ) end [2025-03-06 11:51:20] Production.INFO: ProcessCDR(1,14620292,1,1,2) [2025-03-06 11:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14620292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 11:51:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14620292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 11:51:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14620292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 11:51:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14620292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 11:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620292', 'tblTempUsageDetail_20' ) start [2025-03-06 11:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620292', 'tblTempUsageDetail_20' ) end [2025-03-06 11:51:25] Production.ERROR: pbx prc_insertCDR start [2025-03-06 11:51:25] Production.ERROR: pbx prc_insertCDR end [2025-03-06 11:51:25] Production.INFO: ==22002== Releasing lock... [2025-03-06 11:51:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 11:51:25] Production.INFO: 63 MB #Memory Used# [2025-03-06 11:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 08:52:06 [end_date_ymd] => 2025-03-06 11:52:06 [RateCDR] => 1 ) [2025-03-06 11: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-03-06 08:52:06' and `end` < '2025-03-06 11: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-03-06 11:52:19] Production.INFO: count ==4699 [2025-03-06 11:52:21] Production.ERROR: pbx CDR StartTime 2025-03-06 08:52:06 - End Time 2025-03-06 11:52:06 [2025-03-06 11:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 11:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620297', 'tblTempUsageDetail_20' ) start [2025-03-06 11:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620297', 'tblTempUsageDetail_20' ) end [2025-03-06 11:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620297', 'tblTempVendorCDR_20' ) start [2025-03-06 11:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620297', 'tblTempVendorCDR_20' ) end [2025-03-06 11:52:21] Production.INFO: ProcessCDR(1,14620297,1,1,2) [2025-03-06 11:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14620297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 11:52:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14620297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 11:52:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14620297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 11:52:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14620297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 11:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620297', 'tblTempUsageDetail_20' ) start [2025-03-06 11:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620297', 'tblTempUsageDetail_20' ) end [2025-03-06 11:52:26] Production.ERROR: pbx prc_insertCDR start [2025-03-06 11:52:26] Production.ERROR: pbx prc_insertCDR end [2025-03-06 11:52:26] Production.INFO: ==22075== Releasing lock... [2025-03-06 11:52:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 11:52:26] Production.INFO: 63.25 MB #Memory Used# [2025-03-06 11:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 08:53:05 [end_date_ymd] => 2025-03-06 11:53:05 [RateCDR] => 1 ) [2025-03-06 11:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 08:53:05' and `end` < '2025-03-06 11:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 11:53:18] Production.INFO: count ==4729 [2025-03-06 11:53:20] Production.ERROR: pbx CDR StartTime 2025-03-06 08:53:05 - End Time 2025-03-06 11:53:05 [2025-03-06 11:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 11:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620302', 'tblTempUsageDetail_20' ) start [2025-03-06 11:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620302', 'tblTempUsageDetail_20' ) end [2025-03-06 11:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620302', 'tblTempVendorCDR_20' ) start [2025-03-06 11:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620302', 'tblTempVendorCDR_20' ) end [2025-03-06 11:53:21] Production.INFO: ProcessCDR(1,14620302,1,1,2) [2025-03-06 11:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14620302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 11:53:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14620302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 11:53:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14620302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 11:53:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14620302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 11:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620302', 'tblTempUsageDetail_20' ) start [2025-03-06 11:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620302', 'tblTempUsageDetail_20' ) end [2025-03-06 11:53:26] Production.ERROR: pbx prc_insertCDR start [2025-03-06 11:53:26] Production.ERROR: pbx prc_insertCDR end [2025-03-06 11:53:26] Production.INFO: ==22192== Releasing lock... [2025-03-06 11:53:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 11:53:26] Production.INFO: 63.5 MB #Memory Used# [2025-03-06 11:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 08:54:05 [end_date_ymd] => 2025-03-06 11:54:05 [RateCDR] => 1 ) [2025-03-06 11:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 08:54:05' and `end` < '2025-03-06 11:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 11:54:18] Production.INFO: count ==4753 [2025-03-06 11:54:20] Production.ERROR: pbx CDR StartTime 2025-03-06 08:54:05 - End Time 2025-03-06 11:54:05 [2025-03-06 11:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 11:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620307', 'tblTempUsageDetail_20' ) start [2025-03-06 11:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620307', 'tblTempUsageDetail_20' ) end [2025-03-06 11:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620307', 'tblTempVendorCDR_20' ) start [2025-03-06 11:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620307', 'tblTempVendorCDR_20' ) end [2025-03-06 11:54:20] Production.INFO: ProcessCDR(1,14620307,1,1,2) [2025-03-06 11:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14620307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 11:54:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14620307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 11:54:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14620307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 11:54:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14620307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 11:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620307', 'tblTempUsageDetail_20' ) start [2025-03-06 11:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620307', 'tblTempUsageDetail_20' ) end [2025-03-06 11:54:25] Production.ERROR: pbx prc_insertCDR start [2025-03-06 11:54:25] Production.ERROR: pbx prc_insertCDR end [2025-03-06 11:54:25] Production.INFO: ==22269== Releasing lock... [2025-03-06 11:54:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 11:54:25] Production.INFO: 63.5 MB #Memory Used# [2025-03-06 11:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 08:55:05 [end_date_ymd] => 2025-03-06 11:55:05 [RateCDR] => 1 ) [2025-03-06 11:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 08:55:05' and `end` < '2025-03-06 11:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 11:55:19] Production.INFO: count ==4779 [2025-03-06 11:55:21] Production.ERROR: pbx CDR StartTime 2025-03-06 08:55:05 - End Time 2025-03-06 11:55:05 [2025-03-06 11:55:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 11:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620312', 'tblTempUsageDetail_20' ) start [2025-03-06 11:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620312', 'tblTempUsageDetail_20' ) end [2025-03-06 11:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620312', 'tblTempVendorCDR_20' ) start [2025-03-06 11:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620312', 'tblTempVendorCDR_20' ) end [2025-03-06 11:55:21] Production.INFO: ProcessCDR(1,14620312,1,1,2) [2025-03-06 11:55:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14620312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 11:55:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14620312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 11:55:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14620312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 11:55:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14620312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 11:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620312', 'tblTempUsageDetail_20' ) start [2025-03-06 11:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620312', 'tblTempUsageDetail_20' ) end [2025-03-06 11:55:26] Production.ERROR: pbx prc_insertCDR start [2025-03-06 11:55:26] Production.ERROR: pbx prc_insertCDR end [2025-03-06 11:55:26] Production.INFO: ==22340== Releasing lock... [2025-03-06 11:55:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 11:55:26] Production.INFO: 63.75 MB #Memory Used# [2025-03-06 11:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 08:56:06 [end_date_ymd] => 2025-03-06 11:56:06 [RateCDR] => 1 ) [2025-03-06 11: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-03-06 08:56:06' and `end` < '2025-03-06 11: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-03-06 11:56:19] Production.INFO: count ==4794 [2025-03-06 11:56:21] Production.ERROR: pbx CDR StartTime 2025-03-06 08:56:06 - End Time 2025-03-06 11:56:06 [2025-03-06 11:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 11:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620317', 'tblTempUsageDetail_20' ) start [2025-03-06 11:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620317', 'tblTempUsageDetail_20' ) end [2025-03-06 11:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620317', 'tblTempVendorCDR_20' ) start [2025-03-06 11:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620317', 'tblTempVendorCDR_20' ) end [2025-03-06 11:56:21] Production.INFO: ProcessCDR(1,14620317,1,1,2) [2025-03-06 11:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14620317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 11:56:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14620317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 11:56:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14620317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 11:56:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14620317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 11:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620317', 'tblTempUsageDetail_20' ) start [2025-03-06 11:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620317', 'tblTempUsageDetail_20' ) end [2025-03-06 11:56:26] Production.ERROR: pbx prc_insertCDR start [2025-03-06 11:56:26] Production.ERROR: pbx prc_insertCDR end [2025-03-06 11:56:26] Production.INFO: ==22414== Releasing lock... [2025-03-06 11:56:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 11:56:26] Production.INFO: 64 MB #Memory Used# [2025-03-06 11:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 08:57:06 [end_date_ymd] => 2025-03-06 11:57:06 [RateCDR] => 1 ) [2025-03-06 11: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-03-06 08:57:06' and `end` < '2025-03-06 11: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-03-06 11:57:19] Production.INFO: count ==4798 [2025-03-06 11:57:21] Production.ERROR: pbx CDR StartTime 2025-03-06 08:57:06 - End Time 2025-03-06 11:57:06 [2025-03-06 11:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 11:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620322', 'tblTempUsageDetail_20' ) start [2025-03-06 11:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620322', 'tblTempUsageDetail_20' ) end [2025-03-06 11:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620322', 'tblTempVendorCDR_20' ) start [2025-03-06 11:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620322', 'tblTempVendorCDR_20' ) end [2025-03-06 11:57:21] Production.INFO: ProcessCDR(1,14620322,1,1,2) [2025-03-06 11:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14620322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 11:57:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14620322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 11:57:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14620322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 11:57:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14620322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 11:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620322', 'tblTempUsageDetail_20' ) start [2025-03-06 11:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620322', 'tblTempUsageDetail_20' ) end [2025-03-06 11:57:26] Production.ERROR: pbx prc_insertCDR start [2025-03-06 11:57:26] Production.ERROR: pbx prc_insertCDR end [2025-03-06 11:57:26] Production.INFO: ==22486== Releasing lock... [2025-03-06 11:57:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 11:57:26] Production.INFO: 64 MB #Memory Used# [2025-03-06 11:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 08:58:06 [end_date_ymd] => 2025-03-06 11:58:06 [RateCDR] => 1 ) [2025-03-06 11: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-03-06 08:58:06' and `end` < '2025-03-06 11: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-03-06 11:58:19] Production.INFO: count ==4813 [2025-03-06 11:58:21] Production.ERROR: pbx CDR StartTime 2025-03-06 08:58:06 - End Time 2025-03-06 11:58:06 [2025-03-06 11:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 11:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620327', 'tblTempUsageDetail_20' ) start [2025-03-06 11:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620327', 'tblTempUsageDetail_20' ) end [2025-03-06 11:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620327', 'tblTempVendorCDR_20' ) start [2025-03-06 11:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620327', 'tblTempVendorCDR_20' ) end [2025-03-06 11:58:21] Production.INFO: ProcessCDR(1,14620327,1,1,2) [2025-03-06 11:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14620327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 11:58:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14620327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 11:58:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14620327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 11:58:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14620327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 11:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620327', 'tblTempUsageDetail_20' ) start [2025-03-06 11:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620327', 'tblTempUsageDetail_20' ) end [2025-03-06 11:58:26] Production.ERROR: pbx prc_insertCDR start [2025-03-06 11:58:26] Production.ERROR: pbx prc_insertCDR end [2025-03-06 11:58:26] Production.INFO: ==22558== Releasing lock... [2025-03-06 11:58:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 11:58:26] Production.INFO: 64 MB #Memory Used# [2025-03-06 11:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 08:59:06 [end_date_ymd] => 2025-03-06 11:59:06 [RateCDR] => 1 ) [2025-03-06 11: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-03-06 08:59:06' and `end` < '2025-03-06 11: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-03-06 11:59:19] Production.INFO: count ==4829 [2025-03-06 11:59:21] Production.ERROR: pbx CDR StartTime 2025-03-06 08:59:06 - End Time 2025-03-06 11:59:06 [2025-03-06 11:59:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 11:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620332', 'tblTempUsageDetail_20' ) start [2025-03-06 11:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620332', 'tblTempUsageDetail_20' ) end [2025-03-06 11:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620332', 'tblTempVendorCDR_20' ) start [2025-03-06 11:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620332', 'tblTempVendorCDR_20' ) end [2025-03-06 11:59:21] Production.INFO: ProcessCDR(1,14620332,1,1,2) [2025-03-06 11:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14620332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 11:59:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14620332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 11:59:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14620332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 11:59:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14620332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 11:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620332', 'tblTempUsageDetail_20' ) start [2025-03-06 11:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620332', 'tblTempUsageDetail_20' ) end [2025-03-06 11:59:25] Production.ERROR: pbx prc_insertCDR start [2025-03-06 11:59:25] Production.ERROR: pbx prc_insertCDR end [2025-03-06 11:59:25] Production.INFO: ==22631== Releasing lock... [2025-03-06 11:59:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 11:59:25] Production.INFO: 64.25 MB #Memory Used# [2025-03-06 12:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 09:00:06 [end_date_ymd] => 2025-03-06 12:00:06 [RateCDR] => 1 ) [2025-03-06 12:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 09:00:06' and `end` < '2025-03-06 12:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 12:00:19] Production.INFO: count ==4840 [2025-03-06 12:00:21] Production.ERROR: pbx CDR StartTime 2025-03-06 09:00:06 - End Time 2025-03-06 12:00:06 [2025-03-06 12:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 12:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620338', 'tblTempUsageDetail_20' ) start [2025-03-06 12:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620338', 'tblTempUsageDetail_20' ) end [2025-03-06 12:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620338', 'tblTempVendorCDR_20' ) start [2025-03-06 12:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620338', 'tblTempVendorCDR_20' ) end [2025-03-06 12:00:21] Production.INFO: ProcessCDR(1,14620338,1,1,2) [2025-03-06 12:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14620338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 12:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14620338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 12:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14620338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 12:00:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14620338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 12:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620338', 'tblTempUsageDetail_20' ) start [2025-03-06 12:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620338', 'tblTempUsageDetail_20' ) end [2025-03-06 12:00:26] Production.ERROR: pbx prc_insertCDR start [2025-03-06 12:00:26] Production.ERROR: pbx prc_insertCDR end [2025-03-06 12:00:26] Production.INFO: ==22717== Releasing lock... [2025-03-06 12:00:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 12:00:26] Production.INFO: 64.25 MB #Memory Used# [2025-03-06 12:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 09:01:05 [end_date_ymd] => 2025-03-06 12:01:05 [RateCDR] => 1 ) [2025-03-06 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-03-06 09:01:05' and `end` < '2025-03-06 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-03-06 12:01:18] Production.INFO: count ==4874 [2025-03-06 12:01:20] Production.ERROR: pbx CDR StartTime 2025-03-06 09:01:05 - End Time 2025-03-06 12:01:05 [2025-03-06 12:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 12:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620343', 'tblTempUsageDetail_20' ) start [2025-03-06 12:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620343', 'tblTempUsageDetail_20' ) end [2025-03-06 12:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620343', 'tblTempVendorCDR_20' ) start [2025-03-06 12:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620343', 'tblTempVendorCDR_20' ) end [2025-03-06 12:01:20] Production.INFO: ProcessCDR(1,14620343,1,1,2) [2025-03-06 12:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14620343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 12:01:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14620343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 12:01:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14620343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 12:01:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14620343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 12:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620343', 'tblTempUsageDetail_20' ) start [2025-03-06 12:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620343', 'tblTempUsageDetail_20' ) end [2025-03-06 12:01:25] Production.ERROR: pbx prc_insertCDR start [2025-03-06 12:01:25] Production.ERROR: pbx prc_insertCDR end [2025-03-06 12:01:25] Production.INFO: ==22805== Releasing lock... [2025-03-06 12:01:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 12:01:25] Production.INFO: 64.5 MB #Memory Used# [2025-03-06 12:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 09:02:06 [end_date_ymd] => 2025-03-06 12:02:06 [RateCDR] => 1 ) [2025-03-06 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-03-06 09:02:06' and `end` < '2025-03-06 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-03-06 12:02:19] Production.INFO: count ==4879 [2025-03-06 12:02:21] Production.ERROR: pbx CDR StartTime 2025-03-06 09:02:06 - End Time 2025-03-06 12:02:06 [2025-03-06 12:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 12:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620348', 'tblTempUsageDetail_20' ) start [2025-03-06 12:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620348', 'tblTempUsageDetail_20' ) end [2025-03-06 12:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620348', 'tblTempVendorCDR_20' ) start [2025-03-06 12:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620348', 'tblTempVendorCDR_20' ) end [2025-03-06 12:02:21] Production.INFO: ProcessCDR(1,14620348,1,1,2) [2025-03-06 12:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14620348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 12:02:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14620348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 12:02:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14620348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 12:02:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14620348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 12:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620348', 'tblTempUsageDetail_20' ) start [2025-03-06 12:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620348', 'tblTempUsageDetail_20' ) end [2025-03-06 12:02:26] Production.ERROR: pbx prc_insertCDR start [2025-03-06 12:02:26] Production.ERROR: pbx prc_insertCDR end [2025-03-06 12:02:26] Production.INFO: ==22882== Releasing lock... [2025-03-06 12:02:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 12:02:26] Production.INFO: 64.5 MB #Memory Used# [2025-03-06 12:03:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 09:03:04 [end_date_ymd] => 2025-03-06 12:03:04 [RateCDR] => 1 ) [2025-03-06 12: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-03-06 09:03:04' and `end` < '2025-03-06 12: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-03-06 12:03:18] Production.INFO: count ==4878 [2025-03-06 12:03:20] Production.ERROR: pbx CDR StartTime 2025-03-06 09:03:04 - End Time 2025-03-06 12:03:04 [2025-03-06 12:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 12:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620353', 'tblTempUsageDetail_20' ) start [2025-03-06 12:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620353', 'tblTempUsageDetail_20' ) end [2025-03-06 12:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620353', 'tblTempVendorCDR_20' ) start [2025-03-06 12:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620353', 'tblTempVendorCDR_20' ) end [2025-03-06 12:03:20] Production.INFO: ProcessCDR(1,14620353,1,1,2) [2025-03-06 12:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14620353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 12:03:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14620353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 12:03:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14620353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 12:03:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14620353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 12:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620353', 'tblTempUsageDetail_20' ) start [2025-03-06 12:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620353', 'tblTempUsageDetail_20' ) end [2025-03-06 12:03:25] Production.ERROR: pbx prc_insertCDR start [2025-03-06 12:03:25] Production.ERROR: pbx prc_insertCDR end [2025-03-06 12:03:25] Production.INFO: ==22985== Releasing lock... [2025-03-06 12:03:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 12:03:25] Production.INFO: 64.5 MB #Memory Used# [2025-03-06 12:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 09:04:05 [end_date_ymd] => 2025-03-06 12:04:05 [RateCDR] => 1 ) [2025-03-06 12:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 09:04:05' and `end` < '2025-03-06 12:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 12:04:18] Production.INFO: count ==4886 [2025-03-06 12:04:20] Production.ERROR: pbx CDR StartTime 2025-03-06 09:04:05 - End Time 2025-03-06 12:04:05 [2025-03-06 12:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 12:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620358', 'tblTempUsageDetail_20' ) start [2025-03-06 12:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620358', 'tblTempUsageDetail_20' ) end [2025-03-06 12:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620358', 'tblTempVendorCDR_20' ) start [2025-03-06 12:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620358', 'tblTempVendorCDR_20' ) end [2025-03-06 12:04:21] Production.INFO: ProcessCDR(1,14620358,1,1,2) [2025-03-06 12:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14620358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 12:04:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14620358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 12:04:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14620358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 12:04:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14620358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 12:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620358', 'tblTempUsageDetail_20' ) start [2025-03-06 12:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620358', 'tblTempUsageDetail_20' ) end [2025-03-06 12:04:26] Production.ERROR: pbx prc_insertCDR start [2025-03-06 12:04:26] Production.ERROR: pbx prc_insertCDR end [2025-03-06 12:04:26] Production.INFO: ==23096== Releasing lock... [2025-03-06 12:04:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 12:04:26] Production.INFO: 64.5 MB #Memory Used# [2025-03-06 12:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 09:05:05 [end_date_ymd] => 2025-03-06 12:05:05 [RateCDR] => 1 ) [2025-03-06 12:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 09:05:05' and `end` < '2025-03-06 12: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-03-06 12:05:18] Production.INFO: count ==4875 [2025-03-06 12:05:20] Production.ERROR: pbx CDR StartTime 2025-03-06 09:05:05 - End Time 2025-03-06 12:05:05 [2025-03-06 12:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 12:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620363', 'tblTempUsageDetail_20' ) start [2025-03-06 12:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620363', 'tblTempUsageDetail_20' ) end [2025-03-06 12:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620363', 'tblTempVendorCDR_20' ) start [2025-03-06 12:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620363', 'tblTempVendorCDR_20' ) end [2025-03-06 12:05:20] Production.INFO: ProcessCDR(1,14620363,1,1,2) [2025-03-06 12:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14620363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 12:05:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14620363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 12:05:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14620363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 12:05:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14620363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 12:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620363', 'tblTempUsageDetail_20' ) start [2025-03-06 12:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620363', 'tblTempUsageDetail_20' ) end [2025-03-06 12:05:25] Production.ERROR: pbx prc_insertCDR start [2025-03-06 12:05:25] Production.ERROR: pbx prc_insertCDR end [2025-03-06 12:05:25] Production.INFO: ==23203== Releasing lock... [2025-03-06 12:05:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 12:05:25] Production.INFO: 64.5 MB #Memory Used# [2025-03-06 12:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 09:06:05 [end_date_ymd] => 2025-03-06 12:06:05 [RateCDR] => 1 ) [2025-03-06 12:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 09:06:05' and `end` < '2025-03-06 12:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 12:06:18] Production.INFO: count ==4895 [2025-03-06 12:06:20] Production.ERROR: pbx CDR StartTime 2025-03-06 09:06:05 - End Time 2025-03-06 12:06:05 [2025-03-06 12:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 12:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620368', 'tblTempUsageDetail_20' ) start [2025-03-06 12:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620368', 'tblTempUsageDetail_20' ) end [2025-03-06 12:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620368', 'tblTempVendorCDR_20' ) start [2025-03-06 12:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620368', 'tblTempVendorCDR_20' ) end [2025-03-06 12:06:20] Production.INFO: ProcessCDR(1,14620368,1,1,2) [2025-03-06 12:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14620368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 12:06:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14620368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 12:06:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14620368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 12:06:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14620368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 12:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620368', 'tblTempUsageDetail_20' ) start [2025-03-06 12:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620368', 'tblTempUsageDetail_20' ) end [2025-03-06 12:06:25] Production.ERROR: pbx prc_insertCDR start [2025-03-06 12:06:25] Production.ERROR: pbx prc_insertCDR end [2025-03-06 12:06:25] Production.INFO: ==23316== Releasing lock... [2025-03-06 12:06:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 12:06:25] Production.INFO: 64.75 MB #Memory Used# [2025-03-06 12:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 09:07:05 [end_date_ymd] => 2025-03-06 12:07:05 [RateCDR] => 1 ) [2025-03-06 12:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 09:07:05' and `end` < '2025-03-06 12:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 12:07:18] Production.INFO: count ==4899 [2025-03-06 12:07:20] Production.ERROR: pbx CDR StartTime 2025-03-06 09:07:05 - End Time 2025-03-06 12:07:05 [2025-03-06 12:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 12:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620373', 'tblTempUsageDetail_20' ) start [2025-03-06 12:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620373', 'tblTempUsageDetail_20' ) end [2025-03-06 12:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620373', 'tblTempVendorCDR_20' ) start [2025-03-06 12:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620373', 'tblTempVendorCDR_20' ) end [2025-03-06 12:07:20] Production.INFO: ProcessCDR(1,14620373,1,1,2) [2025-03-06 12:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14620373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 12:07:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14620373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 12:07:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14620373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 12:07:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14620373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 12:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620373', 'tblTempUsageDetail_20' ) start [2025-03-06 12:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620373', 'tblTempUsageDetail_20' ) end [2025-03-06 12:07:25] Production.ERROR: pbx prc_insertCDR start [2025-03-06 12:07:25] Production.ERROR: pbx prc_insertCDR end [2025-03-06 12:07:25] Production.INFO: ==23418== Releasing lock... [2025-03-06 12:07:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 12:07:25] Production.INFO: 64.75 MB #Memory Used# [2025-03-06 12:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 09:08:06 [end_date_ymd] => 2025-03-06 12:08:06 [RateCDR] => 1 ) [2025-03-06 12: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-03-06 09:08:06' and `end` < '2025-03-06 12: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-03-06 12:08:19] Production.INFO: count ==4888 [2025-03-06 12:08:21] Production.ERROR: pbx CDR StartTime 2025-03-06 09:08:06 - End Time 2025-03-06 12:08:06 [2025-03-06 12:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 12:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620378', 'tblTempUsageDetail_20' ) start [2025-03-06 12:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620378', 'tblTempUsageDetail_20' ) end [2025-03-06 12:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620378', 'tblTempVendorCDR_20' ) start [2025-03-06 12:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620378', 'tblTempVendorCDR_20' ) end [2025-03-06 12:08:21] Production.INFO: ProcessCDR(1,14620378,1,1,2) [2025-03-06 12:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14620378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 12:08:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14620378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 12:08:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14620378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 12:08:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14620378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 12:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620378', 'tblTempUsageDetail_20' ) start [2025-03-06 12:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620378', 'tblTempUsageDetail_20' ) end [2025-03-06 12:08:25] Production.ERROR: pbx prc_insertCDR start [2025-03-06 12:08:25] Production.ERROR: pbx prc_insertCDR end [2025-03-06 12:08:25] Production.INFO: ==23573== Releasing lock... [2025-03-06 12:08:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 12:08:25] Production.INFO: 64.5 MB #Memory Used# [2025-03-06 12:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 09:09:05 [end_date_ymd] => 2025-03-06 12:09:05 [RateCDR] => 1 ) [2025-03-06 12:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 09:09:05' and `end` < '2025-03-06 12:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 12:09:18] Production.INFO: count ==4856 [2025-03-06 12:09:20] Production.ERROR: pbx CDR StartTime 2025-03-06 09:09:05 - End Time 2025-03-06 12:09:05 [2025-03-06 12:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 12:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620383', 'tblTempUsageDetail_20' ) start [2025-03-06 12:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620383', 'tblTempUsageDetail_20' ) end [2025-03-06 12:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620383', 'tblTempVendorCDR_20' ) start [2025-03-06 12:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620383', 'tblTempVendorCDR_20' ) end [2025-03-06 12:09:20] Production.INFO: ProcessCDR(1,14620383,1,1,2) [2025-03-06 12:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14620383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 12:09:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14620383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 12:09:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14620383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 12:09:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14620383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 12:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620383', 'tblTempUsageDetail_20' ) start [2025-03-06 12:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620383', 'tblTempUsageDetail_20' ) end [2025-03-06 12:09:25] Production.ERROR: pbx prc_insertCDR start [2025-03-06 12:09:25] Production.ERROR: pbx prc_insertCDR end [2025-03-06 12:09:25] Production.INFO: ==23685== Releasing lock... [2025-03-06 12:09:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 12:09:25] Production.INFO: 64.25 MB #Memory Used# [2025-03-06 12:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 09:10:06 [end_date_ymd] => 2025-03-06 12:10:06 [RateCDR] => 1 ) [2025-03-06 12: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-03-06 09:10:06' and `end` < '2025-03-06 12: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-03-06 12:10:19] Production.INFO: count ==4839 [2025-03-06 12:10:21] Production.ERROR: pbx CDR StartTime 2025-03-06 09:10:06 - End Time 2025-03-06 12:10:06 [2025-03-06 12:10:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 12:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620389', 'tblTempUsageDetail_20' ) start [2025-03-06 12:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620389', 'tblTempUsageDetail_20' ) end [2025-03-06 12:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620389', 'tblTempVendorCDR_20' ) start [2025-03-06 12:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620389', 'tblTempVendorCDR_20' ) end [2025-03-06 12:10:21] Production.INFO: ProcessCDR(1,14620389,1,1,2) [2025-03-06 12:10:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14620389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 12:10:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14620389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 12:10:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14620389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 12:10:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14620389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 12:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620389', 'tblTempUsageDetail_20' ) start [2025-03-06 12:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620389', 'tblTempUsageDetail_20' ) end [2025-03-06 12:10:26] Production.ERROR: pbx prc_insertCDR start [2025-03-06 12:10:26] Production.ERROR: pbx prc_insertCDR end [2025-03-06 12:10:26] Production.INFO: ==23799== Releasing lock... [2025-03-06 12:10:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 12:10:26] Production.INFO: 64.25 MB #Memory Used# [2025-03-06 12:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 09:11:06 [end_date_ymd] => 2025-03-06 12:11:06 [RateCDR] => 1 ) [2025-03-06 12: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-03-06 09:11:06' and `end` < '2025-03-06 12: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-03-06 12:11:19] Production.INFO: count ==4799 [2025-03-06 12:11:21] Production.ERROR: pbx CDR StartTime 2025-03-06 09:11:06 - End Time 2025-03-06 12:11:06 [2025-03-06 12:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 12:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620394', 'tblTempUsageDetail_20' ) start [2025-03-06 12:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620394', 'tblTempUsageDetail_20' ) end [2025-03-06 12:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620394', 'tblTempVendorCDR_20' ) start [2025-03-06 12:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620394', 'tblTempVendorCDR_20' ) end [2025-03-06 12:11:21] Production.INFO: ProcessCDR(1,14620394,1,1,2) [2025-03-06 12:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14620394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 12:11:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14620394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 12:11:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14620394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 12:11:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14620394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 12:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620394', 'tblTempUsageDetail_20' ) start [2025-03-06 12:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620394', 'tblTempUsageDetail_20' ) end [2025-03-06 12:11:26] Production.ERROR: pbx prc_insertCDR start [2025-03-06 12:11:26] Production.ERROR: pbx prc_insertCDR end [2025-03-06 12:11:26] Production.INFO: ==23913== Releasing lock... [2025-03-06 12:11:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 12:11:26] Production.INFO: 64 MB #Memory Used# [2025-03-06 12:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 09:12:05 [end_date_ymd] => 2025-03-06 12:12:05 [RateCDR] => 1 ) [2025-03-06 12:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 09:12:05' and `end` < '2025-03-06 12:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 12:12:18] Production.INFO: count ==4790 [2025-03-06 12:12:20] Production.ERROR: pbx CDR StartTime 2025-03-06 09:12:05 - End Time 2025-03-06 12:12:05 [2025-03-06 12:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 12:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620399', 'tblTempUsageDetail_20' ) start [2025-03-06 12:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620399', 'tblTempUsageDetail_20' ) end [2025-03-06 12:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620399', 'tblTempVendorCDR_20' ) start [2025-03-06 12:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620399', 'tblTempVendorCDR_20' ) end [2025-03-06 12:12:21] Production.INFO: ProcessCDR(1,14620399,1,1,2) [2025-03-06 12:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14620399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 12:12:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14620399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 12:12:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14620399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 12:12:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14620399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 12:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620399', 'tblTempUsageDetail_20' ) start [2025-03-06 12:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620399', 'tblTempUsageDetail_20' ) end [2025-03-06 12:12:26] Production.ERROR: pbx prc_insertCDR start [2025-03-06 12:12:26] Production.ERROR: pbx prc_insertCDR end [2025-03-06 12:12:26] Production.INFO: ==24021== Releasing lock... [2025-03-06 12:12:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 12:12:26] Production.INFO: 63.75 MB #Memory Used# [2025-03-06 12:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 09:13:06 [end_date_ymd] => 2025-03-06 12:13:06 [RateCDR] => 1 ) [2025-03-06 12: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-03-06 09:13:06' and `end` < '2025-03-06 12: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-03-06 12:13:19] Production.INFO: count ==4790 [2025-03-06 12:13:21] Production.ERROR: pbx CDR StartTime 2025-03-06 09:13:06 - End Time 2025-03-06 12:13:06 [2025-03-06 12:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 12:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620404', 'tblTempUsageDetail_20' ) start [2025-03-06 12:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620404', 'tblTempUsageDetail_20' ) end [2025-03-06 12:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620404', 'tblTempVendorCDR_20' ) start [2025-03-06 12:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620404', 'tblTempVendorCDR_20' ) end [2025-03-06 12:13:21] Production.INFO: ProcessCDR(1,14620404,1,1,2) [2025-03-06 12:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14620404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 12:13:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14620404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 12:13:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14620404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 12:13:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14620404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 12:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620404', 'tblTempUsageDetail_20' ) start [2025-03-06 12:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620404', 'tblTempUsageDetail_20' ) end [2025-03-06 12:13:25] Production.ERROR: pbx prc_insertCDR start [2025-03-06 12:13:25] Production.ERROR: pbx prc_insertCDR end [2025-03-06 12:13:26] Production.INFO: ==24128== Releasing lock... [2025-03-06 12:13:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 12:13:26] Production.INFO: 63.75 MB #Memory Used# [2025-03-06 12:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 09:14:05 [end_date_ymd] => 2025-03-06 12:14:05 [RateCDR] => 1 ) [2025-03-06 12: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-03-06 09:14:05' and `end` < '2025-03-06 12: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-03-06 12:14:18] Production.INFO: count ==4761 [2025-03-06 12:14:20] Production.ERROR: pbx CDR StartTime 2025-03-06 09:14:05 - End Time 2025-03-06 12:14:05 [2025-03-06 12:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 12:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620409', 'tblTempUsageDetail_20' ) start [2025-03-06 12:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620409', 'tblTempUsageDetail_20' ) end [2025-03-06 12:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620409', 'tblTempVendorCDR_20' ) start [2025-03-06 12:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620409', 'tblTempVendorCDR_20' ) end [2025-03-06 12:14:20] Production.INFO: ProcessCDR(1,14620409,1,1,2) [2025-03-06 12:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14620409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 12:14:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14620409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 12:14:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14620409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 12:14:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14620409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 12:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620409', 'tblTempUsageDetail_20' ) start [2025-03-06 12:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620409', 'tblTempUsageDetail_20' ) end [2025-03-06 12:14:25] Production.ERROR: pbx prc_insertCDR start [2025-03-06 12:14:25] Production.ERROR: pbx prc_insertCDR end [2025-03-06 12:14:25] Production.INFO: ==24239== Releasing lock... [2025-03-06 12:14:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 12:14:25] Production.INFO: 63.75 MB #Memory Used# [2025-03-06 12:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 09:15:05 [end_date_ymd] => 2025-03-06 12:15:05 [RateCDR] => 1 ) [2025-03-06 12:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 09:15:05' and `end` < '2025-03-06 12:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 12:15:18] Production.INFO: count ==4749 [2025-03-06 12:15:20] Production.ERROR: pbx CDR StartTime 2025-03-06 09:15:05 - End Time 2025-03-06 12:15:05 [2025-03-06 12:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 12:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620414', 'tblTempUsageDetail_20' ) start [2025-03-06 12:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620414', 'tblTempUsageDetail_20' ) end [2025-03-06 12:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620414', 'tblTempVendorCDR_20' ) start [2025-03-06 12:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620414', 'tblTempVendorCDR_20' ) end [2025-03-06 12:15:20] Production.INFO: ProcessCDR(1,14620414,1,1,2) [2025-03-06 12:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14620414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 12:15:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14620414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 12:15:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14620414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 12:15:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14620414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 12:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620414', 'tblTempUsageDetail_20' ) start [2025-03-06 12:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620414', 'tblTempUsageDetail_20' ) end [2025-03-06 12:15:26] Production.ERROR: pbx prc_insertCDR start [2025-03-06 12:15:26] Production.ERROR: pbx prc_insertCDR end [2025-03-06 12:15:26] Production.INFO: ==24350== Releasing lock... [2025-03-06 12:15:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 12:15:26] Production.INFO: 63.5 MB #Memory Used# [2025-03-06 12:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 09:16:05 [end_date_ymd] => 2025-03-06 12:16:05 [RateCDR] => 1 ) [2025-03-06 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-03-06 09:16:05' and `end` < '2025-03-06 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-03-06 12:16:19] Production.INFO: count ==4747 [2025-03-06 12:16:21] Production.ERROR: pbx CDR StartTime 2025-03-06 09:16:05 - End Time 2025-03-06 12:16:05 [2025-03-06 12:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 12:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620419', 'tblTempUsageDetail_20' ) start [2025-03-06 12:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620419', 'tblTempUsageDetail_20' ) end [2025-03-06 12:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620419', 'tblTempVendorCDR_20' ) start [2025-03-06 12:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620419', 'tblTempVendorCDR_20' ) end [2025-03-06 12:16:21] Production.INFO: ProcessCDR(1,14620419,1,1,2) [2025-03-06 12:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14620419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 12:16:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14620419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 12:16:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14620419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 12:16:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14620419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 12:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620419', 'tblTempUsageDetail_20' ) start [2025-03-06 12:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620419', 'tblTempUsageDetail_20' ) end [2025-03-06 12:16:26] Production.ERROR: pbx prc_insertCDR start [2025-03-06 12:16:26] Production.ERROR: pbx prc_insertCDR end [2025-03-06 12:16:26] Production.INFO: ==24459== Releasing lock... [2025-03-06 12:16:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 12:16:26] Production.INFO: 63.5 MB #Memory Used# [2025-03-06 12:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 09:17:05 [end_date_ymd] => 2025-03-06 12:17:05 [RateCDR] => 1 ) [2025-03-06 12:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 09:17:05' and `end` < '2025-03-06 12:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 12:17:18] Production.INFO: count ==4763 [2025-03-06 12:17:20] Production.ERROR: pbx CDR StartTime 2025-03-06 09:17:05 - End Time 2025-03-06 12:17:05 [2025-03-06 12:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 12:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620424', 'tblTempUsageDetail_20' ) start [2025-03-06 12:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620424', 'tblTempUsageDetail_20' ) end [2025-03-06 12:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620424', 'tblTempVendorCDR_20' ) start [2025-03-06 12:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620424', 'tblTempVendorCDR_20' ) end [2025-03-06 12:17:20] Production.INFO: ProcessCDR(1,14620424,1,1,2) [2025-03-06 12:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14620424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 12:17:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14620424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 12:17:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14620424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 12:17:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14620424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 12:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620424', 'tblTempUsageDetail_20' ) start [2025-03-06 12:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620424', 'tblTempUsageDetail_20' ) end [2025-03-06 12:17:26] Production.ERROR: pbx prc_insertCDR start [2025-03-06 12:17:26] Production.ERROR: pbx prc_insertCDR end [2025-03-06 12:17:26] Production.INFO: ==24571== Releasing lock... [2025-03-06 12:17:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 12:17:26] Production.INFO: 63.75 MB #Memory Used# [2025-03-06 12:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 09:18:05 [end_date_ymd] => 2025-03-06 12:18:05 [RateCDR] => 1 ) [2025-03-06 12:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 09:18:05' and `end` < '2025-03-06 12:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 12:18:18] Production.INFO: count ==4761 [2025-03-06 12:18:20] Production.ERROR: pbx CDR StartTime 2025-03-06 09:18:05 - End Time 2025-03-06 12:18:05 [2025-03-06 12:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 12:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620429', 'tblTempUsageDetail_20' ) start [2025-03-06 12:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620429', 'tblTempUsageDetail_20' ) end [2025-03-06 12:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620429', 'tblTempVendorCDR_20' ) start [2025-03-06 12:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620429', 'tblTempVendorCDR_20' ) end [2025-03-06 12:18:20] Production.INFO: ProcessCDR(1,14620429,1,1,2) [2025-03-06 12:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14620429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 12:18:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14620429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 12:18:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14620429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 12:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14620429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 12:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620429', 'tblTempUsageDetail_20' ) start [2025-03-06 12:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620429', 'tblTempUsageDetail_20' ) end [2025-03-06 12:18:24] Production.ERROR: pbx prc_insertCDR start [2025-03-06 12:18:24] Production.ERROR: pbx prc_insertCDR end [2025-03-06 12:18:24] Production.INFO: ==24691== Releasing lock... [2025-03-06 12:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 12:18:24] Production.INFO: 63.75 MB #Memory Used# [2025-03-06 12:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 09:19:05 [end_date_ymd] => 2025-03-06 12:19:05 [RateCDR] => 1 ) [2025-03-06 12:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 09:19:05' and `end` < '2025-03-06 12:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 12:19:18] Production.INFO: count ==4779 [2025-03-06 12:19:21] Production.ERROR: pbx CDR StartTime 2025-03-06 09:19:05 - End Time 2025-03-06 12:19:05 [2025-03-06 12:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 12:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620434', 'tblTempUsageDetail_20' ) start [2025-03-06 12:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620434', 'tblTempUsageDetail_20' ) end [2025-03-06 12:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620434', 'tblTempVendorCDR_20' ) start [2025-03-06 12:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620434', 'tblTempVendorCDR_20' ) end [2025-03-06 12:19:21] Production.INFO: ProcessCDR(1,14620434,1,1,2) [2025-03-06 12:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14620434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 12:19:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14620434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 12:19:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14620434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 12:19:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14620434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 12:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620434', 'tblTempUsageDetail_20' ) start [2025-03-06 12:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620434', 'tblTempUsageDetail_20' ) end [2025-03-06 12:19:26] Production.ERROR: pbx prc_insertCDR start [2025-03-06 12:19:26] Production.ERROR: pbx prc_insertCDR end [2025-03-06 12:19:26] Production.INFO: ==24808== Releasing lock... [2025-03-06 12:19:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 12:19:26] Production.INFO: 63.75 MB #Memory Used# [2025-03-06 12:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 09:20:06 [end_date_ymd] => 2025-03-06 12:20:06 [RateCDR] => 1 ) [2025-03-06 12:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 09:20:06' and `end` < '2025-03-06 12:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 12:20:19] Production.INFO: count ==4780 [2025-03-06 12:20:21] Production.ERROR: pbx CDR StartTime 2025-03-06 09:20:06 - End Time 2025-03-06 12:20:06 [2025-03-06 12:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 12:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620440', 'tblTempUsageDetail_20' ) start [2025-03-06 12:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620440', 'tblTempUsageDetail_20' ) end [2025-03-06 12:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620440', 'tblTempVendorCDR_20' ) start [2025-03-06 12:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620440', 'tblTempVendorCDR_20' ) end [2025-03-06 12:20:21] Production.INFO: ProcessCDR(1,14620440,1,1,2) [2025-03-06 12:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14620440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 12:20:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14620440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 12:20:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14620440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 12:20:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14620440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 12:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620440', 'tblTempUsageDetail_20' ) start [2025-03-06 12:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620440', 'tblTempUsageDetail_20' ) end [2025-03-06 12:20:26] Production.ERROR: pbx prc_insertCDR start [2025-03-06 12:20:26] Production.ERROR: pbx prc_insertCDR end [2025-03-06 12:20:26] Production.INFO: ==24918== Releasing lock... [2025-03-06 12:20:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 12:20:26] Production.INFO: 63.75 MB #Memory Used# [2025-03-06 12:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 09:21:06 [end_date_ymd] => 2025-03-06 12:21:06 [RateCDR] => 1 ) [2025-03-06 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-03-06 09:21:06' and `end` < '2025-03-06 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-03-06 12:21:19] Production.INFO: count ==4841 [2025-03-06 12:21:21] Production.ERROR: pbx CDR StartTime 2025-03-06 09:21:06 - End Time 2025-03-06 12:21:06 [2025-03-06 12:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 12:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620445', 'tblTempUsageDetail_20' ) start [2025-03-06 12:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620445', 'tblTempUsageDetail_20' ) end [2025-03-06 12:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620445', 'tblTempVendorCDR_20' ) start [2025-03-06 12:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620445', 'tblTempVendorCDR_20' ) end [2025-03-06 12:21:21] Production.INFO: ProcessCDR(1,14620445,1,1,2) [2025-03-06 12:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14620445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 12:21:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14620445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 12:21:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14620445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 12:21:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14620445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 12:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620445', 'tblTempUsageDetail_20' ) start [2025-03-06 12:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620445', 'tblTempUsageDetail_20' ) end [2025-03-06 12:21:26] Production.ERROR: pbx prc_insertCDR start [2025-03-06 12:21:27] Production.ERROR: pbx prc_insertCDR end [2025-03-06 12:21:27] Production.INFO: ==25032== Releasing lock... [2025-03-06 12:21:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 12:21:27] Production.INFO: 64.25 MB #Memory Used# [2025-03-06 12:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 09:22:05 [end_date_ymd] => 2025-03-06 12:22:05 [RateCDR] => 1 ) [2025-03-06 12:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 09:22:05' and `end` < '2025-03-06 12:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 12:22:18] Production.INFO: count ==4852 [2025-03-06 12:22:20] Production.ERROR: pbx CDR StartTime 2025-03-06 09:22:05 - End Time 2025-03-06 12:22:05 [2025-03-06 12:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 12:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620450', 'tblTempUsageDetail_20' ) start [2025-03-06 12:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620450', 'tblTempUsageDetail_20' ) end [2025-03-06 12:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620450', 'tblTempVendorCDR_20' ) start [2025-03-06 12:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620450', 'tblTempVendorCDR_20' ) end [2025-03-06 12:22:20] Production.INFO: ProcessCDR(1,14620450,1,1,2) [2025-03-06 12:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14620450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 12:22:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14620450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 12:22:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14620450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 12:22:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14620450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 12:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620450', 'tblTempUsageDetail_20' ) start [2025-03-06 12:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620450', 'tblTempUsageDetail_20' ) end [2025-03-06 12:22:25] Production.ERROR: pbx prc_insertCDR start [2025-03-06 12:22:25] Production.ERROR: pbx prc_insertCDR end [2025-03-06 12:22:25] Production.INFO: ==25139== Releasing lock... [2025-03-06 12:22:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 12:22:25] Production.INFO: 64.25 MB #Memory Used# [2025-03-06 12:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 09:23:05 [end_date_ymd] => 2025-03-06 12:23:05 [RateCDR] => 1 ) [2025-03-06 12:23:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 09:23:05' and `end` < '2025-03-06 12:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 12:23:18] Production.INFO: count ==4837 [2025-03-06 12:23:21] Production.ERROR: pbx CDR StartTime 2025-03-06 09:23:05 - End Time 2025-03-06 12:23:05 [2025-03-06 12:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 12:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620455', 'tblTempUsageDetail_20' ) start [2025-03-06 12:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620455', 'tblTempUsageDetail_20' ) end [2025-03-06 12:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620455', 'tblTempVendorCDR_20' ) start [2025-03-06 12:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620455', 'tblTempVendorCDR_20' ) end [2025-03-06 12:23:21] Production.INFO: ProcessCDR(1,14620455,1,1,2) [2025-03-06 12:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14620455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 12:23:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14620455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 12:23:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14620455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 12:23:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14620455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 12:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620455', 'tblTempUsageDetail_20' ) start [2025-03-06 12:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620455', 'tblTempUsageDetail_20' ) end [2025-03-06 12:23:26] Production.ERROR: pbx prc_insertCDR start [2025-03-06 12:23:26] Production.ERROR: pbx prc_insertCDR end [2025-03-06 12:23:26] Production.INFO: ==25247== Releasing lock... [2025-03-06 12:23:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 12:23:26] Production.INFO: 64.25 MB #Memory Used# [2025-03-06 12:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 09:24:05 [end_date_ymd] => 2025-03-06 12:24:05 [RateCDR] => 1 ) [2025-03-06 12:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 09:24:05' and `end` < '2025-03-06 12:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 12:24:18] Production.INFO: count ==4875 [2025-03-06 12:24:20] Production.ERROR: pbx CDR StartTime 2025-03-06 09:24:05 - End Time 2025-03-06 12:24:05 [2025-03-06 12:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 12:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620460', 'tblTempUsageDetail_20' ) start [2025-03-06 12:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620460', 'tblTempUsageDetail_20' ) end [2025-03-06 12:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620460', 'tblTempVendorCDR_20' ) start [2025-03-06 12:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620460', 'tblTempVendorCDR_20' ) end [2025-03-06 12:24:20] Production.INFO: ProcessCDR(1,14620460,1,1,2) [2025-03-06 12:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14620460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 12:24:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14620460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 12:24:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14620460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 12:24:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14620460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 12:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620460', 'tblTempUsageDetail_20' ) start [2025-03-06 12:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620460', 'tblTempUsageDetail_20' ) end [2025-03-06 12:24:25] Production.ERROR: pbx prc_insertCDR start [2025-03-06 12:24:25] Production.ERROR: pbx prc_insertCDR end [2025-03-06 12:24:25] Production.INFO: ==25390== Releasing lock... [2025-03-06 12:24:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 12:24:25] Production.INFO: 64.5 MB #Memory Used# [2025-03-06 12:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 09:25:06 [end_date_ymd] => 2025-03-06 12:25:06 [RateCDR] => 1 ) [2025-03-06 12: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-03-06 09:25:06' and `end` < '2025-03-06 12: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-03-06 12:25:19] Production.INFO: count ==4869 [2025-03-06 12:25:21] Production.ERROR: pbx CDR StartTime 2025-03-06 09:25:06 - End Time 2025-03-06 12:25:06 [2025-03-06 12:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 12:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620465', 'tblTempUsageDetail_20' ) start [2025-03-06 12:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620465', 'tblTempUsageDetail_20' ) end [2025-03-06 12:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620465', 'tblTempVendorCDR_20' ) start [2025-03-06 12:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620465', 'tblTempVendorCDR_20' ) end [2025-03-06 12:25:21] Production.INFO: ProcessCDR(1,14620465,1,1,2) [2025-03-06 12:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14620465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 12:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14620465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 12:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14620465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 12:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14620465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 12:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620465', 'tblTempUsageDetail_20' ) start [2025-03-06 12:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620465', 'tblTempUsageDetail_20' ) end [2025-03-06 12:25:26] Production.ERROR: pbx prc_insertCDR start [2025-03-06 12:25:26] Production.ERROR: pbx prc_insertCDR end [2025-03-06 12:25:26] Production.INFO: ==25517== Releasing lock... [2025-03-06 12:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 12:25:26] Production.INFO: 64.5 MB #Memory Used# [2025-03-06 12:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 09:26:05 [end_date_ymd] => 2025-03-06 12:26:05 [RateCDR] => 1 ) [2025-03-06 12: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-03-06 09:26:05' and `end` < '2025-03-06 12: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-03-06 12:26:19] Production.INFO: count ==4869 [2025-03-06 12:26:21] Production.ERROR: pbx CDR StartTime 2025-03-06 09:26:05 - End Time 2025-03-06 12:26:05 [2025-03-06 12:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 12:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620470', 'tblTempUsageDetail_20' ) start [2025-03-06 12:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620470', 'tblTempUsageDetail_20' ) end [2025-03-06 12:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620470', 'tblTempVendorCDR_20' ) start [2025-03-06 12:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620470', 'tblTempVendorCDR_20' ) end [2025-03-06 12:26:21] Production.INFO: ProcessCDR(1,14620470,1,1,2) [2025-03-06 12:26:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14620470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 12:26:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14620470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 12:26:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14620470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 12:26:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14620470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 12:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620470', 'tblTempUsageDetail_20' ) start [2025-03-06 12:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620470', 'tblTempUsageDetail_20' ) end [2025-03-06 12:26:26] Production.ERROR: pbx prc_insertCDR start [2025-03-06 12:26:26] Production.ERROR: pbx prc_insertCDR end [2025-03-06 12:26:26] Production.INFO: ==25628== Releasing lock... [2025-03-06 12:26:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 12:26:26] Production.INFO: 64.5 MB #Memory Used# [2025-03-06 12:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 09:27:05 [end_date_ymd] => 2025-03-06 12:27:05 [RateCDR] => 1 ) [2025-03-06 12:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 09:27:05' and `end` < '2025-03-06 12:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 12:27:18] Production.INFO: count ==4860 [2025-03-06 12:27:20] Production.ERROR: pbx CDR StartTime 2025-03-06 09:27:05 - End Time 2025-03-06 12:27:05 [2025-03-06 12:27:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 12:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620475', 'tblTempUsageDetail_20' ) start [2025-03-06 12:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620475', 'tblTempUsageDetail_20' ) end [2025-03-06 12:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620475', 'tblTempVendorCDR_20' ) start [2025-03-06 12:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620475', 'tblTempVendorCDR_20' ) end [2025-03-06 12:27:21] Production.INFO: ProcessCDR(1,14620475,1,1,2) [2025-03-06 12:27:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14620475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 12:27:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14620475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 12:27:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14620475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 12:27:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14620475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 12:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620475', 'tblTempUsageDetail_20' ) start [2025-03-06 12:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620475', 'tblTempUsageDetail_20' ) end [2025-03-06 12:27:26] Production.ERROR: pbx prc_insertCDR start [2025-03-06 12:27:26] Production.ERROR: pbx prc_insertCDR end [2025-03-06 12:27:26] Production.INFO: ==25727== Releasing lock... [2025-03-06 12:27:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 12:27:26] Production.INFO: 64.5 MB #Memory Used# [2025-03-06 12:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 09:28:06 [end_date_ymd] => 2025-03-06 12:28:06 [RateCDR] => 1 ) [2025-03-06 12:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 09:28:06' and `end` < '2025-03-06 12:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 12:28:19] Production.INFO: count ==4842 [2025-03-06 12:28:21] Production.ERROR: pbx CDR StartTime 2025-03-06 09:28:06 - End Time 2025-03-06 12:28:06 [2025-03-06 12:28:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 12:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620480', 'tblTempUsageDetail_20' ) start [2025-03-06 12:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620480', 'tblTempUsageDetail_20' ) end [2025-03-06 12:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620480', 'tblTempVendorCDR_20' ) start [2025-03-06 12:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620480', 'tblTempVendorCDR_20' ) end [2025-03-06 12:28:21] Production.INFO: ProcessCDR(1,14620480,1,1,2) [2025-03-06 12:28:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14620480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 12:28:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14620480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 12:28:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14620480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 12:28:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14620480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 12:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620480', 'tblTempUsageDetail_20' ) start [2025-03-06 12:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620480', 'tblTempUsageDetail_20' ) end [2025-03-06 12:28:26] Production.ERROR: pbx prc_insertCDR start [2025-03-06 12:28:26] Production.ERROR: pbx prc_insertCDR end [2025-03-06 12:28:26] Production.INFO: ==25827== Releasing lock... [2025-03-06 12:28:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 12:28:26] Production.INFO: 64.25 MB #Memory Used# [2025-03-06 12:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 09:29:06 [end_date_ymd] => 2025-03-06 12:29:06 [RateCDR] => 1 ) [2025-03-06 12:29:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 09:29:06' and `end` < '2025-03-06 12:29:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 12:29:19] Production.INFO: count ==4837 [2025-03-06 12:29:21] Production.ERROR: pbx CDR StartTime 2025-03-06 09:29:06 - End Time 2025-03-06 12:29:06 [2025-03-06 12:29:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 12:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620485', 'tblTempUsageDetail_20' ) start [2025-03-06 12:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620485', 'tblTempUsageDetail_20' ) end [2025-03-06 12:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620485', 'tblTempVendorCDR_20' ) start [2025-03-06 12:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620485', 'tblTempVendorCDR_20' ) end [2025-03-06 12:29:21] Production.INFO: ProcessCDR(1,14620485,1,1,2) [2025-03-06 12:29:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14620485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 12:29:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14620485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 12:29:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14620485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 12:29:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14620485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 12:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620485', 'tblTempUsageDetail_20' ) start [2025-03-06 12:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620485', 'tblTempUsageDetail_20' ) end [2025-03-06 12:29:26] Production.ERROR: pbx prc_insertCDR start [2025-03-06 12:29:26] Production.ERROR: pbx prc_insertCDR end [2025-03-06 12:29:26] Production.INFO: ==25931== Releasing lock... [2025-03-06 12:29:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 12:29:26] Production.INFO: 64.25 MB #Memory Used# [2025-03-06 12:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 09:30:07 [end_date_ymd] => 2025-03-06 12:30:07 [RateCDR] => 1 ) [2025-03-06 12:30: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-03-06 09:30:07' and `end` < '2025-03-06 12:30: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-03-06 12:30:20] Production.INFO: count ==4838 [2025-03-06 12:30:22] Production.ERROR: pbx CDR StartTime 2025-03-06 09:30:07 - End Time 2025-03-06 12:30:07 [2025-03-06 12:30:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 12:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620491', 'tblTempUsageDetail_20' ) start [2025-03-06 12:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620491', 'tblTempUsageDetail_20' ) end [2025-03-06 12:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620491', 'tblTempVendorCDR_20' ) start [2025-03-06 12:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620491', 'tblTempVendorCDR_20' ) end [2025-03-06 12:30:22] Production.INFO: ProcessCDR(1,14620491,1,1,2) [2025-03-06 12:30:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14620491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 12:30:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14620491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 12:30:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14620491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 12:30:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14620491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 12:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620491', 'tblTempUsageDetail_20' ) start [2025-03-06 12:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620491', 'tblTempUsageDetail_20' ) end [2025-03-06 12:30:27] Production.ERROR: pbx prc_insertCDR start [2025-03-06 12:30:27] Production.ERROR: pbx prc_insertCDR end [2025-03-06 12:30:27] Production.INFO: ==26023== Releasing lock... [2025-03-06 12:30:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 12:30:27] Production.INFO: 64.25 MB #Memory Used# [2025-03-06 12:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 09:31:06 [end_date_ymd] => 2025-03-06 12:31:06 [RateCDR] => 1 ) [2025-03-06 12:31:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 09:31:06' and `end` < '2025-03-06 12:31:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 12:31:19] Production.INFO: count ==4879 [2025-03-06 12:31:21] Production.ERROR: pbx CDR StartTime 2025-03-06 09:31:06 - End Time 2025-03-06 12:31:06 [2025-03-06 12:31:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 12:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620496', 'tblTempUsageDetail_20' ) start [2025-03-06 12:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620496', 'tblTempUsageDetail_20' ) end [2025-03-06 12:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620496', 'tblTempVendorCDR_20' ) start [2025-03-06 12:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620496', 'tblTempVendorCDR_20' ) end [2025-03-06 12:31:21] Production.INFO: ProcessCDR(1,14620496,1,1,2) [2025-03-06 12:31:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14620496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 12:31:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14620496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 12:31:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14620496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 12:31:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14620496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 12:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620496', 'tblTempUsageDetail_20' ) start [2025-03-06 12:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620496', 'tblTempUsageDetail_20' ) end [2025-03-06 12:31:26] Production.ERROR: pbx prc_insertCDR start [2025-03-06 12:31:26] Production.ERROR: pbx prc_insertCDR end [2025-03-06 12:31:26] Production.INFO: ==26108== Releasing lock... [2025-03-06 12:31:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 12:31:26] Production.INFO: 64.5 MB #Memory Used# [2025-03-06 12:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 09:32:06 [end_date_ymd] => 2025-03-06 12:32:06 [RateCDR] => 1 ) [2025-03-06 12: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-03-06 09:32:06' and `end` < '2025-03-06 12: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-03-06 12:32:19] Production.INFO: count ==4887 [2025-03-06 12:32:21] Production.ERROR: pbx CDR StartTime 2025-03-06 09:32:06 - End Time 2025-03-06 12:32:06 [2025-03-06 12:32:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 12:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620501', 'tblTempUsageDetail_20' ) start [2025-03-06 12:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620501', 'tblTempUsageDetail_20' ) end [2025-03-06 12:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620501', 'tblTempVendorCDR_20' ) start [2025-03-06 12:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620501', 'tblTempVendorCDR_20' ) end [2025-03-06 12:32:21] Production.INFO: ProcessCDR(1,14620501,1,1,2) [2025-03-06 12:32:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14620501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 12:32:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14620501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 12:32:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14620501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 12:32:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14620501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 12:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620501', 'tblTempUsageDetail_20' ) start [2025-03-06 12:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620501', 'tblTempUsageDetail_20' ) end [2025-03-06 12:32:26] Production.ERROR: pbx prc_insertCDR start [2025-03-06 12:32:26] Production.ERROR: pbx prc_insertCDR end [2025-03-06 12:32:26] Production.INFO: ==26179== Releasing lock... [2025-03-06 12:32:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 12:32:26] Production.INFO: 64.5 MB #Memory Used# [2025-03-06 12:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 09:33:05 [end_date_ymd] => 2025-03-06 12:33:05 [RateCDR] => 1 ) [2025-03-06 12:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 09:33:05' and `end` < '2025-03-06 12:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 12:33:18] Production.INFO: count ==4888 [2025-03-06 12:33:20] Production.ERROR: pbx CDR StartTime 2025-03-06 09:33:05 - End Time 2025-03-06 12:33:05 [2025-03-06 12:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 12:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620506', 'tblTempUsageDetail_20' ) start [2025-03-06 12:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620506', 'tblTempUsageDetail_20' ) end [2025-03-06 12:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620506', 'tblTempVendorCDR_20' ) start [2025-03-06 12:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620506', 'tblTempVendorCDR_20' ) end [2025-03-06 12:33:20] Production.INFO: ProcessCDR(1,14620506,1,1,2) [2025-03-06 12:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14620506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 12:33:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14620506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 12:33:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14620506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 12:33:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14620506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 12:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620506', 'tblTempUsageDetail_20' ) start [2025-03-06 12:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620506', 'tblTempUsageDetail_20' ) end [2025-03-06 12:33:25] Production.ERROR: pbx prc_insertCDR start [2025-03-06 12:33:25] Production.ERROR: pbx prc_insertCDR end [2025-03-06 12:33:25] Production.INFO: ==26252== Releasing lock... [2025-03-06 12:33:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 12:33:25] Production.INFO: 64.5 MB #Memory Used# [2025-03-06 12:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 09:34:06 [end_date_ymd] => 2025-03-06 12:34:06 [RateCDR] => 1 ) [2025-03-06 12: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-03-06 09:34:06' and `end` < '2025-03-06 12: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-03-06 12:34:19] Production.INFO: count ==4861 [2025-03-06 12:34:21] Production.ERROR: pbx CDR StartTime 2025-03-06 09:34:06 - End Time 2025-03-06 12:34:06 [2025-03-06 12:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 12:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620511', 'tblTempUsageDetail_20' ) start [2025-03-06 12:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620511', 'tblTempUsageDetail_20' ) end [2025-03-06 12:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620511', 'tblTempVendorCDR_20' ) start [2025-03-06 12:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620511', 'tblTempVendorCDR_20' ) end [2025-03-06 12:34:21] Production.INFO: ProcessCDR(1,14620511,1,1,2) [2025-03-06 12:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14620511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 12:34:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14620511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 12:34:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14620511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 12:34:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14620511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 12:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620511', 'tblTempUsageDetail_20' ) start [2025-03-06 12:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620511', 'tblTempUsageDetail_20' ) end [2025-03-06 12:34:26] Production.ERROR: pbx prc_insertCDR start [2025-03-06 12:34:26] Production.ERROR: pbx prc_insertCDR end [2025-03-06 12:34:26] Production.INFO: ==26326== Releasing lock... [2025-03-06 12:34:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 12:34:26] Production.INFO: 64.5 MB #Memory Used# [2025-03-06 12:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 09:35:05 [end_date_ymd] => 2025-03-06 12:35:05 [RateCDR] => 1 ) [2025-03-06 12:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 09:35:05' and `end` < '2025-03-06 12:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 12:35:18] Production.INFO: count ==4818 [2025-03-06 12:35:20] Production.ERROR: pbx CDR StartTime 2025-03-06 09:35:05 - End Time 2025-03-06 12:35:05 [2025-03-06 12:35:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 12:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620516', 'tblTempUsageDetail_20' ) start [2025-03-06 12:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620516', 'tblTempUsageDetail_20' ) end [2025-03-06 12:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620516', 'tblTempVendorCDR_20' ) start [2025-03-06 12:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620516', 'tblTempVendorCDR_20' ) end [2025-03-06 12:35:20] Production.INFO: ProcessCDR(1,14620516,1,1,2) [2025-03-06 12:35:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14620516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 12:35:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14620516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 12:35:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14620516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 12:35:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14620516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 12:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620516', 'tblTempUsageDetail_20' ) start [2025-03-06 12:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620516', 'tblTempUsageDetail_20' ) end [2025-03-06 12:35:25] Production.ERROR: pbx prc_insertCDR start [2025-03-06 12:35:25] Production.ERROR: pbx prc_insertCDR end [2025-03-06 12:35:25] Production.INFO: ==26396== Releasing lock... [2025-03-06 12:35:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 12:35:25] Production.INFO: 64 MB #Memory Used# [2025-03-06 12:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 09:36:05 [end_date_ymd] => 2025-03-06 12:36:05 [RateCDR] => 1 ) [2025-03-06 12:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 09:36:05' and `end` < '2025-03-06 12:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 12:36:18] Production.INFO: count ==4799 [2025-03-06 12:36:20] Production.ERROR: pbx CDR StartTime 2025-03-06 09:36:05 - End Time 2025-03-06 12:36:05 [2025-03-06 12:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 12:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620521', 'tblTempUsageDetail_20' ) start [2025-03-06 12:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620521', 'tblTempUsageDetail_20' ) end [2025-03-06 12:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620521', 'tblTempVendorCDR_20' ) start [2025-03-06 12:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620521', 'tblTempVendorCDR_20' ) end [2025-03-06 12:36:21] Production.INFO: ProcessCDR(1,14620521,1,1,2) [2025-03-06 12:36:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14620521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 12:36:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14620521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 12:36:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14620521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 12:36:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14620521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 12:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620521', 'tblTempUsageDetail_20' ) start [2025-03-06 12:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620521', 'tblTempUsageDetail_20' ) end [2025-03-06 12:36:25] Production.ERROR: pbx prc_insertCDR start [2025-03-06 12:36:26] Production.ERROR: pbx prc_insertCDR end [2025-03-06 12:36:26] Production.INFO: ==26469== Releasing lock... [2025-03-06 12:36:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 12:36:26] Production.INFO: 64 MB #Memory Used# [2025-03-06 12:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 09:37:05 [end_date_ymd] => 2025-03-06 12:37:05 [RateCDR] => 1 ) [2025-03-06 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-03-06 09:37:05' and `end` < '2025-03-06 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-03-06 12:37:18] Production.INFO: count ==4784 [2025-03-06 12:37:20] Production.ERROR: pbx CDR StartTime 2025-03-06 09:37:05 - End Time 2025-03-06 12:37:05 [2025-03-06 12:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 12:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620526', 'tblTempUsageDetail_20' ) start [2025-03-06 12:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620526', 'tblTempUsageDetail_20' ) end [2025-03-06 12:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620526', 'tblTempVendorCDR_20' ) start [2025-03-06 12:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620526', 'tblTempVendorCDR_20' ) end [2025-03-06 12:37:20] Production.INFO: ProcessCDR(1,14620526,1,1,2) [2025-03-06 12:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14620526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 12:37:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14620526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 12:37:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14620526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 12:37:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14620526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 12:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620526', 'tblTempUsageDetail_20' ) start [2025-03-06 12:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620526', 'tblTempUsageDetail_20' ) end [2025-03-06 12:37:26] Production.ERROR: pbx prc_insertCDR start [2025-03-06 12:37:26] Production.ERROR: pbx prc_insertCDR end [2025-03-06 12:37:26] Production.INFO: ==26541== Releasing lock... [2025-03-06 12:37:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 12:37:26] Production.INFO: 63.75 MB #Memory Used# [2025-03-06 12:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 09:38:05 [end_date_ymd] => 2025-03-06 12:38:05 [RateCDR] => 1 ) [2025-03-06 12:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 09:38:05' and `end` < '2025-03-06 12:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 12:38:18] Production.INFO: count ==4785 [2025-03-06 12:38:21] Production.ERROR: pbx CDR StartTime 2025-03-06 09:38:05 - End Time 2025-03-06 12:38:05 [2025-03-06 12:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 12:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620531', 'tblTempUsageDetail_20' ) start [2025-03-06 12:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620531', 'tblTempUsageDetail_20' ) end [2025-03-06 12:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620531', 'tblTempVendorCDR_20' ) start [2025-03-06 12:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620531', 'tblTempVendorCDR_20' ) end [2025-03-06 12:38:21] Production.INFO: ProcessCDR(1,14620531,1,1,2) [2025-03-06 12:38:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14620531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 12:38:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14620531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 12:38:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14620531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 12:38:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14620531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 12:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620531', 'tblTempUsageDetail_20' ) start [2025-03-06 12:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620531', 'tblTempUsageDetail_20' ) end [2025-03-06 12:38:26] Production.ERROR: pbx prc_insertCDR start [2025-03-06 12:38:26] Production.ERROR: pbx prc_insertCDR end [2025-03-06 12:38:26] Production.INFO: ==26615== Releasing lock... [2025-03-06 12:38:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 12:38:26] Production.INFO: 63.75 MB #Memory Used# [2025-03-06 12:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 09:39:05 [end_date_ymd] => 2025-03-06 12:39:05 [RateCDR] => 1 ) [2025-03-06 12:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 09:39:05' and `end` < '2025-03-06 12:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 12:39:18] Production.INFO: count ==4778 [2025-03-06 12:39:20] Production.ERROR: pbx CDR StartTime 2025-03-06 09:39:05 - End Time 2025-03-06 12:39:05 [2025-03-06 12:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 12:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620536', 'tblTempUsageDetail_20' ) start [2025-03-06 12:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620536', 'tblTempUsageDetail_20' ) end [2025-03-06 12:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620536', 'tblTempVendorCDR_20' ) start [2025-03-06 12:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620536', 'tblTempVendorCDR_20' ) end [2025-03-06 12:39:20] Production.INFO: ProcessCDR(1,14620536,1,1,2) [2025-03-06 12:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14620536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 12:39:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14620536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 12:39:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14620536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 12:39:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14620536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 12:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620536', 'tblTempUsageDetail_20' ) start [2025-03-06 12:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620536', 'tblTempUsageDetail_20' ) end [2025-03-06 12:39:25] Production.ERROR: pbx prc_insertCDR start [2025-03-06 12:39:25] Production.ERROR: pbx prc_insertCDR end [2025-03-06 12:39:25] Production.INFO: ==26740== Releasing lock... [2025-03-06 12:39:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 12:39:25] Production.INFO: 63.75 MB #Memory Used# [2025-03-06 12:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 09:40:06 [end_date_ymd] => 2025-03-06 12:40:06 [RateCDR] => 1 ) [2025-03-06 12:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 09:40:06' and `end` < '2025-03-06 12:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 12:40:19] Production.INFO: count ==4777 [2025-03-06 12:40:21] Production.ERROR: pbx CDR StartTime 2025-03-06 09:40:06 - End Time 2025-03-06 12:40:06 [2025-03-06 12:40:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 12:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620542', 'tblTempUsageDetail_20' ) start [2025-03-06 12:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620542', 'tblTempUsageDetail_20' ) end [2025-03-06 12:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620542', 'tblTempVendorCDR_20' ) start [2025-03-06 12:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620542', 'tblTempVendorCDR_20' ) end [2025-03-06 12:40:21] Production.INFO: ProcessCDR(1,14620542,1,1,2) [2025-03-06 12:40:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14620542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 12:40:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14620542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 12:40:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14620542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 12:40:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14620542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 12:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620542', 'tblTempUsageDetail_20' ) start [2025-03-06 12:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620542', 'tblTempUsageDetail_20' ) end [2025-03-06 12:40:26] Production.ERROR: pbx prc_insertCDR start [2025-03-06 12:40:26] Production.ERROR: pbx prc_insertCDR end [2025-03-06 12:40:26] Production.INFO: ==26826== Releasing lock... [2025-03-06 12:40:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 12:40:26] Production.INFO: 63.75 MB #Memory Used# [2025-03-06 12:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 09:41:05 [end_date_ymd] => 2025-03-06 12:41:05 [RateCDR] => 1 ) [2025-03-06 12:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 09:41:05' and `end` < '2025-03-06 12:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 12:41:18] Production.INFO: count ==4831 [2025-03-06 12:41:20] Production.ERROR: pbx CDR StartTime 2025-03-06 09:41:05 - End Time 2025-03-06 12:41:05 [2025-03-06 12:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 12:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620547', 'tblTempUsageDetail_20' ) start [2025-03-06 12:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620547', 'tblTempUsageDetail_20' ) end [2025-03-06 12:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620547', 'tblTempVendorCDR_20' ) start [2025-03-06 12:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620547', 'tblTempVendorCDR_20' ) end [2025-03-06 12:41:20] Production.INFO: ProcessCDR(1,14620547,1,1,2) [2025-03-06 12:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14620547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 12:41:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14620547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 12:41:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14620547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 12:41:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14620547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 12:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620547', 'tblTempUsageDetail_20' ) start [2025-03-06 12:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620547', 'tblTempUsageDetail_20' ) end [2025-03-06 12:41:25] Production.ERROR: pbx prc_insertCDR start [2025-03-06 12:41:25] Production.ERROR: pbx prc_insertCDR end [2025-03-06 12:41:25] Production.INFO: ==26911== Releasing lock... [2025-03-06 12:41:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 12:41:25] Production.INFO: 64.25 MB #Memory Used# [2025-03-06 12:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 09:42:06 [end_date_ymd] => 2025-03-06 12:42:06 [RateCDR] => 1 ) [2025-03-06 12: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-03-06 09:42:06' and `end` < '2025-03-06 12: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-03-06 12:42:19] Production.INFO: count ==4832 [2025-03-06 12:42:21] Production.ERROR: pbx CDR StartTime 2025-03-06 09:42:06 - End Time 2025-03-06 12:42:06 [2025-03-06 12:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 12:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620552', 'tblTempUsageDetail_20' ) start [2025-03-06 12:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620552', 'tblTempUsageDetail_20' ) end [2025-03-06 12:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620552', 'tblTempVendorCDR_20' ) start [2025-03-06 12:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620552', 'tblTempVendorCDR_20' ) end [2025-03-06 12:42:21] Production.INFO: ProcessCDR(1,14620552,1,1,2) [2025-03-06 12:42:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14620552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 12:42:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14620552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 12:42:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14620552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 12:42:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14620552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 12:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620552', 'tblTempUsageDetail_20' ) start [2025-03-06 12:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620552', 'tblTempUsageDetail_20' ) end [2025-03-06 12:42:26] Production.ERROR: pbx prc_insertCDR start [2025-03-06 12:42:26] Production.ERROR: pbx prc_insertCDR end [2025-03-06 12:42:26] Production.INFO: ==26998== Releasing lock... [2025-03-06 12:42:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 12:42:26] Production.INFO: 64.25 MB #Memory Used# [2025-03-06 12:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 09:43:06 [end_date_ymd] => 2025-03-06 12:43:06 [RateCDR] => 1 ) [2025-03-06 12: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-03-06 09:43:06' and `end` < '2025-03-06 12: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-03-06 12:43:19] Production.INFO: count ==4853 [2025-03-06 12:43:21] Production.ERROR: pbx CDR StartTime 2025-03-06 09:43:06 - End Time 2025-03-06 12:43:06 [2025-03-06 12:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 12:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620557', 'tblTempUsageDetail_20' ) start [2025-03-06 12:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620557', 'tblTempUsageDetail_20' ) end [2025-03-06 12:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620557', 'tblTempVendorCDR_20' ) start [2025-03-06 12:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620557', 'tblTempVendorCDR_20' ) end [2025-03-06 12:43:21] Production.INFO: ProcessCDR(1,14620557,1,1,2) [2025-03-06 12:43:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14620557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 12:43:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14620557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 12:43:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14620557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 12:43:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14620557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 12:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620557', 'tblTempUsageDetail_20' ) start [2025-03-06 12:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620557', 'tblTempUsageDetail_20' ) end [2025-03-06 12:43:26] Production.ERROR: pbx prc_insertCDR start [2025-03-06 12:43:26] Production.ERROR: pbx prc_insertCDR end [2025-03-06 12:43:26] Production.INFO: ==27082== Releasing lock... [2025-03-06 12:43:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 12:43:26] Production.INFO: 64.25 MB #Memory Used# [2025-03-06 12:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 09:44:05 [end_date_ymd] => 2025-03-06 12:44:05 [RateCDR] => 1 ) [2025-03-06 12:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 09:44:05' and `end` < '2025-03-06 12:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 12:44:18] Production.INFO: count ==4876 [2025-03-06 12:44:20] Production.ERROR: pbx CDR StartTime 2025-03-06 09:44:05 - End Time 2025-03-06 12:44:05 [2025-03-06 12:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 12:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620562', 'tblTempUsageDetail_20' ) start [2025-03-06 12:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620562', 'tblTempUsageDetail_20' ) end [2025-03-06 12:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620562', 'tblTempVendorCDR_20' ) start [2025-03-06 12:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620562', 'tblTempVendorCDR_20' ) end [2025-03-06 12:44:20] Production.INFO: ProcessCDR(1,14620562,1,1,2) [2025-03-06 12:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14620562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 12:44:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14620562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 12:44:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14620562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 12:44:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14620562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 12:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620562', 'tblTempUsageDetail_20' ) start [2025-03-06 12:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620562', 'tblTempUsageDetail_20' ) end [2025-03-06 12:44:25] Production.ERROR: pbx prc_insertCDR start [2025-03-06 12:44:25] Production.ERROR: pbx prc_insertCDR end [2025-03-06 12:44:25] Production.INFO: ==27163== Releasing lock... [2025-03-06 12:44:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 12:44:25] Production.INFO: 64.5 MB #Memory Used# [2025-03-06 12:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 09:45:06 [end_date_ymd] => 2025-03-06 12:45:06 [RateCDR] => 1 ) [2025-03-06 12:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 09:45:06' and `end` < '2025-03-06 12:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 12:45:19] Production.INFO: count ==4886 [2025-03-06 12:45:21] Production.ERROR: pbx CDR StartTime 2025-03-06 09:45:06 - End Time 2025-03-06 12:45:06 [2025-03-06 12:45:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 12:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620567', 'tblTempUsageDetail_20' ) start [2025-03-06 12:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620567', 'tblTempUsageDetail_20' ) end [2025-03-06 12:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620567', 'tblTempVendorCDR_20' ) start [2025-03-06 12:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620567', 'tblTempVendorCDR_20' ) end [2025-03-06 12:45:21] Production.INFO: ProcessCDR(1,14620567,1,1,2) [2025-03-06 12:45:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14620567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 12:45:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14620567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 12:45:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14620567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 12:45:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14620567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 12:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620567', 'tblTempUsageDetail_20' ) start [2025-03-06 12:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620567', 'tblTempUsageDetail_20' ) end [2025-03-06 12:45:26] Production.ERROR: pbx prc_insertCDR start [2025-03-06 12:45:26] Production.ERROR: pbx prc_insertCDR end [2025-03-06 12:45:26] Production.INFO: ==27248== Releasing lock... [2025-03-06 12:45:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 12:45:26] Production.INFO: 64.5 MB #Memory Used# [2025-03-06 12:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 09:46:05 [end_date_ymd] => 2025-03-06 12:46:05 [RateCDR] => 1 ) [2025-03-06 12:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 09:46:05' and `end` < '2025-03-06 12:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 12:46:18] Production.INFO: count ==4897 [2025-03-06 12:46:20] Production.ERROR: pbx CDR StartTime 2025-03-06 09:46:05 - End Time 2025-03-06 12:46:05 [2025-03-06 12:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 12:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620572', 'tblTempUsageDetail_20' ) start [2025-03-06 12:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620572', 'tblTempUsageDetail_20' ) end [2025-03-06 12:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620572', 'tblTempVendorCDR_20' ) start [2025-03-06 12:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620572', 'tblTempVendorCDR_20' ) end [2025-03-06 12:46:21] Production.INFO: ProcessCDR(1,14620572,1,1,2) [2025-03-06 12:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14620572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 12:46:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14620572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 12:46:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14620572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 12:46:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14620572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 12:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620572', 'tblTempUsageDetail_20' ) start [2025-03-06 12:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620572', 'tblTempUsageDetail_20' ) end [2025-03-06 12:46:26] Production.ERROR: pbx prc_insertCDR start [2025-03-06 12:46:26] Production.ERROR: pbx prc_insertCDR end [2025-03-06 12:46:26] Production.INFO: ==27331== Releasing lock... [2025-03-06 12:46:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 12:46:26] Production.INFO: 64.75 MB #Memory Used# [2025-03-06 12:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 09:47:06 [end_date_ymd] => 2025-03-06 12:47:06 [RateCDR] => 1 ) [2025-03-06 12:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 09:47:06' and `end` < '2025-03-06 12:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 12:47:19] Production.INFO: count ==4899 [2025-03-06 12:47:21] Production.ERROR: pbx CDR StartTime 2025-03-06 09:47:06 - End Time 2025-03-06 12:47:06 [2025-03-06 12:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 12:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620577', 'tblTempUsageDetail_20' ) start [2025-03-06 12:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620577', 'tblTempUsageDetail_20' ) end [2025-03-06 12:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620577', 'tblTempVendorCDR_20' ) start [2025-03-06 12:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620577', 'tblTempVendorCDR_20' ) end [2025-03-06 12:47:21] Production.INFO: ProcessCDR(1,14620577,1,1,2) [2025-03-06 12:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14620577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 12:47:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14620577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 12:47:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14620577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 12:47:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14620577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 12:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620577', 'tblTempUsageDetail_20' ) start [2025-03-06 12:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620577', 'tblTempUsageDetail_20' ) end [2025-03-06 12:47:26] Production.ERROR: pbx prc_insertCDR start [2025-03-06 12:47:26] Production.ERROR: pbx prc_insertCDR end [2025-03-06 12:47:26] Production.INFO: ==27415== Releasing lock... [2025-03-06 12:47:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 12:47:26] Production.INFO: 64.75 MB #Memory Used# [2025-03-06 12:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 09:48:05 [end_date_ymd] => 2025-03-06 12:48:05 [RateCDR] => 1 ) [2025-03-06 12:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 09:48:05' and `end` < '2025-03-06 12:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 12:48:19] Production.INFO: count ==4884 [2025-03-06 12:48:21] Production.ERROR: pbx CDR StartTime 2025-03-06 09:48:05 - End Time 2025-03-06 12:48:05 [2025-03-06 12:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 12:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620582', 'tblTempUsageDetail_20' ) start [2025-03-06 12:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620582', 'tblTempUsageDetail_20' ) end [2025-03-06 12:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620582', 'tblTempVendorCDR_20' ) start [2025-03-06 12:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620582', 'tblTempVendorCDR_20' ) end [2025-03-06 12:48:21] Production.INFO: ProcessCDR(1,14620582,1,1,2) [2025-03-06 12:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14620582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 12:48:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14620582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 12:48:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14620582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 12:48:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14620582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 12:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620582', 'tblTempUsageDetail_20' ) start [2025-03-06 12:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620582', 'tblTempUsageDetail_20' ) end [2025-03-06 12:48:25] Production.ERROR: pbx prc_insertCDR start [2025-03-06 12:48:25] Production.ERROR: pbx prc_insertCDR end [2025-03-06 12:48:25] Production.INFO: ==27486== Releasing lock... [2025-03-06 12:48:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 12:48:25] Production.INFO: 64.5 MB #Memory Used# [2025-03-06 12:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 09:49:06 [end_date_ymd] => 2025-03-06 12:49:06 [RateCDR] => 1 ) [2025-03-06 12: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-03-06 09:49:06' and `end` < '2025-03-06 12: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-03-06 12:49:19] Production.INFO: count ==4865 [2025-03-06 12:49:21] Production.ERROR: pbx CDR StartTime 2025-03-06 09:49:06 - End Time 2025-03-06 12:49:06 [2025-03-06 12:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 12:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620587', 'tblTempUsageDetail_20' ) start [2025-03-06 12:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620587', 'tblTempUsageDetail_20' ) end [2025-03-06 12:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620587', 'tblTempVendorCDR_20' ) start [2025-03-06 12:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620587', 'tblTempVendorCDR_20' ) end [2025-03-06 12:49:21] Production.INFO: ProcessCDR(1,14620587,1,1,2) [2025-03-06 12:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14620587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 12:49:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14620587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 12:49:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14620587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 12:49:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14620587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 12:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620587', 'tblTempUsageDetail_20' ) start [2025-03-06 12:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620587', 'tblTempUsageDetail_20' ) end [2025-03-06 12:49:26] Production.ERROR: pbx prc_insertCDR start [2025-03-06 12:49:26] Production.ERROR: pbx prc_insertCDR end [2025-03-06 12:49:26] Production.INFO: ==27559== Releasing lock... [2025-03-06 12:49:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 12:49:26] Production.INFO: 64.5 MB #Memory Used# [2025-03-06 12:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 09:50:06 [end_date_ymd] => 2025-03-06 12:50:06 [RateCDR] => 1 ) [2025-03-06 12:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 09:50:06' and `end` < '2025-03-06 12:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 12:50:19] Production.INFO: count ==4887 [2025-03-06 12:50:21] Production.ERROR: pbx CDR StartTime 2025-03-06 09:50:06 - End Time 2025-03-06 12:50:06 [2025-03-06 12:50:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 12:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620593', 'tblTempUsageDetail_20' ) start [2025-03-06 12:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620593', 'tblTempUsageDetail_20' ) end [2025-03-06 12:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620593', 'tblTempVendorCDR_20' ) start [2025-03-06 12:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620593', 'tblTempVendorCDR_20' ) end [2025-03-06 12:50:21] Production.INFO: ProcessCDR(1,14620593,1,1,2) [2025-03-06 12:50:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14620593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 12:50:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14620593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 12:50:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14620593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 12:50:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14620593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 12:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620593', 'tblTempUsageDetail_20' ) start [2025-03-06 12:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620593', 'tblTempUsageDetail_20' ) end [2025-03-06 12:50:26] Production.ERROR: pbx prc_insertCDR start [2025-03-06 12:50:26] Production.ERROR: pbx prc_insertCDR end [2025-03-06 12:50:26] Production.INFO: ==27635== Releasing lock... [2025-03-06 12:50:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 12:50:26] Production.INFO: 64.5 MB #Memory Used# [2025-03-06 12:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 09:51:05 [end_date_ymd] => 2025-03-06 12:51:05 [RateCDR] => 1 ) [2025-03-06 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-03-06 09:51:05' and `end` < '2025-03-06 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-03-06 12:51:18] Production.INFO: count ==4949 [2025-03-06 12:51:20] Production.ERROR: pbx CDR StartTime 2025-03-06 09:51:05 - End Time 2025-03-06 12:51:05 [2025-03-06 12:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 12:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620598', 'tblTempUsageDetail_20' ) start [2025-03-06 12:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620598', 'tblTempUsageDetail_20' ) end [2025-03-06 12:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620598', 'tblTempVendorCDR_20' ) start [2025-03-06 12:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620598', 'tblTempVendorCDR_20' ) end [2025-03-06 12:51:20] Production.INFO: ProcessCDR(1,14620598,1,1,2) [2025-03-06 12:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14620598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 12:51:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14620598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 12:51:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14620598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 12:51:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14620598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 12:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620598', 'tblTempUsageDetail_20' ) start [2025-03-06 12:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620598', 'tblTempUsageDetail_20' ) end [2025-03-06 12:51:25] Production.ERROR: pbx prc_insertCDR start [2025-03-06 12:51:26] Production.ERROR: pbx prc_insertCDR end [2025-03-06 12:51:26] Production.INFO: ==27709== Releasing lock... [2025-03-06 12:51:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 12:51:26] Production.INFO: 65 MB #Memory Used# [2025-03-06 12:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 09:52:05 [end_date_ymd] => 2025-03-06 12:52:05 [RateCDR] => 1 ) [2025-03-06 12:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 09:52:05' and `end` < '2025-03-06 12:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 12:52:18] Production.INFO: count ==4973 [2025-03-06 12:52:20] Production.ERROR: pbx CDR StartTime 2025-03-06 09:52:05 - End Time 2025-03-06 12:52:05 [2025-03-06 12:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 12:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620603', 'tblTempUsageDetail_20' ) start [2025-03-06 12:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620603', 'tblTempUsageDetail_20' ) end [2025-03-06 12:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620603', 'tblTempVendorCDR_20' ) start [2025-03-06 12:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620603', 'tblTempVendorCDR_20' ) end [2025-03-06 12:52:20] Production.INFO: ProcessCDR(1,14620603,1,1,2) [2025-03-06 12:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14620603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 12:52:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14620603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 12:52:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14620603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 12:52:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14620603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 12:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620603', 'tblTempUsageDetail_20' ) start [2025-03-06 12:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620603', 'tblTempUsageDetail_20' ) end [2025-03-06 12:52:25] Production.ERROR: pbx prc_insertCDR start [2025-03-06 12:52:25] Production.ERROR: pbx prc_insertCDR end [2025-03-06 12:52:25] Production.INFO: ==27779== Releasing lock... [2025-03-06 12:52:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 12:52:25] Production.INFO: 65.25 MB #Memory Used# [2025-03-06 12:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 09:53:05 [end_date_ymd] => 2025-03-06 12:53:05 [RateCDR] => 1 ) [2025-03-06 12:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 09:53:05' and `end` < '2025-03-06 12:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 12:53:18] Production.INFO: count ==4972 [2025-03-06 12:53:20] Production.ERROR: pbx CDR StartTime 2025-03-06 09:53:05 - End Time 2025-03-06 12:53:05 [2025-03-06 12:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 12:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620608', 'tblTempUsageDetail_20' ) start [2025-03-06 12:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620608', 'tblTempUsageDetail_20' ) end [2025-03-06 12:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620608', 'tblTempVendorCDR_20' ) start [2025-03-06 12:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620608', 'tblTempVendorCDR_20' ) end [2025-03-06 12:53:21] Production.INFO: ProcessCDR(1,14620608,1,1,2) [2025-03-06 12:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14620608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 12:53:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14620608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 12:53:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14620608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 12:53:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14620608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 12:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620608', 'tblTempUsageDetail_20' ) start [2025-03-06 12:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620608', 'tblTempUsageDetail_20' ) end [2025-03-06 12:53:25] Production.ERROR: pbx prc_insertCDR start [2025-03-06 12:53:25] Production.ERROR: pbx prc_insertCDR end [2025-03-06 12:53:25] Production.INFO: ==27853== Releasing lock... [2025-03-06 12:53:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 12:53:25] Production.INFO: 65.25 MB #Memory Used# [2025-03-06 12:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 09:54:05 [end_date_ymd] => 2025-03-06 12:54:05 [RateCDR] => 1 ) [2025-03-06 12:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 09:54:05' and `end` < '2025-03-06 12:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 12:54:18] Production.INFO: count ==4959 [2025-03-06 12:54:20] Production.ERROR: pbx CDR StartTime 2025-03-06 09:54:05 - End Time 2025-03-06 12:54:05 [2025-03-06 12:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 12:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620613', 'tblTempUsageDetail_20' ) start [2025-03-06 12:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620613', 'tblTempUsageDetail_20' ) end [2025-03-06 12:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620613', 'tblTempVendorCDR_20' ) start [2025-03-06 12:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620613', 'tblTempVendorCDR_20' ) end [2025-03-06 12:54:20] Production.INFO: ProcessCDR(1,14620613,1,1,2) [2025-03-06 12:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14620613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 12:54:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14620613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 12:54:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14620613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 12:54:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14620613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 12:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620613', 'tblTempUsageDetail_20' ) start [2025-03-06 12:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620613', 'tblTempUsageDetail_20' ) end [2025-03-06 12:54:25] Production.ERROR: pbx prc_insertCDR start [2025-03-06 12:54:25] Production.ERROR: pbx prc_insertCDR end [2025-03-06 12:54:25] Production.INFO: ==27923== Releasing lock... [2025-03-06 12:54:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 12:54:25] Production.INFO: 65.25 MB #Memory Used# [2025-03-06 12:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 09:55:06 [end_date_ymd] => 2025-03-06 12:55:06 [RateCDR] => 1 ) [2025-03-06 12: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-03-06 09:55:06' and `end` < '2025-03-06 12: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-03-06 12:55:19] Production.INFO: count ==4964 [2025-03-06 12:55:21] Production.ERROR: pbx CDR StartTime 2025-03-06 09:55:06 - End Time 2025-03-06 12:55:06 [2025-03-06 12:55:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 12:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620618', 'tblTempUsageDetail_20' ) start [2025-03-06 12:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620618', 'tblTempUsageDetail_20' ) end [2025-03-06 12:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620618', 'tblTempVendorCDR_20' ) start [2025-03-06 12:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620618', 'tblTempVendorCDR_20' ) end [2025-03-06 12:55:21] Production.INFO: ProcessCDR(1,14620618,1,1,2) [2025-03-06 12:55:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14620618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 12:55:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14620618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 12:55:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14620618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 12:55:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14620618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 12:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620618', 'tblTempUsageDetail_20' ) start [2025-03-06 12:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620618', 'tblTempUsageDetail_20' ) end [2025-03-06 12:55:26] Production.ERROR: pbx prc_insertCDR start [2025-03-06 12:55:26] Production.ERROR: pbx prc_insertCDR end [2025-03-06 12:55:26] Production.INFO: ==28035== Releasing lock... [2025-03-06 12:55:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 12:55:26] Production.INFO: 65.25 MB #Memory Used# [2025-03-06 12:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 09:56:05 [end_date_ymd] => 2025-03-06 12:56:05 [RateCDR] => 1 ) [2025-03-06 12:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 09:56:05' and `end` < '2025-03-06 12:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 12:56:18] Production.INFO: count ==4978 [2025-03-06 12:56:20] Production.ERROR: pbx CDR StartTime 2025-03-06 09:56:05 - End Time 2025-03-06 12:56:05 [2025-03-06 12:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 12:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620623', 'tblTempUsageDetail_20' ) start [2025-03-06 12:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620623', 'tblTempUsageDetail_20' ) end [2025-03-06 12:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620623', 'tblTempVendorCDR_20' ) start [2025-03-06 12:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620623', 'tblTempVendorCDR_20' ) end [2025-03-06 12:56:20] Production.INFO: ProcessCDR(1,14620623,1,1,2) [2025-03-06 12:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14620623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 12:56:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14620623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 12:56:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14620623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 12:56:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14620623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 12:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620623', 'tblTempUsageDetail_20' ) start [2025-03-06 12:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620623', 'tblTempUsageDetail_20' ) end [2025-03-06 12:56:25] Production.ERROR: pbx prc_insertCDR start [2025-03-06 12:56:25] Production.ERROR: pbx prc_insertCDR end [2025-03-06 12:56:25] Production.INFO: ==28111== Releasing lock... [2025-03-06 12:56:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 12:56:25] Production.INFO: 65.25 MB #Memory Used# [2025-03-06 12:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 09:57:05 [end_date_ymd] => 2025-03-06 12:57:05 [RateCDR] => 1 ) [2025-03-06 12:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 09:57:05' and `end` < '2025-03-06 12:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 12:57:18] Production.INFO: count ==5047 [2025-03-06 12:57:21] Production.ERROR: pbx CDR StartTime 2025-03-06 09:57:05 - End Time 2025-03-06 12:57:05 [2025-03-06 12:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 12:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620628', 'tblTempUsageDetail_20' ) start [2025-03-06 12:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620628', 'tblTempUsageDetail_20' ) end [2025-03-06 12:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620628', 'tblTempVendorCDR_20' ) start [2025-03-06 12:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620628', 'tblTempVendorCDR_20' ) end [2025-03-06 12:57:21] Production.INFO: ProcessCDR(1,14620628,1,1,2) [2025-03-06 12:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14620628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 12:57:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14620628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 12:57:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14620628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 12:57:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14620628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 12:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620628', 'tblTempUsageDetail_20' ) start [2025-03-06 12:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620628', 'tblTempUsageDetail_20' ) end [2025-03-06 12:57:26] Production.ERROR: pbx prc_insertCDR start [2025-03-06 12:57:26] Production.ERROR: pbx prc_insertCDR end [2025-03-06 12:57:26] Production.INFO: ==28182== Releasing lock... [2025-03-06 12:57:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 12:57:26] Production.INFO: 65.75 MB #Memory Used# [2025-03-06 12:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 09:58:05 [end_date_ymd] => 2025-03-06 12:58:05 [RateCDR] => 1 ) [2025-03-06 12:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 09:58:05' and `end` < '2025-03-06 12:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 12:58:18] Production.INFO: count ==5047 [2025-03-06 12:58:20] Production.ERROR: pbx CDR StartTime 2025-03-06 09:58:05 - End Time 2025-03-06 12:58:05 [2025-03-06 12:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 12:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620633', 'tblTempUsageDetail_20' ) start [2025-03-06 12:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620633', 'tblTempUsageDetail_20' ) end [2025-03-06 12:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620633', 'tblTempVendorCDR_20' ) start [2025-03-06 12:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620633', 'tblTempVendorCDR_20' ) end [2025-03-06 12:58:21] Production.INFO: ProcessCDR(1,14620633,1,1,2) [2025-03-06 12:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14620633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 12:58:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14620633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 12:58:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14620633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 12:58:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14620633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 12:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620633', 'tblTempUsageDetail_20' ) start [2025-03-06 12:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620633', 'tblTempUsageDetail_20' ) end [2025-03-06 12:58:25] Production.ERROR: pbx prc_insertCDR start [2025-03-06 12:58:25] Production.ERROR: pbx prc_insertCDR end [2025-03-06 12:58:26] Production.INFO: ==28257== Releasing lock... [2025-03-06 12:58:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 12:58:26] Production.INFO: 65.75 MB #Memory Used# [2025-03-06 12:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 09:59:05 [end_date_ymd] => 2025-03-06 12:59:05 [RateCDR] => 1 ) [2025-03-06 12:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 09:59:05' and `end` < '2025-03-06 12:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 12:59:18] Production.INFO: count ==5057 [2025-03-06 12:59:20] Production.ERROR: pbx CDR StartTime 2025-03-06 09:59:05 - End Time 2025-03-06 12:59:05 [2025-03-06 12:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 12:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620638', 'tblTempUsageDetail_20' ) start [2025-03-06 12:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620638', 'tblTempUsageDetail_20' ) end [2025-03-06 12:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620638', 'tblTempVendorCDR_20' ) start [2025-03-06 12:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620638', 'tblTempVendorCDR_20' ) end [2025-03-06 12:59:20] Production.INFO: ProcessCDR(1,14620638,1,1,2) [2025-03-06 12:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14620638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 12:59:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14620638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 12:59:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14620638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 12:59:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14620638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 12:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620638', 'tblTempUsageDetail_20' ) start [2025-03-06 12:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620638', 'tblTempUsageDetail_20' ) end [2025-03-06 12:59:25] Production.ERROR: pbx prc_insertCDR start [2025-03-06 12:59:25] Production.ERROR: pbx prc_insertCDR end [2025-03-06 12:59:25] Production.INFO: ==28334== Releasing lock... [2025-03-06 12:59:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 12:59:25] Production.INFO: 65.75 MB #Memory Used# [2025-03-06 13:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 10:00:06 [end_date_ymd] => 2025-03-06 13:00:06 [RateCDR] => 1 ) [2025-03-06 13:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 10:00:06' and `end` < '2025-03-06 13:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 13:00:19] Production.INFO: count ==5040 [2025-03-06 13:00:21] Production.ERROR: pbx CDR StartTime 2025-03-06 10:00:06 - End Time 2025-03-06 13:00:06 [2025-03-06 13:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 13:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620643', 'tblTempUsageDetail_20' ) start [2025-03-06 13:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620643', 'tblTempUsageDetail_20' ) end [2025-03-06 13:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620643', 'tblTempVendorCDR_20' ) start [2025-03-06 13:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620643', 'tblTempVendorCDR_20' ) end [2025-03-06 13:00:21] Production.INFO: ProcessCDR(1,14620643,1,1,2) [2025-03-06 13:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14620643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 13:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14620643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 13:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14620643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 13:00:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14620643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 13:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620643', 'tblTempUsageDetail_20' ) start [2025-03-06 13:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620643', 'tblTempUsageDetail_20' ) end [2025-03-06 13:00:27] Production.ERROR: pbx prc_insertCDR start [2025-03-06 13:00:27] Production.ERROR: pbx prc_insertCDR end [2025-03-06 13:00:27] Production.INFO: ==28407== Releasing lock... [2025-03-06 13:00:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 13:00:27] Production.INFO: 65.75 MB #Memory Used# [2025-03-06 13:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 10:01:05 [end_date_ymd] => 2025-03-06 13:01:05 [RateCDR] => 1 ) [2025-03-06 13:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 10:01:05' and `end` < '2025-03-06 13:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 13:01:18] Production.INFO: count ==5061 [2025-03-06 13:01:20] Production.ERROR: pbx CDR StartTime 2025-03-06 10:01:05 - End Time 2025-03-06 13:01:05 [2025-03-06 13:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 13:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620649', 'tblTempUsageDetail_20' ) start [2025-03-06 13:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620649', 'tblTempUsageDetail_20' ) end [2025-03-06 13:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620649', 'tblTempVendorCDR_20' ) start [2025-03-06 13:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620649', 'tblTempVendorCDR_20' ) end [2025-03-06 13:01:20] Production.INFO: ProcessCDR(1,14620649,1,1,2) [2025-03-06 13:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14620649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 13:01:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14620649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 13:01:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14620649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 13:01:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14620649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 13:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620649', 'tblTempUsageDetail_20' ) start [2025-03-06 13:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620649', 'tblTempUsageDetail_20' ) end [2025-03-06 13:01:25] Production.ERROR: pbx prc_insertCDR start [2025-03-06 13:01:26] Production.ERROR: pbx prc_insertCDR end [2025-03-06 13:01:26] Production.INFO: ==28492== Releasing lock... [2025-03-06 13:01:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 13:01:26] Production.INFO: 66 MB #Memory Used# [2025-03-06 13:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 10:02:06 [end_date_ymd] => 2025-03-06 13:02:06 [RateCDR] => 1 ) [2025-03-06 13:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 10:02:06' and `end` < '2025-03-06 13:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 13:02:21] Production.INFO: count ==5073 [2025-03-06 13:02:24] Production.ERROR: pbx CDR StartTime 2025-03-06 10:02:06 - End Time 2025-03-06 13:02:06 [2025-03-06 13:02:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 13:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620654', 'tblTempUsageDetail_20' ) start [2025-03-06 13:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620654', 'tblTempUsageDetail_20' ) end [2025-03-06 13:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620654', 'tblTempVendorCDR_20' ) start [2025-03-06 13:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620654', 'tblTempVendorCDR_20' ) end [2025-03-06 13:02:24] Production.INFO: ProcessCDR(1,14620654,1,1,2) [2025-03-06 13:02:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14620654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 13:02:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14620654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 13:02:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14620654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 13:02:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14620654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 13:02:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620654', 'tblTempUsageDetail_20' ) start [2025-03-06 13:02:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620654', 'tblTempUsageDetail_20' ) end [2025-03-06 13:02:30] Production.ERROR: pbx prc_insertCDR start [2025-03-06 13:02:30] Production.ERROR: pbx prc_insertCDR end [2025-03-06 13:02:30] Production.INFO: ==28565== Releasing lock... [2025-03-06 13:02:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 13:02:30] Production.INFO: 66 MB #Memory Used# [2025-03-06 13:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 10:03:06 [end_date_ymd] => 2025-03-06 13:03:06 [RateCDR] => 1 ) [2025-03-06 13:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 10:03:06' and `end` < '2025-03-06 13:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 13:03:20] Production.INFO: count ==5092 [2025-03-06 13:03:22] Production.ERROR: pbx CDR StartTime 2025-03-06 10:03:06 - End Time 2025-03-06 13:03:06 [2025-03-06 13:03:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 13:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620659', 'tblTempUsageDetail_20' ) start [2025-03-06 13:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620659', 'tblTempUsageDetail_20' ) end [2025-03-06 13:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620659', 'tblTempVendorCDR_20' ) start [2025-03-06 13:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620659', 'tblTempVendorCDR_20' ) end [2025-03-06 13:03:22] Production.INFO: ProcessCDR(1,14620659,1,1,2) [2025-03-06 13:03:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14620659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 13:03:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14620659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 13:03:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14620659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 13:03:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14620659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 13:03:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620659', 'tblTempUsageDetail_20' ) start [2025-03-06 13:03:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620659', 'tblTempUsageDetail_20' ) end [2025-03-06 13:03:28] Production.ERROR: pbx prc_insertCDR start [2025-03-06 13:03:28] Production.ERROR: pbx prc_insertCDR end [2025-03-06 13:03:28] Production.INFO: ==28639== Releasing lock... [2025-03-06 13:03:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 13:03:28] Production.INFO: 66.25 MB #Memory Used# [2025-03-06 13:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 10:04:06 [end_date_ymd] => 2025-03-06 13:04:06 [RateCDR] => 1 ) [2025-03-06 13: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-03-06 10:04:06' and `end` < '2025-03-06 13: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-03-06 13:04:19] Production.INFO: count ==5098 [2025-03-06 13:04:21] Production.ERROR: pbx CDR StartTime 2025-03-06 10:04:06 - End Time 2025-03-06 13:04:06 [2025-03-06 13:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 13:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620664', 'tblTempUsageDetail_20' ) start [2025-03-06 13:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620664', 'tblTempUsageDetail_20' ) end [2025-03-06 13:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620664', 'tblTempVendorCDR_20' ) start [2025-03-06 13:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620664', 'tblTempVendorCDR_20' ) end [2025-03-06 13:04:22] Production.INFO: ProcessCDR(1,14620664,1,1,2) [2025-03-06 13:04:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14620664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 13:04:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14620664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 13:04:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14620664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 13:04:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14620664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 13:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620664', 'tblTempUsageDetail_20' ) start [2025-03-06 13:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620664', 'tblTempUsageDetail_20' ) end [2025-03-06 13:04:27] Production.ERROR: pbx prc_insertCDR start [2025-03-06 13:04:27] Production.ERROR: pbx prc_insertCDR end [2025-03-06 13:04:27] Production.INFO: ==28712== Releasing lock... [2025-03-06 13:04:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 13:04:27] Production.INFO: 66.25 MB #Memory Used# [2025-03-06 13:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 10:05:06 [end_date_ymd] => 2025-03-06 13:05:06 [RateCDR] => 1 ) [2025-03-06 13:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 10:05:06' and `end` < '2025-03-06 13:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 13:05:19] Production.INFO: count ==5110 [2025-03-06 13:05:21] Production.ERROR: pbx CDR StartTime 2025-03-06 10:05:06 - End Time 2025-03-06 13:05:06 [2025-03-06 13:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 13:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620669', 'tblTempUsageDetail_20' ) start [2025-03-06 13:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620669', 'tblTempUsageDetail_20' ) end [2025-03-06 13:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620669', 'tblTempVendorCDR_20' ) start [2025-03-06 13:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620669', 'tblTempVendorCDR_20' ) end [2025-03-06 13:05:21] Production.INFO: ProcessCDR(1,14620669,1,1,2) [2025-03-06 13:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14620669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 13:05:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14620669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 13:05:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14620669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 13:05:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14620669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 13:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620669', 'tblTempUsageDetail_20' ) start [2025-03-06 13:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620669', 'tblTempUsageDetail_20' ) end [2025-03-06 13:05:26] Production.ERROR: pbx prc_insertCDR start [2025-03-06 13:05:26] Production.ERROR: pbx prc_insertCDR end [2025-03-06 13:05:26] Production.INFO: ==28781== Releasing lock... [2025-03-06 13:05:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 13:05:26] Production.INFO: 66.25 MB #Memory Used# [2025-03-06 13:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 10:06:06 [end_date_ymd] => 2025-03-06 13:06:06 [RateCDR] => 1 ) [2025-03-06 13: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-03-06 10:06:06' and `end` < '2025-03-06 13: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-03-06 13:06:19] Production.INFO: count ==5088 [2025-03-06 13:06:21] Production.ERROR: pbx CDR StartTime 2025-03-06 10:06:06 - End Time 2025-03-06 13:06:06 [2025-03-06 13:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 13:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620674', 'tblTempUsageDetail_20' ) start [2025-03-06 13:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620674', 'tblTempUsageDetail_20' ) end [2025-03-06 13:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620674', 'tblTempVendorCDR_20' ) start [2025-03-06 13:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620674', 'tblTempVendorCDR_20' ) end [2025-03-06 13:06:21] Production.INFO: ProcessCDR(1,14620674,1,1,2) [2025-03-06 13:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14620674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 13:06:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14620674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 13:06:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14620674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 13:06:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14620674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 13:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620674', 'tblTempUsageDetail_20' ) start [2025-03-06 13:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620674', 'tblTempUsageDetail_20' ) end [2025-03-06 13:06:26] Production.ERROR: pbx prc_insertCDR start [2025-03-06 13:06:26] Production.ERROR: pbx prc_insertCDR end [2025-03-06 13:06:26] Production.INFO: ==28852== Releasing lock... [2025-03-06 13:06:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 13:06:26] Production.INFO: 66 MB #Memory Used# [2025-03-06 13:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 10:07:05 [end_date_ymd] => 2025-03-06 13:07:05 [RateCDR] => 1 ) [2025-03-06 13:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 10:07:05' and `end` < '2025-03-06 13:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 13:07:18] Production.INFO: count ==5070 [2025-03-06 13:07:20] Production.ERROR: pbx CDR StartTime 2025-03-06 10:07:05 - End Time 2025-03-06 13:07:05 [2025-03-06 13:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 13:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620679', 'tblTempUsageDetail_20' ) start [2025-03-06 13:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620679', 'tblTempUsageDetail_20' ) end [2025-03-06 13:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620679', 'tblTempVendorCDR_20' ) start [2025-03-06 13:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620679', 'tblTempVendorCDR_20' ) end [2025-03-06 13:07:20] Production.INFO: ProcessCDR(1,14620679,1,1,2) [2025-03-06 13:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14620679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 13:07:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14620679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 13:07:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14620679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 13:07:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14620679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 13:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620679', 'tblTempUsageDetail_20' ) start [2025-03-06 13:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620679', 'tblTempUsageDetail_20' ) end [2025-03-06 13:07:25] Production.ERROR: pbx prc_insertCDR start [2025-03-06 13:07:25] Production.ERROR: pbx prc_insertCDR end [2025-03-06 13:07:25] Production.INFO: ==28923== Releasing lock... [2025-03-06 13:07:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 13:07:25] Production.INFO: 66 MB #Memory Used# [2025-03-06 13:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 10:08:05 [end_date_ymd] => 2025-03-06 13:08:05 [RateCDR] => 1 ) [2025-03-06 13:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 10:08:05' and `end` < '2025-03-06 13:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 13:08:19] Production.INFO: count ==5061 [2025-03-06 13:08:21] Production.ERROR: pbx CDR StartTime 2025-03-06 10:08:05 - End Time 2025-03-06 13:08:05 [2025-03-06 13:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 13:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620684', 'tblTempUsageDetail_20' ) start [2025-03-06 13:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620684', 'tblTempUsageDetail_20' ) end [2025-03-06 13:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620684', 'tblTempVendorCDR_20' ) start [2025-03-06 13:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620684', 'tblTempVendorCDR_20' ) end [2025-03-06 13:08:21] Production.INFO: ProcessCDR(1,14620684,1,1,2) [2025-03-06 13:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14620684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 13:08:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14620684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 13:08:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14620684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 13:08:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14620684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 13:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620684', 'tblTempUsageDetail_20' ) start [2025-03-06 13:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620684', 'tblTempUsageDetail_20' ) end [2025-03-06 13:08:26] Production.ERROR: pbx prc_insertCDR start [2025-03-06 13:08:26] Production.ERROR: pbx prc_insertCDR end [2025-03-06 13:08:26] Production.INFO: ==28995== Releasing lock... [2025-03-06 13:08:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 13:08:26] Production.INFO: 66 MB #Memory Used# [2025-03-06 13:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 10:09:05 [end_date_ymd] => 2025-03-06 13:09:05 [RateCDR] => 1 ) [2025-03-06 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-03-06 10:09:05' and `end` < '2025-03-06 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-03-06 13:09:18] Production.INFO: count ==5059 [2025-03-06 13:09:20] Production.ERROR: pbx CDR StartTime 2025-03-06 10:09:05 - End Time 2025-03-06 13:09:05 [2025-03-06 13:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 13:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620689', 'tblTempUsageDetail_20' ) start [2025-03-06 13:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620689', 'tblTempUsageDetail_20' ) end [2025-03-06 13:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620689', 'tblTempVendorCDR_20' ) start [2025-03-06 13:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620689', 'tblTempVendorCDR_20' ) end [2025-03-06 13:09:21] Production.INFO: ProcessCDR(1,14620689,1,1,2) [2025-03-06 13:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14620689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 13:09:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14620689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 13:09:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14620689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 13:09:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14620689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 13:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620689', 'tblTempUsageDetail_20' ) start [2025-03-06 13:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620689', 'tblTempUsageDetail_20' ) end [2025-03-06 13:09:26] Production.ERROR: pbx prc_insertCDR start [2025-03-06 13:09:26] Production.ERROR: pbx prc_insertCDR end [2025-03-06 13:09:26] Production.INFO: ==29069== Releasing lock... [2025-03-06 13:09:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 13:09:26] Production.INFO: 66 MB #Memory Used# [2025-03-06 13:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 10:10:05 [end_date_ymd] => 2025-03-06 13:10:05 [RateCDR] => 1 ) [2025-03-06 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-03-06 10:10:05' and `end` < '2025-03-06 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-03-06 13:10:19] Production.INFO: count ==5056 [2025-03-06 13:10:21] Production.ERROR: pbx CDR StartTime 2025-03-06 10:10:05 - End Time 2025-03-06 13:10:05 [2025-03-06 13:10:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 13:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620694', 'tblTempUsageDetail_20' ) start [2025-03-06 13:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620694', 'tblTempUsageDetail_20' ) end [2025-03-06 13:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620694', 'tblTempVendorCDR_20' ) start [2025-03-06 13:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620694', 'tblTempVendorCDR_20' ) end [2025-03-06 13:10:22] Production.INFO: ProcessCDR(1,14620694,1,1,2) [2025-03-06 13:10:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14620694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 13:10:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14620694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 13:10:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14620694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 13:10:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14620694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 13:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620694', 'tblTempUsageDetail_20' ) start [2025-03-06 13:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620694', 'tblTempUsageDetail_20' ) end [2025-03-06 13:10:27] Production.ERROR: pbx prc_insertCDR start [2025-03-06 13:10:27] Production.ERROR: pbx prc_insertCDR end [2025-03-06 13:10:27] Production.INFO: ==29182== Releasing lock... [2025-03-06 13:10:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 13:10:27] Production.INFO: 65.75 MB #Memory Used# [2025-03-06 13:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 10:11:05 [end_date_ymd] => 2025-03-06 13:11:05 [RateCDR] => 1 ) [2025-03-06 13:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 10:11:05' and `end` < '2025-03-06 13:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 13:11:19] Production.INFO: count ==5066 [2025-03-06 13:11:21] Production.ERROR: pbx CDR StartTime 2025-03-06 10:11:05 - End Time 2025-03-06 13:11:05 [2025-03-06 13:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 13:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620700', 'tblTempUsageDetail_20' ) start [2025-03-06 13:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620700', 'tblTempUsageDetail_20' ) end [2025-03-06 13:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620700', 'tblTempVendorCDR_20' ) start [2025-03-06 13:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620700', 'tblTempVendorCDR_20' ) end [2025-03-06 13:11:21] Production.INFO: ProcessCDR(1,14620700,1,1,2) [2025-03-06 13:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14620700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 13:11:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14620700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 13:11:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14620700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 13:11:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14620700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 13:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620700', 'tblTempUsageDetail_20' ) start [2025-03-06 13:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620700', 'tblTempUsageDetail_20' ) end [2025-03-06 13:11:26] Production.ERROR: pbx prc_insertCDR start [2025-03-06 13:11:26] Production.ERROR: pbx prc_insertCDR end [2025-03-06 13:11:26] Production.INFO: ==29255== Releasing lock... [2025-03-06 13:11:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 13:11:26] Production.INFO: 66 MB #Memory Used# [2025-03-06 13:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 10:12:06 [end_date_ymd] => 2025-03-06 13:12:06 [RateCDR] => 1 ) [2025-03-06 13: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-03-06 10:12:06' and `end` < '2025-03-06 13: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-03-06 13:12:19] Production.INFO: count ==5046 [2025-03-06 13:12:21] Production.ERROR: pbx CDR StartTime 2025-03-06 10:12:06 - End Time 2025-03-06 13:12:06 [2025-03-06 13:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 13:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620705', 'tblTempUsageDetail_20' ) start [2025-03-06 13:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620705', 'tblTempUsageDetail_20' ) end [2025-03-06 13:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620705', 'tblTempVendorCDR_20' ) start [2025-03-06 13:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620705', 'tblTempVendorCDR_20' ) end [2025-03-06 13:12:21] Production.INFO: ProcessCDR(1,14620705,1,1,2) [2025-03-06 13:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14620705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 13:12:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14620705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 13:12:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14620705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 13:12:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14620705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 13:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620705', 'tblTempUsageDetail_20' ) start [2025-03-06 13:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620705', 'tblTempUsageDetail_20' ) end [2025-03-06 13:12:26] Production.ERROR: pbx prc_insertCDR start [2025-03-06 13:12:26] Production.ERROR: pbx prc_insertCDR end [2025-03-06 13:12:26] Production.INFO: ==29327== Releasing lock... [2025-03-06 13:12:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 13:12:26] Production.INFO: 65.75 MB #Memory Used# [2025-03-06 13:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 10:13:05 [end_date_ymd] => 2025-03-06 13:13:05 [RateCDR] => 1 ) [2025-03-06 13: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-03-06 10:13:05' and `end` < '2025-03-06 13:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 13:13:19] Production.INFO: count ==5053 [2025-03-06 13:13:21] Production.ERROR: pbx CDR StartTime 2025-03-06 10:13:05 - End Time 2025-03-06 13:13:05 [2025-03-06 13:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 13:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620710', 'tblTempUsageDetail_20' ) start [2025-03-06 13:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620710', 'tblTempUsageDetail_20' ) end [2025-03-06 13:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620710', 'tblTempVendorCDR_20' ) start [2025-03-06 13:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620710', 'tblTempVendorCDR_20' ) end [2025-03-06 13:13:21] Production.INFO: ProcessCDR(1,14620710,1,1,2) [2025-03-06 13:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14620710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 13:13:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14620710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 13:13:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14620710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 13:13:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14620710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 13:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620710', 'tblTempUsageDetail_20' ) start [2025-03-06 13:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620710', 'tblTempUsageDetail_20' ) end [2025-03-06 13:13:27] Production.ERROR: pbx prc_insertCDR start [2025-03-06 13:13:27] Production.ERROR: pbx prc_insertCDR end [2025-03-06 13:13:27] Production.INFO: ==29398== Releasing lock... [2025-03-06 13:13:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 13:13:27] Production.INFO: 65.75 MB #Memory Used# [2025-03-06 13:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 10:14:05 [end_date_ymd] => 2025-03-06 13:14:05 [RateCDR] => 1 ) [2025-03-06 13:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 10:14:05' and `end` < '2025-03-06 13:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 13:14:19] Production.INFO: count ==5066 [2025-03-06 13:14:21] Production.ERROR: pbx CDR StartTime 2025-03-06 10:14:05 - End Time 2025-03-06 13:14:05 [2025-03-06 13:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 13:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620715', 'tblTempUsageDetail_20' ) start [2025-03-06 13:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620715', 'tblTempUsageDetail_20' ) end [2025-03-06 13:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620715', 'tblTempVendorCDR_20' ) start [2025-03-06 13:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620715', 'tblTempVendorCDR_20' ) end [2025-03-06 13:14:21] Production.INFO: ProcessCDR(1,14620715,1,1,2) [2025-03-06 13:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14620715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 13:14:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14620715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 13:14:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14620715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 13:14:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14620715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 13:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620715', 'tblTempUsageDetail_20' ) start [2025-03-06 13:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620715', 'tblTempUsageDetail_20' ) end [2025-03-06 13:14:26] Production.ERROR: pbx prc_insertCDR start [2025-03-06 13:14:26] Production.ERROR: pbx prc_insertCDR end [2025-03-06 13:14:26] Production.INFO: ==29470== Releasing lock... [2025-03-06 13:14:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 13:14:26] Production.INFO: 66 MB #Memory Used# [2025-03-06 13:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 10:15:05 [end_date_ymd] => 2025-03-06 13:15:05 [RateCDR] => 1 ) [2025-03-06 13: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-03-06 10:15:05' and `end` < '2025-03-06 13: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-03-06 13:15:18] Production.INFO: count ==5069 [2025-03-06 13:15:21] Production.ERROR: pbx CDR StartTime 2025-03-06 10:15:05 - End Time 2025-03-06 13:15:05 [2025-03-06 13:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 13:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620720', 'tblTempUsageDetail_20' ) start [2025-03-06 13:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620720', 'tblTempUsageDetail_20' ) end [2025-03-06 13:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620720', 'tblTempVendorCDR_20' ) start [2025-03-06 13:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620720', 'tblTempVendorCDR_20' ) end [2025-03-06 13:15:21] Production.INFO: ProcessCDR(1,14620720,1,1,2) [2025-03-06 13:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14620720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 13:15:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14620720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 13:15:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14620720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 13:15:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14620720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 13:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620720', 'tblTempUsageDetail_20' ) start [2025-03-06 13:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620720', 'tblTempUsageDetail_20' ) end [2025-03-06 13:15:26] Production.ERROR: pbx prc_insertCDR start [2025-03-06 13:15:26] Production.ERROR: pbx prc_insertCDR end [2025-03-06 13:15:26] Production.INFO: ==29551== Releasing lock... [2025-03-06 13:15:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 13:15:26] Production.INFO: 66 MB #Memory Used# [2025-03-06 13:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 10:16:05 [end_date_ymd] => 2025-03-06 13:16:05 [RateCDR] => 1 ) [2025-03-06 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-03-06 10:16:05' and `end` < '2025-03-06 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-03-06 13:16:18] Production.INFO: count ==5082 [2025-03-06 13:16:21] Production.ERROR: pbx CDR StartTime 2025-03-06 10:16:05 - End Time 2025-03-06 13:16:05 [2025-03-06 13:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 13:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620725', 'tblTempUsageDetail_20' ) start [2025-03-06 13:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620725', 'tblTempUsageDetail_20' ) end [2025-03-06 13:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620725', 'tblTempVendorCDR_20' ) start [2025-03-06 13:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620725', 'tblTempVendorCDR_20' ) end [2025-03-06 13:16:21] Production.INFO: ProcessCDR(1,14620725,1,1,2) [2025-03-06 13:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14620725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 13:16:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14620725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 13:16:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14620725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 13:16:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14620725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 13:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620725', 'tblTempUsageDetail_20' ) start [2025-03-06 13:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620725', 'tblTempUsageDetail_20' ) end [2025-03-06 13:16:26] Production.ERROR: pbx prc_insertCDR start [2025-03-06 13:16:26] Production.ERROR: pbx prc_insertCDR end [2025-03-06 13:16:26] Production.INFO: ==29622== Releasing lock... [2025-03-06 13:16:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 13:16:26] Production.INFO: 66 MB #Memory Used# [2025-03-06 13:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 10:17:05 [end_date_ymd] => 2025-03-06 13:17:05 [RateCDR] => 1 ) [2025-03-06 13:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 10:17:05' and `end` < '2025-03-06 13:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 13:17:18] Production.INFO: count ==5080 [2025-03-06 13:17:20] Production.ERROR: pbx CDR StartTime 2025-03-06 10:17:05 - End Time 2025-03-06 13:17:05 [2025-03-06 13:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 13:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620730', 'tblTempUsageDetail_20' ) start [2025-03-06 13:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620730', 'tblTempUsageDetail_20' ) end [2025-03-06 13:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620730', 'tblTempVendorCDR_20' ) start [2025-03-06 13:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620730', 'tblTempVendorCDR_20' ) end [2025-03-06 13:17:20] Production.INFO: ProcessCDR(1,14620730,1,1,2) [2025-03-06 13:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14620730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 13:17:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14620730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 13:17:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14620730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 13:17:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14620730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 13:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620730', 'tblTempUsageDetail_20' ) start [2025-03-06 13:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620730', 'tblTempUsageDetail_20' ) end [2025-03-06 13:17:25] Production.ERROR: pbx prc_insertCDR start [2025-03-06 13:17:25] Production.ERROR: pbx prc_insertCDR end [2025-03-06 13:17:25] Production.INFO: ==29697== Releasing lock... [2025-03-06 13:17:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 13:17:25] Production.INFO: 66 MB #Memory Used# [2025-03-06 13:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 10:18:05 [end_date_ymd] => 2025-03-06 13:18:05 [RateCDR] => 1 ) [2025-03-06 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-03-06 10:18:05' and `end` < '2025-03-06 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-03-06 13:18:18] Production.INFO: count ==5099 [2025-03-06 13:18:20] Production.ERROR: pbx CDR StartTime 2025-03-06 10:18:05 - End Time 2025-03-06 13:18:05 [2025-03-06 13:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 13:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620735', 'tblTempUsageDetail_20' ) start [2025-03-06 13:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620735', 'tblTempUsageDetail_20' ) end [2025-03-06 13:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620735', 'tblTempVendorCDR_20' ) start [2025-03-06 13:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620735', 'tblTempVendorCDR_20' ) end [2025-03-06 13:18:21] Production.INFO: ProcessCDR(1,14620735,1,1,2) [2025-03-06 13:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14620735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 13:18:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14620735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 13:18:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14620735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 13:18:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14620735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 13:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620735', 'tblTempUsageDetail_20' ) start [2025-03-06 13:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620735', 'tblTempUsageDetail_20' ) end [2025-03-06 13:18:25] Production.ERROR: pbx prc_insertCDR start [2025-03-06 13:18:25] Production.ERROR: pbx prc_insertCDR end [2025-03-06 13:18:25] Production.INFO: ==29771== Releasing lock... [2025-03-06 13:18:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 13:18:25] Production.INFO: 66.25 MB #Memory Used# [2025-03-06 13:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 10:19:06 [end_date_ymd] => 2025-03-06 13:19:06 [RateCDR] => 1 ) [2025-03-06 13: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-03-06 10:19:06' and `end` < '2025-03-06 13: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-03-06 13:19:19] Production.INFO: count ==5104 [2025-03-06 13:19:21] Production.ERROR: pbx CDR StartTime 2025-03-06 10:19:06 - End Time 2025-03-06 13:19:06 [2025-03-06 13:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 13:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620740', 'tblTempUsageDetail_20' ) start [2025-03-06 13:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620740', 'tblTempUsageDetail_20' ) end [2025-03-06 13:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620740', 'tblTempVendorCDR_20' ) start [2025-03-06 13:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620740', 'tblTempVendorCDR_20' ) end [2025-03-06 13:19:21] Production.INFO: ProcessCDR(1,14620740,1,1,2) [2025-03-06 13:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14620740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 13:19:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14620740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 13:19:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14620740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 13:19:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14620740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 13:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620740', 'tblTempUsageDetail_20' ) start [2025-03-06 13:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620740', 'tblTempUsageDetail_20' ) end [2025-03-06 13:19:25] Production.ERROR: pbx prc_insertCDR start [2025-03-06 13:19:25] Production.ERROR: pbx prc_insertCDR end [2025-03-06 13:19:25] Production.INFO: ==29843== Releasing lock... [2025-03-06 13:19:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 13:19:25] Production.INFO: 66.25 MB #Memory Used# [2025-03-06 13:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 10:20:06 [end_date_ymd] => 2025-03-06 13:20:06 [RateCDR] => 1 ) [2025-03-06 13:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 10:20:06' and `end` < '2025-03-06 13:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 13:20:19] Production.INFO: count ==5118 [2025-03-06 13:20:21] Production.ERROR: pbx CDR StartTime 2025-03-06 10:20:06 - End Time 2025-03-06 13:20:06 [2025-03-06 13:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 13:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620746', 'tblTempUsageDetail_20' ) start [2025-03-06 13:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620746', 'tblTempUsageDetail_20' ) end [2025-03-06 13:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620746', 'tblTempVendorCDR_20' ) start [2025-03-06 13:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620746', 'tblTempVendorCDR_20' ) end [2025-03-06 13:20:21] Production.INFO: ProcessCDR(1,14620746,1,1,2) [2025-03-06 13:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14620746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 13:20:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14620746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 13:20:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14620746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 13:20:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14620746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 13:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620746', 'tblTempUsageDetail_20' ) start [2025-03-06 13:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620746', 'tblTempUsageDetail_20' ) end [2025-03-06 13:20:27] Production.ERROR: pbx prc_insertCDR start [2025-03-06 13:20:27] Production.ERROR: pbx prc_insertCDR end [2025-03-06 13:20:27] Production.INFO: ==29915== Releasing lock... [2025-03-06 13:20:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 13:20:27] Production.INFO: 66.25 MB #Memory Used# [2025-03-06 13:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 10:21:06 [end_date_ymd] => 2025-03-06 13:21:06 [RateCDR] => 1 ) [2025-03-06 13: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-03-06 10:21:06' and `end` < '2025-03-06 13: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-03-06 13:21:19] Production.INFO: count ==5135 [2025-03-06 13:21:21] Production.ERROR: pbx CDR StartTime 2025-03-06 10:21:06 - End Time 2025-03-06 13:21:06 [2025-03-06 13:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 13:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620751', 'tblTempUsageDetail_20' ) start [2025-03-06 13:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620751', 'tblTempUsageDetail_20' ) end [2025-03-06 13:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620751', 'tblTempVendorCDR_20' ) start [2025-03-06 13:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620751', 'tblTempVendorCDR_20' ) end [2025-03-06 13:21:21] Production.INFO: ProcessCDR(1,14620751,1,1,2) [2025-03-06 13:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14620751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 13:21:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14620751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 13:21:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14620751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 13:21:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14620751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 13:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620751', 'tblTempUsageDetail_20' ) start [2025-03-06 13:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620751', 'tblTempUsageDetail_20' ) end [2025-03-06 13:21:26] Production.ERROR: pbx prc_insertCDR start [2025-03-06 13:21:26] Production.ERROR: pbx prc_insertCDR end [2025-03-06 13:21:26] Production.INFO: ==29990== Releasing lock... [2025-03-06 13:21:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 13:21:26] Production.INFO: 66.5 MB #Memory Used# [2025-03-06 13:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 10:22:05 [end_date_ymd] => 2025-03-06 13:22:05 [RateCDR] => 1 ) [2025-03-06 13:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 10:22:05' and `end` < '2025-03-06 13:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 13:22:18] Production.INFO: count ==5123 [2025-03-06 13:22:20] Production.ERROR: pbx CDR StartTime 2025-03-06 10:22:05 - End Time 2025-03-06 13:22:05 [2025-03-06 13:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 13:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620756', 'tblTempUsageDetail_20' ) start [2025-03-06 13:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620756', 'tblTempUsageDetail_20' ) end [2025-03-06 13:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620756', 'tblTempVendorCDR_20' ) start [2025-03-06 13:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620756', 'tblTempVendorCDR_20' ) end [2025-03-06 13:22:20] Production.INFO: ProcessCDR(1,14620756,1,1,2) [2025-03-06 13:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14620756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 13:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14620756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 13:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14620756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 13:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14620756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 13:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620756', 'tblTempUsageDetail_20' ) start [2025-03-06 13:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620756', 'tblTempUsageDetail_20' ) end [2025-03-06 13:22:24] Production.ERROR: pbx prc_insertCDR start [2025-03-06 13:22:24] Production.ERROR: pbx prc_insertCDR end [2025-03-06 13:22:24] Production.INFO: ==30058== Releasing lock... [2025-03-06 13:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 13:22:24] Production.INFO: 66.25 MB #Memory Used# [2025-03-06 13:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 10:23:06 [end_date_ymd] => 2025-03-06 13:23:06 [RateCDR] => 1 ) [2025-03-06 13:23:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 10:23:06' and `end` < '2025-03-06 13:23:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 13:23:19] Production.INFO: count ==5079 [2025-03-06 13:23:21] Production.ERROR: pbx CDR StartTime 2025-03-06 10:23:06 - End Time 2025-03-06 13:23:06 [2025-03-06 13:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 13:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620761', 'tblTempUsageDetail_20' ) start [2025-03-06 13:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620761', 'tblTempUsageDetail_20' ) end [2025-03-06 13:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620761', 'tblTempVendorCDR_20' ) start [2025-03-06 13:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620761', 'tblTempVendorCDR_20' ) end [2025-03-06 13:23:21] Production.INFO: ProcessCDR(1,14620761,1,1,2) [2025-03-06 13:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14620761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 13:23:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14620761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 13:23:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14620761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 13:23:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14620761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 13:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620761', 'tblTempUsageDetail_20' ) start [2025-03-06 13:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620761', 'tblTempUsageDetail_20' ) end [2025-03-06 13:23:26] Production.ERROR: pbx prc_insertCDR start [2025-03-06 13:23:26] Production.ERROR: pbx prc_insertCDR end [2025-03-06 13:23:26] Production.INFO: ==30131== Releasing lock... [2025-03-06 13:23:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 13:23:26] Production.INFO: 66 MB #Memory Used# [2025-03-06 13:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 10:24:06 [end_date_ymd] => 2025-03-06 13:24:06 [RateCDR] => 1 ) [2025-03-06 13: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-03-06 10:24:06' and `end` < '2025-03-06 13: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-03-06 13:24:18] Production.INFO: count ==5067 [2025-03-06 13:24:21] Production.ERROR: pbx CDR StartTime 2025-03-06 10:24:06 - End Time 2025-03-06 13:24:06 [2025-03-06 13:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 13:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620766', 'tblTempUsageDetail_20' ) start [2025-03-06 13:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620766', 'tblTempUsageDetail_20' ) end [2025-03-06 13:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620766', 'tblTempVendorCDR_20' ) start [2025-03-06 13:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620766', 'tblTempVendorCDR_20' ) end [2025-03-06 13:24:21] Production.INFO: ProcessCDR(1,14620766,1,1,2) [2025-03-06 13:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14620766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 13:24:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14620766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 13:24:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14620766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 13:24:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14620766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 13:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620766', 'tblTempUsageDetail_20' ) start [2025-03-06 13:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620766', 'tblTempUsageDetail_20' ) end [2025-03-06 13:24:26] Production.ERROR: pbx prc_insertCDR start [2025-03-06 13:24:26] Production.ERROR: pbx prc_insertCDR end [2025-03-06 13:24:26] Production.INFO: ==30204== Releasing lock... [2025-03-06 13:24:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 13:24:26] Production.INFO: 66 MB #Memory Used# [2025-03-06 13:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 10:25:05 [end_date_ymd] => 2025-03-06 13:25:05 [RateCDR] => 1 ) [2025-03-06 13: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-03-06 10:25:05' and `end` < '2025-03-06 13: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-03-06 13:25:18] Production.INFO: count ==5075 [2025-03-06 13:25:20] Production.ERROR: pbx CDR StartTime 2025-03-06 10:25:05 - End Time 2025-03-06 13:25:05 [2025-03-06 13:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 13:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620771', 'tblTempUsageDetail_20' ) start [2025-03-06 13:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620771', 'tblTempUsageDetail_20' ) end [2025-03-06 13:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620771', 'tblTempVendorCDR_20' ) start [2025-03-06 13:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620771', 'tblTempVendorCDR_20' ) end [2025-03-06 13:25:20] Production.INFO: ProcessCDR(1,14620771,1,1,2) [2025-03-06 13:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14620771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 13:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14620771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 13:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14620771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 13:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14620771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 13:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620771', 'tblTempUsageDetail_20' ) start [2025-03-06 13:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620771', 'tblTempUsageDetail_20' ) end [2025-03-06 13:25:26] Production.ERROR: pbx prc_insertCDR start [2025-03-06 13:25:26] Production.ERROR: pbx prc_insertCDR end [2025-03-06 13:25:26] Production.INFO: ==30314== Releasing lock... [2025-03-06 13:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 13:25:26] Production.INFO: 66 MB #Memory Used# [2025-03-06 13:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 10:26:05 [end_date_ymd] => 2025-03-06 13:26:05 [RateCDR] => 1 ) [2025-03-06 13:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 10:26:05' and `end` < '2025-03-06 13:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 13:26:18] Production.INFO: count ==5080 [2025-03-06 13:26:20] Production.ERROR: pbx CDR StartTime 2025-03-06 10:26:05 - End Time 2025-03-06 13:26:05 [2025-03-06 13:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 13:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620776', 'tblTempUsageDetail_20' ) start [2025-03-06 13:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620776', 'tblTempUsageDetail_20' ) end [2025-03-06 13:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620776', 'tblTempVendorCDR_20' ) start [2025-03-06 13:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620776', 'tblTempVendorCDR_20' ) end [2025-03-06 13:26:21] Production.INFO: ProcessCDR(1,14620776,1,1,2) [2025-03-06 13:26:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14620776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 13:26:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14620776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 13:26:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14620776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 13:26:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14620776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 13:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620776', 'tblTempUsageDetail_20' ) start [2025-03-06 13:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620776', 'tblTempUsageDetail_20' ) end [2025-03-06 13:26:26] Production.ERROR: pbx prc_insertCDR start [2025-03-06 13:26:26] Production.ERROR: pbx prc_insertCDR end [2025-03-06 13:26:26] Production.INFO: ==30384== Releasing lock... [2025-03-06 13:26:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 13:26:26] Production.INFO: 66 MB #Memory Used# [2025-03-06 13:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 10:27:06 [end_date_ymd] => 2025-03-06 13:27:06 [RateCDR] => 1 ) [2025-03-06 13:27:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 10:27:06' and `end` < '2025-03-06 13:27:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 13:27:19] Production.INFO: count ==5068 [2025-03-06 13:27:21] Production.ERROR: pbx CDR StartTime 2025-03-06 10:27:06 - End Time 2025-03-06 13:27:06 [2025-03-06 13:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 13:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620781', 'tblTempUsageDetail_20' ) start [2025-03-06 13:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620781', 'tblTempUsageDetail_20' ) end [2025-03-06 13:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620781', 'tblTempVendorCDR_20' ) start [2025-03-06 13:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620781', 'tblTempVendorCDR_20' ) end [2025-03-06 13:27:22] Production.INFO: ProcessCDR(1,14620781,1,1,2) [2025-03-06 13:27:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14620781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 13:27:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14620781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 13:27:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14620781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 13:27:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14620781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 13:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620781', 'tblTempUsageDetail_20' ) start [2025-03-06 13:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620781', 'tblTempUsageDetail_20' ) end [2025-03-06 13:27:26] Production.ERROR: pbx prc_insertCDR start [2025-03-06 13:27:26] Production.ERROR: pbx prc_insertCDR end [2025-03-06 13:27:26] Production.INFO: ==30454== Releasing lock... [2025-03-06 13:27:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 13:27:26] Production.INFO: 66 MB #Memory Used# [2025-03-06 13:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 10:28:05 [end_date_ymd] => 2025-03-06 13:28:05 [RateCDR] => 1 ) [2025-03-06 13:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 10:28:05' and `end` < '2025-03-06 13:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 13:28:18] Production.INFO: count ==5056 [2025-03-06 13:28:20] Production.ERROR: pbx CDR StartTime 2025-03-06 10:28:05 - End Time 2025-03-06 13:28:05 [2025-03-06 13:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 13:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620786', 'tblTempUsageDetail_20' ) start [2025-03-06 13:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620786', 'tblTempUsageDetail_20' ) end [2025-03-06 13:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620786', 'tblTempVendorCDR_20' ) start [2025-03-06 13:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620786', 'tblTempVendorCDR_20' ) end [2025-03-06 13:28:20] Production.INFO: ProcessCDR(1,14620786,1,1,2) [2025-03-06 13:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14620786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 13:28:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14620786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 13:28:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14620786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 13:28:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14620786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 13:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620786', 'tblTempUsageDetail_20' ) start [2025-03-06 13:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620786', 'tblTempUsageDetail_20' ) end [2025-03-06 13:28:25] Production.ERROR: pbx prc_insertCDR start [2025-03-06 13:28:25] Production.ERROR: pbx prc_insertCDR end [2025-03-06 13:28:25] Production.INFO: ==30527== Releasing lock... [2025-03-06 13:28:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 13:28:25] Production.INFO: 65.75 MB #Memory Used# [2025-03-06 13:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 10:29:06 [end_date_ymd] => 2025-03-06 13:29:06 [RateCDR] => 1 ) [2025-03-06 13:29:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 10:29:06' and `end` < '2025-03-06 13:29:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 13:29:19] Production.INFO: count ==5066 [2025-03-06 13:29:21] Production.ERROR: pbx CDR StartTime 2025-03-06 10:29:06 - End Time 2025-03-06 13:29:06 [2025-03-06 13:29:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 13:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620791', 'tblTempUsageDetail_20' ) start [2025-03-06 13:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620791', 'tblTempUsageDetail_20' ) end [2025-03-06 13:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620791', 'tblTempVendorCDR_20' ) start [2025-03-06 13:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620791', 'tblTempVendorCDR_20' ) end [2025-03-06 13:29:22] Production.INFO: ProcessCDR(1,14620791,1,1,2) [2025-03-06 13:29:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14620791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 13:29:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14620791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 13:29:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14620791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 13:29:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14620791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 13:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620791', 'tblTempUsageDetail_20' ) start [2025-03-06 13:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620791', 'tblTempUsageDetail_20' ) end [2025-03-06 13:29:27] Production.ERROR: pbx prc_insertCDR start [2025-03-06 13:29:28] Production.ERROR: pbx prc_insertCDR end [2025-03-06 13:29:28] Production.INFO: ==30603== Releasing lock... [2025-03-06 13:29:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 13:29:28] Production.INFO: 66 MB #Memory Used# [2025-03-06 13:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 10:30:06 [end_date_ymd] => 2025-03-06 13:30:06 [RateCDR] => 1 ) [2025-03-06 13: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-03-06 10:30:06' and `end` < '2025-03-06 13: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-03-06 13:30:19] Production.INFO: count ==5066 [2025-03-06 13:30:22] Production.ERROR: pbx CDR StartTime 2025-03-06 10:30:06 - End Time 2025-03-06 13:30:06 [2025-03-06 13:30:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 13:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620797', 'tblTempUsageDetail_20' ) start [2025-03-06 13:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620797', 'tblTempUsageDetail_20' ) end [2025-03-06 13:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620797', 'tblTempVendorCDR_20' ) start [2025-03-06 13:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620797', 'tblTempVendorCDR_20' ) end [2025-03-06 13:30:22] Production.INFO: ProcessCDR(1,14620797,1,1,2) [2025-03-06 13:30:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14620797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 13:30:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14620797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 13:30:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14620797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 13:30:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14620797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 13:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620797', 'tblTempUsageDetail_20' ) start [2025-03-06 13:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620797', 'tblTempUsageDetail_20' ) end [2025-03-06 13:30:27] Production.ERROR: pbx prc_insertCDR start [2025-03-06 13:30:27] Production.ERROR: pbx prc_insertCDR end [2025-03-06 13:30:27] Production.INFO: ==30678== Releasing lock... [2025-03-06 13:30:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 13:30:27] Production.INFO: 66 MB #Memory Used# [2025-03-06 13:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 10:31:06 [end_date_ymd] => 2025-03-06 13:31:06 [RateCDR] => 1 ) [2025-03-06 13:31:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 10:31:06' and `end` < '2025-03-06 13:31:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 13:31:19] Production.INFO: count ==5053 [2025-03-06 13:31:21] Production.ERROR: pbx CDR StartTime 2025-03-06 10:31:06 - End Time 2025-03-06 13:31:06 [2025-03-06 13:31:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 13:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620802', 'tblTempUsageDetail_20' ) start [2025-03-06 13:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620802', 'tblTempUsageDetail_20' ) end [2025-03-06 13:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620802', 'tblTempVendorCDR_20' ) start [2025-03-06 13:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620802', 'tblTempVendorCDR_20' ) end [2025-03-06 13:31:21] Production.INFO: ProcessCDR(1,14620802,1,1,2) [2025-03-06 13:31:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14620802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 13:31:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14620802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 13:31:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14620802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 13:31:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14620802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 13:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620802', 'tblTempUsageDetail_20' ) start [2025-03-06 13:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620802', 'tblTempUsageDetail_20' ) end [2025-03-06 13:31:26] Production.ERROR: pbx prc_insertCDR start [2025-03-06 13:31:26] Production.ERROR: pbx prc_insertCDR end [2025-03-06 13:31:26] Production.INFO: ==30752== Releasing lock... [2025-03-06 13:31:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 13:31:26] Production.INFO: 65.75 MB #Memory Used# [2025-03-06 13:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 10:32:05 [end_date_ymd] => 2025-03-06 13:32:05 [RateCDR] => 1 ) [2025-03-06 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-03-06 10:32:05' and `end` < '2025-03-06 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-03-06 13:32:18] Production.INFO: count ==5054 [2025-03-06 13:32:20] Production.ERROR: pbx CDR StartTime 2025-03-06 10:32:05 - End Time 2025-03-06 13:32:05 [2025-03-06 13:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 13:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620807', 'tblTempUsageDetail_20' ) start [2025-03-06 13:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620807', 'tblTempUsageDetail_20' ) end [2025-03-06 13:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620807', 'tblTempVendorCDR_20' ) start [2025-03-06 13:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620807', 'tblTempVendorCDR_20' ) end [2025-03-06 13:32:21] Production.INFO: ProcessCDR(1,14620807,1,1,2) [2025-03-06 13:32:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14620807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 13:32:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14620807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 13:32:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14620807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 13:32:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14620807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 13:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620807', 'tblTempUsageDetail_20' ) start [2025-03-06 13:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620807', 'tblTempUsageDetail_20' ) end [2025-03-06 13:32:26] Production.ERROR: pbx prc_insertCDR start [2025-03-06 13:32:26] Production.ERROR: pbx prc_insertCDR end [2025-03-06 13:32:26] Production.INFO: ==30825== Releasing lock... [2025-03-06 13:32:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 13:32:26] Production.INFO: 65.75 MB #Memory Used# [2025-03-06 13:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 10:33:06 [end_date_ymd] => 2025-03-06 13:33:06 [RateCDR] => 1 ) [2025-03-06 13: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-03-06 10:33:06' and `end` < '2025-03-06 13: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-03-06 13:33:19] Production.INFO: count ==5047 [2025-03-06 13:33:21] Production.ERROR: pbx CDR StartTime 2025-03-06 10:33:06 - End Time 2025-03-06 13:33:06 [2025-03-06 13:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 13:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620812', 'tblTempUsageDetail_20' ) start [2025-03-06 13:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620812', 'tblTempUsageDetail_20' ) end [2025-03-06 13:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620812', 'tblTempVendorCDR_20' ) start [2025-03-06 13:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620812', 'tblTempVendorCDR_20' ) end [2025-03-06 13:33:21] Production.INFO: ProcessCDR(1,14620812,1,1,2) [2025-03-06 13:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14620812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 13:33:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14620812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 13:33:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14620812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 13:33:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14620812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 13:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620812', 'tblTempUsageDetail_20' ) start [2025-03-06 13:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620812', 'tblTempUsageDetail_20' ) end [2025-03-06 13:33:26] Production.ERROR: pbx prc_insertCDR start [2025-03-06 13:33:26] Production.ERROR: pbx prc_insertCDR end [2025-03-06 13:33:26] Production.INFO: ==30896== Releasing lock... [2025-03-06 13:33:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 13:33:26] Production.INFO: 65.75 MB #Memory Used# [2025-03-06 13:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 10:34:05 [end_date_ymd] => 2025-03-06 13:34:05 [RateCDR] => 1 ) [2025-03-06 13:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 10:34:05' and `end` < '2025-03-06 13:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 13:34:18] Production.INFO: count ==5078 [2025-03-06 13:34:21] Production.ERROR: pbx CDR StartTime 2025-03-06 10:34:05 - End Time 2025-03-06 13:34:05 [2025-03-06 13:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 13:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620817', 'tblTempUsageDetail_20' ) start [2025-03-06 13:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620817', 'tblTempUsageDetail_20' ) end [2025-03-06 13:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620817', 'tblTempVendorCDR_20' ) start [2025-03-06 13:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620817', 'tblTempVendorCDR_20' ) end [2025-03-06 13:34:21] Production.INFO: ProcessCDR(1,14620817,1,1,2) [2025-03-06 13:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14620817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 13:34:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14620817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 13:34:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14620817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 13:34:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14620817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 13:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620817', 'tblTempUsageDetail_20' ) start [2025-03-06 13:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620817', 'tblTempUsageDetail_20' ) end [2025-03-06 13:34:26] Production.ERROR: pbx prc_insertCDR start [2025-03-06 13:34:26] Production.ERROR: pbx prc_insertCDR end [2025-03-06 13:34:26] Production.INFO: ==30968== Releasing lock... [2025-03-06 13:34:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 13:34:26] Production.INFO: 66 MB #Memory Used# [2025-03-06 13:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 10:35:05 [end_date_ymd] => 2025-03-06 13:35:05 [RateCDR] => 1 ) [2025-03-06 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-03-06 10:35:05' and `end` < '2025-03-06 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-03-06 13:35:18] Production.INFO: count ==5066 [2025-03-06 13:35:20] Production.ERROR: pbx CDR StartTime 2025-03-06 10:35:05 - End Time 2025-03-06 13:35:05 [2025-03-06 13:35:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 13:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620822', 'tblTempUsageDetail_20' ) start [2025-03-06 13:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620822', 'tblTempUsageDetail_20' ) end [2025-03-06 13:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620822', 'tblTempVendorCDR_20' ) start [2025-03-06 13:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620822', 'tblTempVendorCDR_20' ) end [2025-03-06 13:35:20] Production.INFO: ProcessCDR(1,14620822,1,1,2) [2025-03-06 13:35:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14620822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 13:35:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14620822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 13:35:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14620822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 13:35:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14620822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 13:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620822', 'tblTempUsageDetail_20' ) start [2025-03-06 13:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620822', 'tblTempUsageDetail_20' ) end [2025-03-06 13:35:24] Production.ERROR: pbx prc_insertCDR start [2025-03-06 13:35:24] Production.ERROR: pbx prc_insertCDR end [2025-03-06 13:35:24] Production.INFO: ==31040== Releasing lock... [2025-03-06 13:35:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 13:35:24] Production.INFO: 66 MB #Memory Used# [2025-03-06 13:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 10:36:05 [end_date_ymd] => 2025-03-06 13:36:05 [RateCDR] => 1 ) [2025-03-06 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-03-06 10:36:05' and `end` < '2025-03-06 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-03-06 13:36:18] Production.INFO: count ==5035 [2025-03-06 13:36:20] Production.ERROR: pbx CDR StartTime 2025-03-06 10:36:05 - End Time 2025-03-06 13:36:05 [2025-03-06 13:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 13:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620827', 'tblTempUsageDetail_20' ) start [2025-03-06 13:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620827', 'tblTempUsageDetail_20' ) end [2025-03-06 13:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620827', 'tblTempVendorCDR_20' ) start [2025-03-06 13:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620827', 'tblTempVendorCDR_20' ) end [2025-03-06 13:36:20] Production.INFO: ProcessCDR(1,14620827,1,1,2) [2025-03-06 13:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14620827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 13:36:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14620827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 13:36:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14620827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 13:36:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14620827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 13:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620827', 'tblTempUsageDetail_20' ) start [2025-03-06 13:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620827', 'tblTempUsageDetail_20' ) end [2025-03-06 13:36:25] Production.ERROR: pbx prc_insertCDR start [2025-03-06 13:36:25] Production.ERROR: pbx prc_insertCDR end [2025-03-06 13:36:25] Production.INFO: ==31111== Releasing lock... [2025-03-06 13:36:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 13:36:25] Production.INFO: 65.75 MB #Memory Used# [2025-03-06 13:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 10:37:06 [end_date_ymd] => 2025-03-06 13:37:06 [RateCDR] => 1 ) [2025-03-06 13:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 10:37:06' and `end` < '2025-03-06 13:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 13:37:19] Production.INFO: count ==5030 [2025-03-06 13:37:21] Production.ERROR: pbx CDR StartTime 2025-03-06 10:37:06 - End Time 2025-03-06 13:37:06 [2025-03-06 13:37:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 13:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620832', 'tblTempUsageDetail_20' ) start [2025-03-06 13:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620832', 'tblTempUsageDetail_20' ) end [2025-03-06 13:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620832', 'tblTempVendorCDR_20' ) start [2025-03-06 13:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620832', 'tblTempVendorCDR_20' ) end [2025-03-06 13:37:21] Production.INFO: ProcessCDR(1,14620832,1,1,2) [2025-03-06 13:37:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14620832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 13:37:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14620832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 13:37:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14620832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 13:37:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14620832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 13:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620832', 'tblTempUsageDetail_20' ) start [2025-03-06 13:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620832', 'tblTempUsageDetail_20' ) end [2025-03-06 13:37:26] Production.ERROR: pbx prc_insertCDR start [2025-03-06 13:37:26] Production.ERROR: pbx prc_insertCDR end [2025-03-06 13:37:26] Production.INFO: ==31186== Releasing lock... [2025-03-06 13:37:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 13:37:26] Production.INFO: 65.75 MB #Memory Used# [2025-03-06 13:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 10:38:05 [end_date_ymd] => 2025-03-06 13:38:05 [RateCDR] => 1 ) [2025-03-06 13:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 10:38:05' and `end` < '2025-03-06 13:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 13:38:18] Production.INFO: count ==5026 [2025-03-06 13:38:20] Production.ERROR: pbx CDR StartTime 2025-03-06 10:38:05 - End Time 2025-03-06 13:38:05 [2025-03-06 13:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 13:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620837', 'tblTempUsageDetail_20' ) start [2025-03-06 13:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620837', 'tblTempUsageDetail_20' ) end [2025-03-06 13:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620837', 'tblTempVendorCDR_20' ) start [2025-03-06 13:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620837', 'tblTempVendorCDR_20' ) end [2025-03-06 13:38:21] Production.INFO: ProcessCDR(1,14620837,1,1,2) [2025-03-06 13:38:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14620837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 13:38:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14620837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 13:38:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14620837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 13:38:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14620837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 13:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620837', 'tblTempUsageDetail_20' ) start [2025-03-06 13:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620837', 'tblTempUsageDetail_20' ) end [2025-03-06 13:38:26] Production.ERROR: pbx prc_insertCDR start [2025-03-06 13:38:26] Production.ERROR: pbx prc_insertCDR end [2025-03-06 13:38:26] Production.INFO: ==31258== Releasing lock... [2025-03-06 13:38:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 13:38:26] Production.INFO: 65.75 MB #Memory Used# [2025-03-06 13:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 10:39:05 [end_date_ymd] => 2025-03-06 13:39:05 [RateCDR] => 1 ) [2025-03-06 13:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 10:39:05' and `end` < '2025-03-06 13:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 13:39:18] Production.INFO: count ==5032 [2025-03-06 13:39:20] Production.ERROR: pbx CDR StartTime 2025-03-06 10:39:05 - End Time 2025-03-06 13:39:05 [2025-03-06 13:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 13:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620842', 'tblTempUsageDetail_20' ) start [2025-03-06 13:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620842', 'tblTempUsageDetail_20' ) end [2025-03-06 13:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620842', 'tblTempVendorCDR_20' ) start [2025-03-06 13:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620842', 'tblTempVendorCDR_20' ) end [2025-03-06 13:39:20] Production.INFO: ProcessCDR(1,14620842,1,1,2) [2025-03-06 13:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14620842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 13:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14620842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 13:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14620842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 13:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14620842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 13:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620842', 'tblTempUsageDetail_20' ) start [2025-03-06 13:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620842', 'tblTempUsageDetail_20' ) end [2025-03-06 13:39:24] Production.ERROR: pbx prc_insertCDR start [2025-03-06 13:39:24] Production.ERROR: pbx prc_insertCDR end [2025-03-06 13:39:24] Production.INFO: ==31332== Releasing lock... [2025-03-06 13:39:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 13:39:24] Production.INFO: 65.75 MB #Memory Used# [2025-03-06 13:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 10:40:05 [end_date_ymd] => 2025-03-06 13:40:05 [RateCDR] => 1 ) [2025-03-06 13:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 10:40:05' and `end` < '2025-03-06 13:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 13:40:19] Production.INFO: count ==5040 [2025-03-06 13:40:21] Production.ERROR: pbx CDR StartTime 2025-03-06 10:40:05 - End Time 2025-03-06 13:40:05 [2025-03-06 13:40:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 13:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620848', 'tblTempUsageDetail_20' ) start [2025-03-06 13:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620848', 'tblTempUsageDetail_20' ) end [2025-03-06 13:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620848', 'tblTempVendorCDR_20' ) start [2025-03-06 13:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620848', 'tblTempVendorCDR_20' ) end [2025-03-06 13:40:21] Production.INFO: ProcessCDR(1,14620848,1,1,2) [2025-03-06 13:40:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14620848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 13:40:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14620848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 13:40:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14620848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 13:40:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14620848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 13:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620848', 'tblTempUsageDetail_20' ) start [2025-03-06 13:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620848', 'tblTempUsageDetail_20' ) end [2025-03-06 13:40:26] Production.ERROR: pbx prc_insertCDR start [2025-03-06 13:40:26] Production.ERROR: pbx prc_insertCDR end [2025-03-06 13:40:26] Production.INFO: ==31409== Releasing lock... [2025-03-06 13:40:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 13:40:26] Production.INFO: 65.75 MB #Memory Used# [2025-03-06 13:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 10:41:05 [end_date_ymd] => 2025-03-06 13:41:05 [RateCDR] => 1 ) [2025-03-06 13: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-03-06 10:41:05' and `end` < '2025-03-06 13: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-03-06 13:41:19] Production.INFO: count ==5044 [2025-03-06 13:41:21] Production.ERROR: pbx CDR StartTime 2025-03-06 10:41:05 - End Time 2025-03-06 13:41:05 [2025-03-06 13:41:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 13:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620853', 'tblTempUsageDetail_20' ) start [2025-03-06 13:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620853', 'tblTempUsageDetail_20' ) end [2025-03-06 13:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620853', 'tblTempVendorCDR_20' ) start [2025-03-06 13:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620853', 'tblTempVendorCDR_20' ) end [2025-03-06 13:41:21] Production.INFO: ProcessCDR(1,14620853,1,1,2) [2025-03-06 13:41:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14620853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 13:41:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14620853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 13:41:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14620853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 13:41:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14620853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 13:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620853', 'tblTempUsageDetail_20' ) start [2025-03-06 13:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620853', 'tblTempUsageDetail_20' ) end [2025-03-06 13:41:26] Production.ERROR: pbx prc_insertCDR start [2025-03-06 13:41:26] Production.ERROR: pbx prc_insertCDR end [2025-03-06 13:41:26] Production.INFO: ==31526== Releasing lock... [2025-03-06 13:41:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 13:41:26] Production.INFO: 65.75 MB #Memory Used# [2025-03-06 13:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 10:42:06 [end_date_ymd] => 2025-03-06 13:42:06 [RateCDR] => 1 ) [2025-03-06 13: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-03-06 10:42:06' and `end` < '2025-03-06 13: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-03-06 13:42:19] Production.INFO: count ==5050 [2025-03-06 13:42:21] Production.ERROR: pbx CDR StartTime 2025-03-06 10:42:06 - End Time 2025-03-06 13:42:06 [2025-03-06 13:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 13:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620858', 'tblTempUsageDetail_20' ) start [2025-03-06 13:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620858', 'tblTempUsageDetail_20' ) end [2025-03-06 13:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620858', 'tblTempVendorCDR_20' ) start [2025-03-06 13:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620858', 'tblTempVendorCDR_20' ) end [2025-03-06 13:42:21] Production.INFO: ProcessCDR(1,14620858,1,1,2) [2025-03-06 13:42:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14620858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 13:42:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14620858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 13:42:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14620858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 13:42:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14620858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 13:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620858', 'tblTempUsageDetail_20' ) start [2025-03-06 13:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620858', 'tblTempUsageDetail_20' ) end [2025-03-06 13:42:26] Production.ERROR: pbx prc_insertCDR start [2025-03-06 13:42:26] Production.ERROR: pbx prc_insertCDR end [2025-03-06 13:42:26] Production.INFO: ==31596== Releasing lock... [2025-03-06 13:42:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 13:42:26] Production.INFO: 65.75 MB #Memory Used# [2025-03-06 13:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 10:43:05 [end_date_ymd] => 2025-03-06 13:43:05 [RateCDR] => 1 ) [2025-03-06 13:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 10:43:05' and `end` < '2025-03-06 13:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 13:43:18] Production.INFO: count ==5043 [2025-03-06 13:43:20] Production.ERROR: pbx CDR StartTime 2025-03-06 10:43:05 - End Time 2025-03-06 13:43:05 [2025-03-06 13:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 13:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620863', 'tblTempUsageDetail_20' ) start [2025-03-06 13:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620863', 'tblTempUsageDetail_20' ) end [2025-03-06 13:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620863', 'tblTempVendorCDR_20' ) start [2025-03-06 13:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620863', 'tblTempVendorCDR_20' ) end [2025-03-06 13:43:21] Production.INFO: ProcessCDR(1,14620863,1,1,2) [2025-03-06 13:43:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14620863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 13:43:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14620863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 13:43:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14620863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 13:43:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14620863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 13:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620863', 'tblTempUsageDetail_20' ) start [2025-03-06 13:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620863', 'tblTempUsageDetail_20' ) end [2025-03-06 13:43:25] Production.ERROR: pbx prc_insertCDR start [2025-03-06 13:43:25] Production.ERROR: pbx prc_insertCDR end [2025-03-06 13:43:25] Production.INFO: ==31675== Releasing lock... [2025-03-06 13:43:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 13:43:25] Production.INFO: 65.75 MB #Memory Used# [2025-03-06 13:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 10:44:06 [end_date_ymd] => 2025-03-06 13:44:06 [RateCDR] => 1 ) [2025-03-06 13:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 10:44:06' and `end` < '2025-03-06 13:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 13:44:19] Production.INFO: count ==5052 [2025-03-06 13:44:21] Production.ERROR: pbx CDR StartTime 2025-03-06 10:44:06 - End Time 2025-03-06 13:44:06 [2025-03-06 13:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 13:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620868', 'tblTempUsageDetail_20' ) start [2025-03-06 13:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620868', 'tblTempUsageDetail_20' ) end [2025-03-06 13:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620868', 'tblTempVendorCDR_20' ) start [2025-03-06 13:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620868', 'tblTempVendorCDR_20' ) end [2025-03-06 13:44:21] Production.INFO: ProcessCDR(1,14620868,1,1,2) [2025-03-06 13:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14620868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 13:44:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14620868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 13:44:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14620868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 13:44:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14620868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 13:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620868', 'tblTempUsageDetail_20' ) start [2025-03-06 13:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620868', 'tblTempUsageDetail_20' ) end [2025-03-06 13:44:26] Production.ERROR: pbx prc_insertCDR start [2025-03-06 13:44:26] Production.ERROR: pbx prc_insertCDR end [2025-03-06 13:44:26] Production.INFO: ==31748== Releasing lock... [2025-03-06 13:44:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 13:44:26] Production.INFO: 65.75 MB #Memory Used# [2025-03-06 13:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 10:45:05 [end_date_ymd] => 2025-03-06 13:45:05 [RateCDR] => 1 ) [2025-03-06 13:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 10:45:05' and `end` < '2025-03-06 13:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 13:45:18] Production.INFO: count ==5055 [2025-03-06 13:45:20] Production.ERROR: pbx CDR StartTime 2025-03-06 10:45:05 - End Time 2025-03-06 13:45:05 [2025-03-06 13:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 13:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620873', 'tblTempUsageDetail_20' ) start [2025-03-06 13:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620873', 'tblTempUsageDetail_20' ) end [2025-03-06 13:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620873', 'tblTempVendorCDR_20' ) start [2025-03-06 13:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620873', 'tblTempVendorCDR_20' ) end [2025-03-06 13:45:20] Production.INFO: ProcessCDR(1,14620873,1,1,2) [2025-03-06 13:45:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14620873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 13:45:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14620873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 13:45:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14620873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 13:45:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14620873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 13:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620873', 'tblTempUsageDetail_20' ) start [2025-03-06 13:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620873', 'tblTempUsageDetail_20' ) end [2025-03-06 13:45:25] Production.ERROR: pbx prc_insertCDR start [2025-03-06 13:45:25] Production.ERROR: pbx prc_insertCDR end [2025-03-06 13:45:25] Production.INFO: ==31822== Releasing lock... [2025-03-06 13:45:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 13:45:25] Production.INFO: 65.75 MB #Memory Used# [2025-03-06 13:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 10:46:06 [end_date_ymd] => 2025-03-06 13:46:06 [RateCDR] => 1 ) [2025-03-06 13:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 10:46:06' and `end` < '2025-03-06 13:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 13:46:19] Production.INFO: count ==5051 [2025-03-06 13:46:21] Production.ERROR: pbx CDR StartTime 2025-03-06 10:46:06 - End Time 2025-03-06 13:46:06 [2025-03-06 13:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 13:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620878', 'tblTempUsageDetail_20' ) start [2025-03-06 13:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620878', 'tblTempUsageDetail_20' ) end [2025-03-06 13:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620878', 'tblTempVendorCDR_20' ) start [2025-03-06 13:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620878', 'tblTempVendorCDR_20' ) end [2025-03-06 13:46:21] Production.INFO: ProcessCDR(1,14620878,1,1,2) [2025-03-06 13:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14620878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 13:46:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14620878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 13:46:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14620878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 13:46:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14620878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 13:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620878', 'tblTempUsageDetail_20' ) start [2025-03-06 13:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620878', 'tblTempUsageDetail_20' ) end [2025-03-06 13:46:26] Production.ERROR: pbx prc_insertCDR start [2025-03-06 13:46:26] Production.ERROR: pbx prc_insertCDR end [2025-03-06 13:46:26] Production.INFO: ==31900== Releasing lock... [2025-03-06 13:46:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 13:46:26] Production.INFO: 65.75 MB #Memory Used# [2025-03-06 13:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 10:47:05 [end_date_ymd] => 2025-03-06 13:47:05 [RateCDR] => 1 ) [2025-03-06 13:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 10:47:05' and `end` < '2025-03-06 13:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 13:47:18] Production.INFO: count ==5043 [2025-03-06 13:47:21] Production.ERROR: pbx CDR StartTime 2025-03-06 10:47:05 - End Time 2025-03-06 13:47:05 [2025-03-06 13:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 13:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620883', 'tblTempUsageDetail_20' ) start [2025-03-06 13:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620883', 'tblTempUsageDetail_20' ) end [2025-03-06 13:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620883', 'tblTempVendorCDR_20' ) start [2025-03-06 13:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620883', 'tblTempVendorCDR_20' ) end [2025-03-06 13:47:21] Production.INFO: ProcessCDR(1,14620883,1,1,2) [2025-03-06 13:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14620883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 13:47:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14620883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 13:47:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14620883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 13:47:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14620883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 13:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620883', 'tblTempUsageDetail_20' ) start [2025-03-06 13:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620883', 'tblTempUsageDetail_20' ) end [2025-03-06 13:47:26] Production.ERROR: pbx prc_insertCDR start [2025-03-06 13:47:26] Production.ERROR: pbx prc_insertCDR end [2025-03-06 13:47:26] Production.INFO: ==31971== Releasing lock... [2025-03-06 13:47:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 13:47:26] Production.INFO: 65.75 MB #Memory Used# [2025-03-06 13:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 10:48:05 [end_date_ymd] => 2025-03-06 13:48:05 [RateCDR] => 1 ) [2025-03-06 13:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 10:48:05' and `end` < '2025-03-06 13:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 13:48:18] Production.INFO: count ==5036 [2025-03-06 13:48:20] Production.ERROR: pbx CDR StartTime 2025-03-06 10:48:05 - End Time 2025-03-06 13:48:05 [2025-03-06 13:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 13:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620888', 'tblTempUsageDetail_20' ) start [2025-03-06 13:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620888', 'tblTempUsageDetail_20' ) end [2025-03-06 13:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620888', 'tblTempVendorCDR_20' ) start [2025-03-06 13:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620888', 'tblTempVendorCDR_20' ) end [2025-03-06 13:48:21] Production.INFO: ProcessCDR(1,14620888,1,1,2) [2025-03-06 13:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14620888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 13:48:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14620888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 13:48:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14620888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 13:48:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14620888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 13:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620888', 'tblTempUsageDetail_20' ) start [2025-03-06 13:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620888', 'tblTempUsageDetail_20' ) end [2025-03-06 13:48:26] Production.ERROR: pbx prc_insertCDR start [2025-03-06 13:48:26] Production.ERROR: pbx prc_insertCDR end [2025-03-06 13:48:26] Production.INFO: ==32051== Releasing lock... [2025-03-06 13:48:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 13:48:26] Production.INFO: 65.75 MB #Memory Used# [2025-03-06 13:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 10:49:05 [end_date_ymd] => 2025-03-06 13:49:05 [RateCDR] => 1 ) [2025-03-06 13: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-03-06 10:49:05' and `end` < '2025-03-06 13: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-03-06 13:49:18] Production.INFO: count ==5048 [2025-03-06 13:49:20] Production.ERROR: pbx CDR StartTime 2025-03-06 10:49:05 - End Time 2025-03-06 13:49:05 [2025-03-06 13:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 13:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620893', 'tblTempUsageDetail_20' ) start [2025-03-06 13:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620893', 'tblTempUsageDetail_20' ) end [2025-03-06 13:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620893', 'tblTempVendorCDR_20' ) start [2025-03-06 13:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620893', 'tblTempVendorCDR_20' ) end [2025-03-06 13:49:20] Production.INFO: ProcessCDR(1,14620893,1,1,2) [2025-03-06 13:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14620893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 13:49:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14620893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 13:49:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14620893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 13:49:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14620893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 13:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620893', 'tblTempUsageDetail_20' ) start [2025-03-06 13:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620893', 'tblTempUsageDetail_20' ) end [2025-03-06 13:49:25] Production.ERROR: pbx prc_insertCDR start [2025-03-06 13:49:25] Production.ERROR: pbx prc_insertCDR end [2025-03-06 13:49:25] Production.INFO: ==32125== Releasing lock... [2025-03-06 13:49:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 13:49:25] Production.INFO: 65.75 MB #Memory Used# [2025-03-06 13:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 10:50:07 [end_date_ymd] => 2025-03-06 13:50:07 [RateCDR] => 1 ) [2025-03-06 13:50: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-03-06 10:50:07' and `end` < '2025-03-06 13:50: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-03-06 13:50:20] Production.INFO: count ==5015 [2025-03-06 13:50:22] Production.ERROR: pbx CDR StartTime 2025-03-06 10:50:07 - End Time 2025-03-06 13:50:07 [2025-03-06 13:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 13:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620899', 'tblTempUsageDetail_20' ) start [2025-03-06 13:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620899', 'tblTempUsageDetail_20' ) end [2025-03-06 13:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620899', 'tblTempVendorCDR_20' ) start [2025-03-06 13:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620899', 'tblTempVendorCDR_20' ) end [2025-03-06 13:50:22] Production.INFO: ProcessCDR(1,14620899,1,1,2) [2025-03-06 13:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14620899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 13:50:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14620899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 13:50:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14620899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 13:50:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14620899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 13:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620899', 'tblTempUsageDetail_20' ) start [2025-03-06 13:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620899', 'tblTempUsageDetail_20' ) end [2025-03-06 13:50:27] Production.ERROR: pbx prc_insertCDR start [2025-03-06 13:50:27] Production.ERROR: pbx prc_insertCDR end [2025-03-06 13:50:27] Production.INFO: ==32200== Releasing lock... [2025-03-06 13:50:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 13:50:27] Production.INFO: 65.5 MB #Memory Used# [2025-03-06 13:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 10:51:05 [end_date_ymd] => 2025-03-06 13:51:05 [RateCDR] => 1 ) [2025-03-06 13:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 10:51:05' and `end` < '2025-03-06 13:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 13:51:18] Production.INFO: count ==4953 [2025-03-06 13:51:20] Production.ERROR: pbx CDR StartTime 2025-03-06 10:51:05 - End Time 2025-03-06 13:51:05 [2025-03-06 13:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 13:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620904', 'tblTempUsageDetail_20' ) start [2025-03-06 13:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620904', 'tblTempUsageDetail_20' ) end [2025-03-06 13:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620904', 'tblTempVendorCDR_20' ) start [2025-03-06 13:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620904', 'tblTempVendorCDR_20' ) end [2025-03-06 13:51:20] Production.INFO: ProcessCDR(1,14620904,1,1,2) [2025-03-06 13:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14620904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 13:51:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14620904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 13:51:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14620904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 13:51:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14620904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 13:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620904', 'tblTempUsageDetail_20' ) start [2025-03-06 13:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620904', 'tblTempUsageDetail_20' ) end [2025-03-06 13:51:25] Production.ERROR: pbx prc_insertCDR start [2025-03-06 13:51:25] Production.ERROR: pbx prc_insertCDR end [2025-03-06 13:51:25] Production.INFO: ==32276== Releasing lock... [2025-03-06 13:51:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 13:51:25] Production.INFO: 65 MB #Memory Used# [2025-03-06 13:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 10:52:06 [end_date_ymd] => 2025-03-06 13:52:06 [RateCDR] => 1 ) [2025-03-06 13: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-03-06 10:52:06' and `end` < '2025-03-06 13: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-03-06 13:52:19] Production.INFO: count ==4937 [2025-03-06 13:52:21] Production.ERROR: pbx CDR StartTime 2025-03-06 10:52:06 - End Time 2025-03-06 13:52:06 [2025-03-06 13:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 13:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620909', 'tblTempUsageDetail_20' ) start [2025-03-06 13:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620909', 'tblTempUsageDetail_20' ) end [2025-03-06 13:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620909', 'tblTempVendorCDR_20' ) start [2025-03-06 13:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620909', 'tblTempVendorCDR_20' ) end [2025-03-06 13:52:21] Production.INFO: ProcessCDR(1,14620909,1,1,2) [2025-03-06 13:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14620909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 13:52:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14620909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 13:52:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14620909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 13:52:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14620909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 13:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620909', 'tblTempUsageDetail_20' ) start [2025-03-06 13:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620909', 'tblTempUsageDetail_20' ) end [2025-03-06 13:52:25] Production.ERROR: pbx prc_insertCDR start [2025-03-06 13:52:25] Production.ERROR: pbx prc_insertCDR end [2025-03-06 13:52:25] Production.INFO: ==32353== Releasing lock... [2025-03-06 13:52:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 13:52:25] Production.INFO: 65 MB #Memory Used# [2025-03-06 13:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 10:53:05 [end_date_ymd] => 2025-03-06 13:53:05 [RateCDR] => 1 ) [2025-03-06 13: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-03-06 10:53:05' and `end` < '2025-03-06 13:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 13:53:19] Production.INFO: count ==4925 [2025-03-06 13:53:21] Production.ERROR: pbx CDR StartTime 2025-03-06 10:53:05 - End Time 2025-03-06 13:53:05 [2025-03-06 13:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 13:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620914', 'tblTempUsageDetail_20' ) start [2025-03-06 13:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620914', 'tblTempUsageDetail_20' ) end [2025-03-06 13:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620914', 'tblTempVendorCDR_20' ) start [2025-03-06 13:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620914', 'tblTempVendorCDR_20' ) end [2025-03-06 13:53:21] Production.INFO: ProcessCDR(1,14620914,1,1,2) [2025-03-06 13:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14620914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 13:53:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14620914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 13:53:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14620914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 13:53:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14620914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 13:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620914', 'tblTempUsageDetail_20' ) start [2025-03-06 13:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620914', 'tblTempUsageDetail_20' ) end [2025-03-06 13:53:26] Production.ERROR: pbx prc_insertCDR start [2025-03-06 13:53:26] Production.ERROR: pbx prc_insertCDR end [2025-03-06 13:53:26] Production.INFO: ==32427== Releasing lock... [2025-03-06 13:53:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 13:53:26] Production.INFO: 65 MB #Memory Used# [2025-03-06 13:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 10:54:06 [end_date_ymd] => 2025-03-06 13:54:06 [RateCDR] => 1 ) [2025-03-06 13: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-03-06 10:54:06' and `end` < '2025-03-06 13: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-03-06 13:54:19] Production.INFO: count ==4919 [2025-03-06 13:54:21] Production.ERROR: pbx CDR StartTime 2025-03-06 10:54:06 - End Time 2025-03-06 13:54:06 [2025-03-06 13:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 13:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620919', 'tblTempUsageDetail_20' ) start [2025-03-06 13:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620919', 'tblTempUsageDetail_20' ) end [2025-03-06 13:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620919', 'tblTempVendorCDR_20' ) start [2025-03-06 13:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620919', 'tblTempVendorCDR_20' ) end [2025-03-06 13:54:21] Production.INFO: ProcessCDR(1,14620919,1,1,2) [2025-03-06 13:54:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14620919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 13:54:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14620919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 13:54:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14620919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 13:54:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14620919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 13:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620919', 'tblTempUsageDetail_20' ) start [2025-03-06 13:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620919', 'tblTempUsageDetail_20' ) end [2025-03-06 13:54:27] Production.ERROR: pbx prc_insertCDR start [2025-03-06 13:54:27] Production.ERROR: pbx prc_insertCDR end [2025-03-06 13:54:27] Production.INFO: ==32501== Releasing lock... [2025-03-06 13:54:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 13:54:27] Production.INFO: 64.75 MB #Memory Used# [2025-03-06 13:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 10:55:05 [end_date_ymd] => 2025-03-06 13:55:05 [RateCDR] => 1 ) [2025-03-06 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-03-06 10:55:05' and `end` < '2025-03-06 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-03-06 13:55:18] Production.INFO: count ==4920 [2025-03-06 13:55:20] Production.ERROR: pbx CDR StartTime 2025-03-06 10:55:05 - End Time 2025-03-06 13:55:05 [2025-03-06 13:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 13:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620924', 'tblTempUsageDetail_20' ) start [2025-03-06 13:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620924', 'tblTempUsageDetail_20' ) end [2025-03-06 13:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620924', 'tblTempVendorCDR_20' ) start [2025-03-06 13:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620924', 'tblTempVendorCDR_20' ) end [2025-03-06 13:55:21] Production.INFO: ProcessCDR(1,14620924,1,1,2) [2025-03-06 13:55:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14620924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 13:55:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14620924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 13:55:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14620924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 13:55:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14620924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 13:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620924', 'tblTempUsageDetail_20' ) start [2025-03-06 13:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620924', 'tblTempUsageDetail_20' ) end [2025-03-06 13:55:26] Production.ERROR: pbx prc_insertCDR start [2025-03-06 13:55:26] Production.ERROR: pbx prc_insertCDR end [2025-03-06 13:55:26] Production.INFO: ==32575== Releasing lock... [2025-03-06 13:55:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 13:55:26] Production.INFO: 64.75 MB #Memory Used# [2025-03-06 13:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 10:56:06 [end_date_ymd] => 2025-03-06 13:56:06 [RateCDR] => 1 ) [2025-03-06 13: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-03-06 10:56:06' and `end` < '2025-03-06 13: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-03-06 13:56:18] Production.INFO: count ==5120 [2025-03-06 13:56:21] Production.ERROR: pbx CDR StartTime 2025-03-06 10:56:06 - End Time 2025-03-06 13:56:06 [2025-03-06 13:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 13:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620929', 'tblTempUsageDetail_20' ) start [2025-03-06 13:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620929', 'tblTempUsageDetail_20' ) end [2025-03-06 13:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620929', 'tblTempVendorCDR_20' ) start [2025-03-06 13:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620929', 'tblTempVendorCDR_20' ) end [2025-03-06 13:56:21] Production.INFO: ProcessCDR(1,14620929,1,1,2) [2025-03-06 13:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14620929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 13:56:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14620929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 13:56:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14620929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 13:56:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14620929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 13:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620929', 'tblTempUsageDetail_20' ) start [2025-03-06 13:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620929', 'tblTempUsageDetail_20' ) end [2025-03-06 13:56:27] Production.ERROR: pbx prc_insertCDR start [2025-03-06 13:56:27] Production.ERROR: pbx prc_insertCDR end [2025-03-06 13:56:27] Production.INFO: ==32693== Releasing lock... [2025-03-06 13:56:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 13:56:27] Production.INFO: 66.25 MB #Memory Used# [2025-03-06 13:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 10:57:05 [end_date_ymd] => 2025-03-06 13:57:05 [RateCDR] => 1 ) [2025-03-06 13:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 10:57:05' and `end` < '2025-03-06 13:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 13:57:18] Production.INFO: count ==5105 [2025-03-06 13:57:20] Production.ERROR: pbx CDR StartTime 2025-03-06 10:57:05 - End Time 2025-03-06 13:57:05 [2025-03-06 13:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 13:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620934', 'tblTempUsageDetail_20' ) start [2025-03-06 13:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620934', 'tblTempUsageDetail_20' ) end [2025-03-06 13:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620934', 'tblTempVendorCDR_20' ) start [2025-03-06 13:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620934', 'tblTempVendorCDR_20' ) end [2025-03-06 13:57:20] Production.INFO: ProcessCDR(1,14620934,1,1,2) [2025-03-06 13:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14620934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 13:57:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14620934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 13:57:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14620934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 13:57:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14620934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 13:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620934', 'tblTempUsageDetail_20' ) start [2025-03-06 13:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620934', 'tblTempUsageDetail_20' ) end [2025-03-06 13:57:25] Production.ERROR: pbx prc_insertCDR start [2025-03-06 13:57:25] Production.ERROR: pbx prc_insertCDR end [2025-03-06 13:57:25] Production.INFO: ==304== Releasing lock... [2025-03-06 13:57:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 13:57:25] Production.INFO: 66.25 MB #Memory Used# [2025-03-06 13:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 10:58:05 [end_date_ymd] => 2025-03-06 13:58:05 [RateCDR] => 1 ) [2025-03-06 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-03-06 10:58:05' and `end` < '2025-03-06 13:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 13:58:18] Production.INFO: count ==5100 [2025-03-06 13:58:20] Production.ERROR: pbx CDR StartTime 2025-03-06 10:58:05 - End Time 2025-03-06 13:58:05 [2025-03-06 13:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 13:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620939', 'tblTempUsageDetail_20' ) start [2025-03-06 13:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620939', 'tblTempUsageDetail_20' ) end [2025-03-06 13:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620939', 'tblTempVendorCDR_20' ) start [2025-03-06 13:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620939', 'tblTempVendorCDR_20' ) end [2025-03-06 13:58:21] Production.INFO: ProcessCDR(1,14620939,1,1,2) [2025-03-06 13:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14620939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 13:58:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14620939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 13:58:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14620939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 13:58:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14620939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 13:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620939', 'tblTempUsageDetail_20' ) start [2025-03-06 13:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620939', 'tblTempUsageDetail_20' ) end [2025-03-06 13:58:26] Production.ERROR: pbx prc_insertCDR start [2025-03-06 13:58:26] Production.ERROR: pbx prc_insertCDR end [2025-03-06 13:58:26] Production.INFO: ==402== Releasing lock... [2025-03-06 13:58:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 13:58:26] Production.INFO: 66.25 MB #Memory Used# [2025-03-06 13:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 10:59:05 [end_date_ymd] => 2025-03-06 13:59:05 [RateCDR] => 1 ) [2025-03-06 13:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 10:59:05' and `end` < '2025-03-06 13:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 13:59:18] Production.INFO: count ==5104 [2025-03-06 13:59:20] Production.ERROR: pbx CDR StartTime 2025-03-06 10:59:05 - End Time 2025-03-06 13:59:05 [2025-03-06 13:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 13:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620944', 'tblTempUsageDetail_20' ) start [2025-03-06 13:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620944', 'tblTempUsageDetail_20' ) end [2025-03-06 13:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620944', 'tblTempVendorCDR_20' ) start [2025-03-06 13:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620944', 'tblTempVendorCDR_20' ) end [2025-03-06 13:59:20] Production.INFO: ProcessCDR(1,14620944,1,1,2) [2025-03-06 13:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14620944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 13:59:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14620944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 13:59:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14620944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 13:59:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14620944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 13:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620944', 'tblTempUsageDetail_20' ) start [2025-03-06 13:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620944', 'tblTempUsageDetail_20' ) end [2025-03-06 13:59:25] Production.ERROR: pbx prc_insertCDR start [2025-03-06 13:59:25] Production.ERROR: pbx prc_insertCDR end [2025-03-06 13:59:26] Production.INFO: ==477== Releasing lock... [2025-03-06 13:59:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 13:59:26] Production.INFO: 66.25 MB #Memory Used# [2025-03-06 14:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 11:00:06 [end_date_ymd] => 2025-03-06 14:00:06 [RateCDR] => 1 ) [2025-03-06 14:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 11:00:06' and `end` < '2025-03-06 14:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 14:00:19] Production.INFO: count ==5109 [2025-03-06 14:00:21] Production.ERROR: pbx CDR StartTime 2025-03-06 11:00:06 - End Time 2025-03-06 14:00:06 [2025-03-06 14:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 14:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620949', 'tblTempUsageDetail_20' ) start [2025-03-06 14:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620949', 'tblTempUsageDetail_20' ) end [2025-03-06 14:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620949', 'tblTempVendorCDR_20' ) start [2025-03-06 14:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620949', 'tblTempVendorCDR_20' ) end [2025-03-06 14:00:21] Production.INFO: ProcessCDR(1,14620949,1,1,2) [2025-03-06 14:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14620949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 14:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14620949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 14:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14620949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 14:00:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14620949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 14:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620949', 'tblTempUsageDetail_20' ) start [2025-03-06 14:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620949', 'tblTempUsageDetail_20' ) end [2025-03-06 14:00:27] Production.ERROR: pbx prc_insertCDR start [2025-03-06 14:00:27] Production.ERROR: pbx prc_insertCDR end [2025-03-06 14:00:27] Production.INFO: ==557== Releasing lock... [2025-03-06 14:00:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 14:00:27] Production.INFO: 66.25 MB #Memory Used# [2025-03-06 14:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 11:01:05 [end_date_ymd] => 2025-03-06 14:01:05 [RateCDR] => 1 ) [2025-03-06 14:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 11:01:05' and `end` < '2025-03-06 14:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 14:01:18] Production.INFO: count ==5165 [2025-03-06 14:01:20] Production.ERROR: pbx CDR StartTime 2025-03-06 11:01:05 - End Time 2025-03-06 14:01:05 [2025-03-06 14:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 14:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620955', 'tblTempUsageDetail_20' ) start [2025-03-06 14:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620955', 'tblTempUsageDetail_20' ) end [2025-03-06 14:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620955', 'tblTempVendorCDR_20' ) start [2025-03-06 14:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620955', 'tblTempVendorCDR_20' ) end [2025-03-06 14:01:20] Production.INFO: ProcessCDR(1,14620955,1,1,2) [2025-03-06 14:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14620955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 14:01:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14620955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 14:01:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14620955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 14:01:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14620955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 14:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620955', 'tblTempUsageDetail_20' ) start [2025-03-06 14:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620955', 'tblTempUsageDetail_20' ) end [2025-03-06 14:01:25] Production.ERROR: pbx prc_insertCDR start [2025-03-06 14:01:25] Production.ERROR: pbx prc_insertCDR end [2025-03-06 14:01:25] Production.INFO: ==650== Releasing lock... [2025-03-06 14:01:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 14:01:25] Production.INFO: 66.75 MB #Memory Used# [2025-03-06 14:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 11:02:05 [end_date_ymd] => 2025-03-06 14:02:05 [RateCDR] => 1 ) [2025-03-06 14:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 11:02:05' and `end` < '2025-03-06 14:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 14:02:19] Production.INFO: count ==5149 [2025-03-06 14:02:21] Production.ERROR: pbx CDR StartTime 2025-03-06 11:02:05 - End Time 2025-03-06 14:02:05 [2025-03-06 14:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 14:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620960', 'tblTempUsageDetail_20' ) start [2025-03-06 14:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620960', 'tblTempUsageDetail_20' ) end [2025-03-06 14:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620960', 'tblTempVendorCDR_20' ) start [2025-03-06 14:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620960', 'tblTempVendorCDR_20' ) end [2025-03-06 14:02:21] Production.INFO: ProcessCDR(1,14620960,1,1,2) [2025-03-06 14:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14620960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 14:02:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14620960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 14:02:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14620960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 14:02:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14620960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 14:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620960', 'tblTempUsageDetail_20' ) start [2025-03-06 14:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620960', 'tblTempUsageDetail_20' ) end [2025-03-06 14:02:26] Production.ERROR: pbx prc_insertCDR start [2025-03-06 14:02:26] Production.ERROR: pbx prc_insertCDR end [2025-03-06 14:02:26] Production.INFO: ==752== Releasing lock... [2025-03-06 14:02:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 14:02:26] Production.INFO: 66.5 MB #Memory Used# [2025-03-06 14:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 11:03:05 [end_date_ymd] => 2025-03-06 14:03:05 [RateCDR] => 1 ) [2025-03-06 14:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 11:03:05' and `end` < '2025-03-06 14:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 14:03:18] Production.INFO: count ==5145 [2025-03-06 14:03:20] Production.ERROR: pbx CDR StartTime 2025-03-06 11:03:05 - End Time 2025-03-06 14:03:05 [2025-03-06 14:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 14:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620965', 'tblTempUsageDetail_20' ) start [2025-03-06 14:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620965', 'tblTempUsageDetail_20' ) end [2025-03-06 14:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620965', 'tblTempVendorCDR_20' ) start [2025-03-06 14:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620965', 'tblTempVendorCDR_20' ) end [2025-03-06 14:03:21] Production.INFO: ProcessCDR(1,14620965,1,1,2) [2025-03-06 14:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14620965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 14:03:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14620965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 14:03:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14620965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 14:03:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14620965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 14:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620965', 'tblTempUsageDetail_20' ) start [2025-03-06 14:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620965', 'tblTempUsageDetail_20' ) end [2025-03-06 14:03:25] Production.ERROR: pbx prc_insertCDR start [2025-03-06 14:03:25] Production.ERROR: pbx prc_insertCDR end [2025-03-06 14:03:25] Production.INFO: ==825== Releasing lock... [2025-03-06 14:03:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 14:03:25] Production.INFO: 66.5 MB #Memory Used# [2025-03-06 14:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 11:04:05 [end_date_ymd] => 2025-03-06 14:04:05 [RateCDR] => 1 ) [2025-03-06 14:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 11:04:05' and `end` < '2025-03-06 14:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 14:04:18] Production.INFO: count ==5149 [2025-03-06 14:04:20] Production.ERROR: pbx CDR StartTime 2025-03-06 11:04:05 - End Time 2025-03-06 14:04:05 [2025-03-06 14:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 14:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620970', 'tblTempUsageDetail_20' ) start [2025-03-06 14:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620970', 'tblTempUsageDetail_20' ) end [2025-03-06 14:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620970', 'tblTempVendorCDR_20' ) start [2025-03-06 14:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620970', 'tblTempVendorCDR_20' ) end [2025-03-06 14:04:21] Production.INFO: ProcessCDR(1,14620970,1,1,2) [2025-03-06 14:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14620970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 14:04:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14620970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 14:04:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14620970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 14:04:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14620970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 14:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620970', 'tblTempUsageDetail_20' ) start [2025-03-06 14:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620970', 'tblTempUsageDetail_20' ) end [2025-03-06 14:04:26] Production.ERROR: pbx prc_insertCDR start [2025-03-06 14:04:26] Production.ERROR: pbx prc_insertCDR end [2025-03-06 14:04:26] Production.INFO: ==903== Releasing lock... [2025-03-06 14:04:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 14:04:26] Production.INFO: 66.5 MB #Memory Used# [2025-03-06 14:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 11:05:04 [end_date_ymd] => 2025-03-06 14:05:04 [RateCDR] => 1 ) [2025-03-06 14:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 11:05:04' and `end` < '2025-03-06 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-03-06 14:05:18] Production.INFO: count ==5137 [2025-03-06 14:05:20] Production.ERROR: pbx CDR StartTime 2025-03-06 11:05:04 - End Time 2025-03-06 14:05:04 [2025-03-06 14:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 14:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620975', 'tblTempUsageDetail_20' ) start [2025-03-06 14:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620975', 'tblTempUsageDetail_20' ) end [2025-03-06 14:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620975', 'tblTempVendorCDR_20' ) start [2025-03-06 14:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620975', 'tblTempVendorCDR_20' ) end [2025-03-06 14:05:20] Production.INFO: ProcessCDR(1,14620975,1,1,2) [2025-03-06 14:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14620975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 14:05:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14620975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 14:05:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14620975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 14:05:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14620975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 14:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620975', 'tblTempUsageDetail_20' ) start [2025-03-06 14:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620975', 'tblTempUsageDetail_20' ) end [2025-03-06 14:05:25] Production.ERROR: pbx prc_insertCDR start [2025-03-06 14:05:25] Production.ERROR: pbx prc_insertCDR end [2025-03-06 14:05:25] Production.INFO: ==979== Releasing lock... [2025-03-06 14:05:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 14:05:25] Production.INFO: 66.5 MB #Memory Used# [2025-03-06 14:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 11:06:06 [end_date_ymd] => 2025-03-06 14:06:06 [RateCDR] => 1 ) [2025-03-06 14: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-03-06 11:06:06' and `end` < '2025-03-06 14: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-03-06 14:06:19] Production.INFO: count ==5149 [2025-03-06 14:06:21] Production.ERROR: pbx CDR StartTime 2025-03-06 11:06:06 - End Time 2025-03-06 14:06:06 [2025-03-06 14:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 14:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620980', 'tblTempUsageDetail_20' ) start [2025-03-06 14:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620980', 'tblTempUsageDetail_20' ) end [2025-03-06 14:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620980', 'tblTempVendorCDR_20' ) start [2025-03-06 14:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620980', 'tblTempVendorCDR_20' ) end [2025-03-06 14:06:22] Production.INFO: ProcessCDR(1,14620980,1,1,2) [2025-03-06 14:06:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14620980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 14:06:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14620980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 14:06:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14620980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 14:06:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14620980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 14:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620980', 'tblTempUsageDetail_20' ) start [2025-03-06 14:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620980', 'tblTempUsageDetail_20' ) end [2025-03-06 14:06:27] Production.ERROR: pbx prc_insertCDR start [2025-03-06 14:06:27] Production.ERROR: pbx prc_insertCDR end [2025-03-06 14:06:27] Production.INFO: ==1055== Releasing lock... [2025-03-06 14:06:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 14:06:27] Production.INFO: 66.5 MB #Memory Used# [2025-03-06 14:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 11:07:05 [end_date_ymd] => 2025-03-06 14:07:05 [RateCDR] => 1 ) [2025-03-06 14:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 11:07:05' and `end` < '2025-03-06 14:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 14:07:18] Production.INFO: count ==5184 [2025-03-06 14:07:20] Production.ERROR: pbx CDR StartTime 2025-03-06 11:07:05 - End Time 2025-03-06 14:07:05 [2025-03-06 14:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 14:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620985', 'tblTempUsageDetail_20' ) start [2025-03-06 14:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620985', 'tblTempUsageDetail_20' ) end [2025-03-06 14:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620985', 'tblTempVendorCDR_20' ) start [2025-03-06 14:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620985', 'tblTempVendorCDR_20' ) end [2025-03-06 14:07:21] Production.INFO: ProcessCDR(1,14620985,1,1,2) [2025-03-06 14:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14620985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 14:07:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14620985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 14:07:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14620985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 14:07:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14620985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 14:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620985', 'tblTempUsageDetail_20' ) start [2025-03-06 14:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620985', 'tblTempUsageDetail_20' ) end [2025-03-06 14:07:26] Production.ERROR: pbx prc_insertCDR start [2025-03-06 14:07:26] Production.ERROR: pbx prc_insertCDR end [2025-03-06 14:07:26] Production.INFO: ==1126== Releasing lock... [2025-03-06 14:07:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 14:07:26] Production.INFO: 66.75 MB #Memory Used# [2025-03-06 14:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 11:08:05 [end_date_ymd] => 2025-03-06 14:08:05 [RateCDR] => 1 ) [2025-03-06 14:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 11:08:05' and `end` < '2025-03-06 14:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 14:08:18] Production.INFO: count ==5188 [2025-03-06 14:08:20] Production.ERROR: pbx CDR StartTime 2025-03-06 11:08:05 - End Time 2025-03-06 14:08:05 [2025-03-06 14:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 14:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620990', 'tblTempUsageDetail_20' ) start [2025-03-06 14:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620990', 'tblTempUsageDetail_20' ) end [2025-03-06 14:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620990', 'tblTempVendorCDR_20' ) start [2025-03-06 14:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620990', 'tblTempVendorCDR_20' ) end [2025-03-06 14:08:20] Production.INFO: ProcessCDR(1,14620990,1,1,2) [2025-03-06 14:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14620990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 14:08:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14620990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 14:08:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14620990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 14:08:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14620990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 14:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620990', 'tblTempUsageDetail_20' ) start [2025-03-06 14:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620990', 'tblTempUsageDetail_20' ) end [2025-03-06 14:08:26] Production.ERROR: pbx prc_insertCDR start [2025-03-06 14:08:26] Production.ERROR: pbx prc_insertCDR end [2025-03-06 14:08:26] Production.INFO: ==1213== Releasing lock... [2025-03-06 14:08:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 14:08:26] Production.INFO: 66.75 MB #Memory Used# [2025-03-06 14:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 11:09:06 [end_date_ymd] => 2025-03-06 14:09:06 [RateCDR] => 1 ) [2025-03-06 14: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-03-06 11:09:06' and `end` < '2025-03-06 14: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-03-06 14:09:19] Production.INFO: count ==5182 [2025-03-06 14:09:21] Production.ERROR: pbx CDR StartTime 2025-03-06 11:09:06 - End Time 2025-03-06 14:09:06 [2025-03-06 14:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 14:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620995', 'tblTempUsageDetail_20' ) start [2025-03-06 14:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14620995', 'tblTempUsageDetail_20' ) end [2025-03-06 14:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620995', 'tblTempVendorCDR_20' ) start [2025-03-06 14:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14620995', 'tblTempVendorCDR_20' ) end [2025-03-06 14:09:21] Production.INFO: ProcessCDR(1,14620995,1,1,2) [2025-03-06 14:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14620995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 14:09:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14620995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 14:09:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14620995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 14:09:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14620995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 14:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620995', 'tblTempUsageDetail_20' ) start [2025-03-06 14:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14620995', 'tblTempUsageDetail_20' ) end [2025-03-06 14:09:26] Production.ERROR: pbx prc_insertCDR start [2025-03-06 14:09:26] Production.ERROR: pbx prc_insertCDR end [2025-03-06 14:09:26] Production.INFO: ==1296== Releasing lock... [2025-03-06 14:09:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 14:09:26] Production.INFO: 66.75 MB #Memory Used# [2025-03-06 14:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 11:10:06 [end_date_ymd] => 2025-03-06 14:10:06 [RateCDR] => 1 ) [2025-03-06 14: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-03-06 11:10:06' and `end` < '2025-03-06 14: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-03-06 14:10:19] Production.INFO: count ==5177 [2025-03-06 14:10:21] Production.ERROR: pbx CDR StartTime 2025-03-06 11:10:06 - End Time 2025-03-06 14:10:06 [2025-03-06 14:10:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 14:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621001', 'tblTempUsageDetail_20' ) start [2025-03-06 14:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621001', 'tblTempUsageDetail_20' ) end [2025-03-06 14:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621001', 'tblTempVendorCDR_20' ) start [2025-03-06 14:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621001', 'tblTempVendorCDR_20' ) end [2025-03-06 14:10:21] Production.INFO: ProcessCDR(1,14621001,1,1,2) [2025-03-06 14:10:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14621001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 14:10:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14621001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 14:10:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14621001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 14:10:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14621001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 14:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621001', 'tblTempUsageDetail_20' ) start [2025-03-06 14:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621001', 'tblTempUsageDetail_20' ) end [2025-03-06 14:10:26] Production.ERROR: pbx prc_insertCDR start [2025-03-06 14:10:26] Production.ERROR: pbx prc_insertCDR end [2025-03-06 14:10:26] Production.INFO: ==1378== Releasing lock... [2025-03-06 14:10:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 14:10:26] Production.INFO: 66.75 MB #Memory Used# [2025-03-06 14:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 11:11:05 [end_date_ymd] => 2025-03-06 14:11:05 [RateCDR] => 1 ) [2025-03-06 14:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 11:11:05' and `end` < '2025-03-06 14:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 14:11:18] Production.INFO: count ==5168 [2025-03-06 14:11:20] Production.ERROR: pbx CDR StartTime 2025-03-06 11:11:05 - End Time 2025-03-06 14:11:05 [2025-03-06 14:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 14:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621006', 'tblTempUsageDetail_20' ) start [2025-03-06 14:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621006', 'tblTempUsageDetail_20' ) end [2025-03-06 14:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621006', 'tblTempVendorCDR_20' ) start [2025-03-06 14:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621006', 'tblTempVendorCDR_20' ) end [2025-03-06 14:11:21] Production.INFO: ProcessCDR(1,14621006,1,1,2) [2025-03-06 14:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14621006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 14:11:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14621006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 14:11:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14621006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 14:11:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14621006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 14:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621006', 'tblTempUsageDetail_20' ) start [2025-03-06 14:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621006', 'tblTempUsageDetail_20' ) end [2025-03-06 14:11:26] Production.ERROR: pbx prc_insertCDR start [2025-03-06 14:11:26] Production.ERROR: pbx prc_insertCDR end [2025-03-06 14:11:26] Production.INFO: ==1457== Releasing lock... [2025-03-06 14:11:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 14:11:26] Production.INFO: 66.75 MB #Memory Used# [2025-03-06 14:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 11:12:05 [end_date_ymd] => 2025-03-06 14:12:05 [RateCDR] => 1 ) [2025-03-06 14:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 11:12:05' and `end` < '2025-03-06 14:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 14:12:18] Production.INFO: count ==5174 [2025-03-06 14:12:20] Production.ERROR: pbx CDR StartTime 2025-03-06 11:12:05 - End Time 2025-03-06 14:12:05 [2025-03-06 14:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 14:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621011', 'tblTempUsageDetail_20' ) start [2025-03-06 14:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621011', 'tblTempUsageDetail_20' ) end [2025-03-06 14:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621011', 'tblTempVendorCDR_20' ) start [2025-03-06 14:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621011', 'tblTempVendorCDR_20' ) end [2025-03-06 14:12:21] Production.INFO: ProcessCDR(1,14621011,1,1,2) [2025-03-06 14:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14621011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 14:12:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14621011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 14:12:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14621011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 14:12:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14621011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 14:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621011', 'tblTempUsageDetail_20' ) start [2025-03-06 14:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621011', 'tblTempUsageDetail_20' ) end [2025-03-06 14:12:25] Production.ERROR: pbx prc_insertCDR start [2025-03-06 14:12:25] Production.ERROR: pbx prc_insertCDR end [2025-03-06 14:12:25] Production.INFO: ==1606== Releasing lock... [2025-03-06 14:12:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 14:12:25] Production.INFO: 66.75 MB #Memory Used# [2025-03-06 14:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 11:13:05 [end_date_ymd] => 2025-03-06 14:13:05 [RateCDR] => 1 ) [2025-03-06 14:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 11:13:05' and `end` < '2025-03-06 14:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 14:13:18] Production.INFO: count ==5190 [2025-03-06 14:13:20] Production.ERROR: pbx CDR StartTime 2025-03-06 11:13:05 - End Time 2025-03-06 14:13:05 [2025-03-06 14:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 14:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621016', 'tblTempUsageDetail_20' ) start [2025-03-06 14:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621016', 'tblTempUsageDetail_20' ) end [2025-03-06 14:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621016', 'tblTempVendorCDR_20' ) start [2025-03-06 14:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621016', 'tblTempVendorCDR_20' ) end [2025-03-06 14:13:20] Production.INFO: ProcessCDR(1,14621016,1,1,2) [2025-03-06 14:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14621016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 14:13:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14621016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 14:13:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14621016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 14:13:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14621016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 14:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621016', 'tblTempUsageDetail_20' ) start [2025-03-06 14:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621016', 'tblTempUsageDetail_20' ) end [2025-03-06 14:13:25] Production.ERROR: pbx prc_insertCDR start [2025-03-06 14:13:25] Production.ERROR: pbx prc_insertCDR end [2025-03-06 14:13:25] Production.INFO: ==1681== Releasing lock... [2025-03-06 14:13:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 14:13:25] Production.INFO: 66.75 MB #Memory Used# [2025-03-06 14:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 11:14:05 [end_date_ymd] => 2025-03-06 14:14:05 [RateCDR] => 1 ) [2025-03-06 14:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 11:14:05' and `end` < '2025-03-06 14:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 14:14:18] Production.INFO: count ==5187 [2025-03-06 14:14:20] Production.ERROR: pbx CDR StartTime 2025-03-06 11:14:05 - End Time 2025-03-06 14:14:05 [2025-03-06 14:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 14:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621021', 'tblTempUsageDetail_20' ) start [2025-03-06 14:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621021', 'tblTempUsageDetail_20' ) end [2025-03-06 14:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621021', 'tblTempVendorCDR_20' ) start [2025-03-06 14:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621021', 'tblTempVendorCDR_20' ) end [2025-03-06 14:14:21] Production.INFO: ProcessCDR(1,14621021,1,1,2) [2025-03-06 14:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14621021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 14:14:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14621021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 14:14:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14621021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 14:14:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14621021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 14:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621021', 'tblTempUsageDetail_20' ) start [2025-03-06 14:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621021', 'tblTempUsageDetail_20' ) end [2025-03-06 14:14:26] Production.ERROR: pbx prc_insertCDR start [2025-03-06 14:14:26] Production.ERROR: pbx prc_insertCDR end [2025-03-06 14:14:26] Production.INFO: ==1756== Releasing lock... [2025-03-06 14:14:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 14:14:26] Production.INFO: 67 MB #Memory Used# [2025-03-06 14:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 11:15:06 [end_date_ymd] => 2025-03-06 14:15:06 [RateCDR] => 1 ) [2025-03-06 14: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-03-06 11:15:06' and `end` < '2025-03-06 14: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-03-06 14:15:19] Production.INFO: count ==5193 [2025-03-06 14:15:21] Production.ERROR: pbx CDR StartTime 2025-03-06 11:15:06 - End Time 2025-03-06 14:15:06 [2025-03-06 14:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 14:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621026', 'tblTempUsageDetail_20' ) start [2025-03-06 14:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621026', 'tblTempUsageDetail_20' ) end [2025-03-06 14:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621026', 'tblTempVendorCDR_20' ) start [2025-03-06 14:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621026', 'tblTempVendorCDR_20' ) end [2025-03-06 14:15:21] Production.INFO: ProcessCDR(1,14621026,1,1,2) [2025-03-06 14:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14621026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 14:15:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14621026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 14:15:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14621026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 14:15:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14621026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 14:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621026', 'tblTempUsageDetail_20' ) start [2025-03-06 14:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621026', 'tblTempUsageDetail_20' ) end [2025-03-06 14:15:27] Production.ERROR: pbx prc_insertCDR start [2025-03-06 14:15:27] Production.ERROR: pbx prc_insertCDR end [2025-03-06 14:15:27] Production.INFO: ==1834== Releasing lock... [2025-03-06 14:15:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 14:15:27] Production.INFO: 67 MB #Memory Used# [2025-03-06 14:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 11:16:06 [end_date_ymd] => 2025-03-06 14:16:06 [RateCDR] => 1 ) [2025-03-06 14: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-03-06 11:16:06' and `end` < '2025-03-06 14: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-03-06 14:16:19] Production.INFO: count ==5193 [2025-03-06 14:16:21] Production.ERROR: pbx CDR StartTime 2025-03-06 11:16:06 - End Time 2025-03-06 14:16:06 [2025-03-06 14:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 14:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621031', 'tblTempUsageDetail_20' ) start [2025-03-06 14:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621031', 'tblTempUsageDetail_20' ) end [2025-03-06 14:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621031', 'tblTempVendorCDR_20' ) start [2025-03-06 14:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621031', 'tblTempVendorCDR_20' ) end [2025-03-06 14:16:22] Production.INFO: ProcessCDR(1,14621031,1,1,2) [2025-03-06 14:16:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14621031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 14:16:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14621031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 14:16:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14621031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 14:16:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14621031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 14:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621031', 'tblTempUsageDetail_20' ) start [2025-03-06 14:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621031', 'tblTempUsageDetail_20' ) end [2025-03-06 14:16:26] Production.ERROR: pbx prc_insertCDR start [2025-03-06 14:16:26] Production.ERROR: pbx prc_insertCDR end [2025-03-06 14:16:26] Production.INFO: ==1911== Releasing lock... [2025-03-06 14:16:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 14:16:26] Production.INFO: 67 MB #Memory Used# [2025-03-06 14:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 11:17:05 [end_date_ymd] => 2025-03-06 14:17:05 [RateCDR] => 1 ) [2025-03-06 14:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 11:17:05' and `end` < '2025-03-06 14:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 14:17:18] Production.INFO: count ==5264 [2025-03-06 14:17:20] Production.ERROR: pbx CDR StartTime 2025-03-06 11:17:05 - End Time 2025-03-06 14:17:05 [2025-03-06 14:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 14:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621036', 'tblTempUsageDetail_20' ) start [2025-03-06 14:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621036', 'tblTempUsageDetail_20' ) end [2025-03-06 14:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621036', 'tblTempVendorCDR_20' ) start [2025-03-06 14:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621036', 'tblTempVendorCDR_20' ) end [2025-03-06 14:17:20] Production.INFO: ProcessCDR(1,14621036,1,1,2) [2025-03-06 14:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14621036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 14:17:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14621036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 14:17:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14621036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 14:17:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14621036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 14:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621036', 'tblTempUsageDetail_20' ) start [2025-03-06 14:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621036', 'tblTempUsageDetail_20' ) end [2025-03-06 14:17:26] Production.ERROR: pbx prc_insertCDR start [2025-03-06 14:17:26] Production.ERROR: pbx prc_insertCDR end [2025-03-06 14:17:26] Production.INFO: ==1988== Releasing lock... [2025-03-06 14:17:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 14:17:26] Production.INFO: 67.5 MB #Memory Used# [2025-03-06 14:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 11:18:05 [end_date_ymd] => 2025-03-06 14:18:05 [RateCDR] => 1 ) [2025-03-06 14:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 11:18:05' and `end` < '2025-03-06 14:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 14:18:18] Production.INFO: count ==5301 [2025-03-06 14:18:21] Production.ERROR: pbx CDR StartTime 2025-03-06 11:18:05 - End Time 2025-03-06 14:18:05 [2025-03-06 14:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 14:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621041', 'tblTempUsageDetail_20' ) start [2025-03-06 14:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621041', 'tblTempUsageDetail_20' ) end [2025-03-06 14:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621041', 'tblTempVendorCDR_20' ) start [2025-03-06 14:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621041', 'tblTempVendorCDR_20' ) end [2025-03-06 14:18:21] Production.INFO: ProcessCDR(1,14621041,1,1,2) [2025-03-06 14:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14621041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 14:18:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14621041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 14:18:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14621041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 14:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14621041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 14:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621041', 'tblTempUsageDetail_20' ) start [2025-03-06 14:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621041', 'tblTempUsageDetail_20' ) end [2025-03-06 14:18:24] Production.ERROR: pbx prc_insertCDR start [2025-03-06 14:18:24] Production.ERROR: pbx prc_insertCDR end [2025-03-06 14:18:24] Production.INFO: ==2061== Releasing lock... [2025-03-06 14:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 14:18:24] Production.INFO: 67.75 MB #Memory Used# [2025-03-06 14:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 11:19:05 [end_date_ymd] => 2025-03-06 14:19:05 [RateCDR] => 1 ) [2025-03-06 14:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 11:19:05' and `end` < '2025-03-06 14:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 14:19:18] Production.INFO: count ==5286 [2025-03-06 14:19:20] Production.ERROR: pbx CDR StartTime 2025-03-06 11:19:05 - End Time 2025-03-06 14:19:05 [2025-03-06 14:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 14:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621046', 'tblTempUsageDetail_20' ) start [2025-03-06 14:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621046', 'tblTempUsageDetail_20' ) end [2025-03-06 14:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621046', 'tblTempVendorCDR_20' ) start [2025-03-06 14:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621046', 'tblTempVendorCDR_20' ) end [2025-03-06 14:19:20] Production.INFO: ProcessCDR(1,14621046,1,1,2) [2025-03-06 14:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14621046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 14:19:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14621046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 14:19:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14621046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 14:19:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14621046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 14:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621046', 'tblTempUsageDetail_20' ) start [2025-03-06 14:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621046', 'tblTempUsageDetail_20' ) end [2025-03-06 14:19:25] Production.ERROR: pbx prc_insertCDR start [2025-03-06 14:19:25] Production.ERROR: pbx prc_insertCDR end [2025-03-06 14:19:25] Production.INFO: ==2137== Releasing lock... [2025-03-06 14:19:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 14:19:25] Production.INFO: 67.5 MB #Memory Used# [2025-03-06 14:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 11:20:07 [end_date_ymd] => 2025-03-06 14:20:07 [RateCDR] => 1 ) [2025-03-06 14: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-03-06 11:20:07' and `end` < '2025-03-06 14: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-03-06 14:20:20] Production.INFO: count ==5283 [2025-03-06 14:20:22] Production.ERROR: pbx CDR StartTime 2025-03-06 11:20:07 - End Time 2025-03-06 14:20:07 [2025-03-06 14:20:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 14:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621052', 'tblTempUsageDetail_20' ) start [2025-03-06 14:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621052', 'tblTempUsageDetail_20' ) end [2025-03-06 14:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621052', 'tblTempVendorCDR_20' ) start [2025-03-06 14:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621052', 'tblTempVendorCDR_20' ) end [2025-03-06 14:20:22] Production.INFO: ProcessCDR(1,14621052,1,1,2) [2025-03-06 14:20:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14621052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 14:20:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14621052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 14:20:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14621052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 14:20:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14621052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 14:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621052', 'tblTempUsageDetail_20' ) start [2025-03-06 14:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621052', 'tblTempUsageDetail_20' ) end [2025-03-06 14:20:27] Production.ERROR: pbx prc_insertCDR start [2025-03-06 14:20:27] Production.ERROR: pbx prc_insertCDR end [2025-03-06 14:20:27] Production.INFO: ==2214== Releasing lock... [2025-03-06 14:20:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 14:20:27] Production.INFO: 67.5 MB #Memory Used# [2025-03-06 14:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 11:21:05 [end_date_ymd] => 2025-03-06 14:21:05 [RateCDR] => 1 ) [2025-03-06 14:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 11:21:05' and `end` < '2025-03-06 14:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 14:21:18] Production.INFO: count ==5275 [2025-03-06 14:21:20] Production.ERROR: pbx CDR StartTime 2025-03-06 11:21:05 - End Time 2025-03-06 14:21:05 [2025-03-06 14:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 14:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621057', 'tblTempUsageDetail_20' ) start [2025-03-06 14:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621057', 'tblTempUsageDetail_20' ) end [2025-03-06 14:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621057', 'tblTempVendorCDR_20' ) start [2025-03-06 14:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621057', 'tblTempVendorCDR_20' ) end [2025-03-06 14:21:21] Production.INFO: ProcessCDR(1,14621057,1,1,2) [2025-03-06 14:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14621057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 14:21:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14621057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 14:21:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14621057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 14:21:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14621057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 14:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621057', 'tblTempUsageDetail_20' ) start [2025-03-06 14:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621057', 'tblTempUsageDetail_20' ) end [2025-03-06 14:21:26] Production.ERROR: pbx prc_insertCDR start [2025-03-06 14:21:26] Production.ERROR: pbx prc_insertCDR end [2025-03-06 14:21:26] Production.INFO: ==2289== Releasing lock... [2025-03-06 14:21:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 14:21:26] Production.INFO: 67.5 MB #Memory Used# [2025-03-06 14:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 11:22:06 [end_date_ymd] => 2025-03-06 14:22:06 [RateCDR] => 1 ) [2025-03-06 14:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 11:22:06' and `end` < '2025-03-06 14:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 14:22:19] Production.INFO: count ==5314 [2025-03-06 14:22:21] Production.ERROR: pbx CDR StartTime 2025-03-06 11:22:06 - End Time 2025-03-06 14:22:06 [2025-03-06 14:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 14:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621062', 'tblTempUsageDetail_20' ) start [2025-03-06 14:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621062', 'tblTempUsageDetail_20' ) end [2025-03-06 14:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621062', 'tblTempVendorCDR_20' ) start [2025-03-06 14:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621062', 'tblTempVendorCDR_20' ) end [2025-03-06 14:22:21] Production.INFO: ProcessCDR(1,14621062,1,1,2) [2025-03-06 14:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14621062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 14:22:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14621062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 14:22:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14621062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 14:22:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14621062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 14:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621062', 'tblTempUsageDetail_20' ) start [2025-03-06 14:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621062', 'tblTempUsageDetail_20' ) end [2025-03-06 14:22:26] Production.ERROR: pbx prc_insertCDR start [2025-03-06 14:22:26] Production.ERROR: pbx prc_insertCDR end [2025-03-06 14:22:27] Production.INFO: ==2363== Releasing lock... [2025-03-06 14:22:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 14:22:27] Production.INFO: 67.75 MB #Memory Used# [2025-03-06 14:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 11:23:05 [end_date_ymd] => 2025-03-06 14:23:05 [RateCDR] => 1 ) [2025-03-06 14:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 11:23:05' and `end` < '2025-03-06 14:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 14:23:18] Production.INFO: count ==5340 [2025-03-06 14:23:20] Production.ERROR: pbx CDR StartTime 2025-03-06 11:23:05 - End Time 2025-03-06 14:23:05 [2025-03-06 14:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 14:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621067', 'tblTempUsageDetail_20' ) start [2025-03-06 14:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621067', 'tblTempUsageDetail_20' ) end [2025-03-06 14:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621067', 'tblTempVendorCDR_20' ) start [2025-03-06 14:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621067', 'tblTempVendorCDR_20' ) end [2025-03-06 14:23:21] Production.INFO: ProcessCDR(1,14621067,1,1,2) [2025-03-06 14:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14621067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 14:23:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14621067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 14:23:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14621067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 14:23:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14621067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 14:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621067', 'tblTempUsageDetail_20' ) start [2025-03-06 14:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621067', 'tblTempUsageDetail_20' ) end [2025-03-06 14:23:26] Production.ERROR: pbx prc_insertCDR start [2025-03-06 14:23:26] Production.ERROR: pbx prc_insertCDR end [2025-03-06 14:23:26] Production.INFO: ==2432== Releasing lock... [2025-03-06 14:23:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 14:23:26] Production.INFO: 68 MB #Memory Used# [2025-03-06 14:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 11:24:05 [end_date_ymd] => 2025-03-06 14:24:05 [RateCDR] => 1 ) [2025-03-06 14:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 11:24:05' and `end` < '2025-03-06 14:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 14:24:18] Production.INFO: count ==5324 [2025-03-06 14:24:20] Production.ERROR: pbx CDR StartTime 2025-03-06 11:24:05 - End Time 2025-03-06 14:24:05 [2025-03-06 14:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 14:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621072', 'tblTempUsageDetail_20' ) start [2025-03-06 14:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621072', 'tblTempUsageDetail_20' ) end [2025-03-06 14:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621072', 'tblTempVendorCDR_20' ) start [2025-03-06 14:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621072', 'tblTempVendorCDR_20' ) end [2025-03-06 14:24:21] Production.INFO: ProcessCDR(1,14621072,1,1,2) [2025-03-06 14:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14621072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 14:24:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14621072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 14:24:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14621072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 14:24:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14621072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 14:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621072', 'tblTempUsageDetail_20' ) start [2025-03-06 14:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621072', 'tblTempUsageDetail_20' ) end [2025-03-06 14:24:26] Production.ERROR: pbx prc_insertCDR start [2025-03-06 14:24:26] Production.ERROR: pbx prc_insertCDR end [2025-03-06 14:24:26] Production.INFO: ==2505== Releasing lock... [2025-03-06 14:24:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 14:24:26] Production.INFO: 67.75 MB #Memory Used# [2025-03-06 14:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 11:25:05 [end_date_ymd] => 2025-03-06 14:25:05 [RateCDR] => 1 ) [2025-03-06 14:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 11:25:05' and `end` < '2025-03-06 14:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 14:25:18] Production.INFO: count ==5301 [2025-03-06 14:25:20] Production.ERROR: pbx CDR StartTime 2025-03-06 11:25:05 - End Time 2025-03-06 14:25:05 [2025-03-06 14:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 14:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621077', 'tblTempUsageDetail_20' ) start [2025-03-06 14:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621077', 'tblTempUsageDetail_20' ) end [2025-03-06 14:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621077', 'tblTempVendorCDR_20' ) start [2025-03-06 14:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621077', 'tblTempVendorCDR_20' ) end [2025-03-06 14:25:21] Production.INFO: ProcessCDR(1,14621077,1,1,2) [2025-03-06 14:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14621077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 14:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14621077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 14:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14621077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 14:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14621077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 14:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621077', 'tblTempUsageDetail_20' ) start [2025-03-06 14:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621077', 'tblTempUsageDetail_20' ) end [2025-03-06 14:25:25] Production.ERROR: pbx prc_insertCDR start [2025-03-06 14:25:26] Production.ERROR: pbx prc_insertCDR end [2025-03-06 14:25:26] Production.INFO: ==2578== Releasing lock... [2025-03-06 14:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 14:25:26] Production.INFO: 67.75 MB #Memory Used# [2025-03-06 14:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 11:26:06 [end_date_ymd] => 2025-03-06 14:26:06 [RateCDR] => 1 ) [2025-03-06 14: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-03-06 11:26:06' and `end` < '2025-03-06 14: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-03-06 14:26:19] Production.INFO: count ==5318 [2025-03-06 14:26:21] Production.ERROR: pbx CDR StartTime 2025-03-06 11:26:06 - End Time 2025-03-06 14:26:06 [2025-03-06 14:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 14:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621082', 'tblTempUsageDetail_20' ) start [2025-03-06 14:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621082', 'tblTempUsageDetail_20' ) end [2025-03-06 14:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621082', 'tblTempVendorCDR_20' ) start [2025-03-06 14:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621082', 'tblTempVendorCDR_20' ) end [2025-03-06 14:26:21] Production.INFO: ProcessCDR(1,14621082,1,1,2) [2025-03-06 14:26:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14621082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 14:26:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14621082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 14:26:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14621082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 14:26:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14621082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 14:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621082', 'tblTempUsageDetail_20' ) start [2025-03-06 14:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621082', 'tblTempUsageDetail_20' ) end [2025-03-06 14:26:26] Production.ERROR: pbx prc_insertCDR start [2025-03-06 14:26:26] Production.ERROR: pbx prc_insertCDR end [2025-03-06 14:26:26] Production.INFO: ==2656== Releasing lock... [2025-03-06 14:26:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 14:26:26] Production.INFO: 67.75 MB #Memory Used# [2025-03-06 14:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 11:27:05 [end_date_ymd] => 2025-03-06 14:27:05 [RateCDR] => 1 ) [2025-03-06 14:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 11:27:05' and `end` < '2025-03-06 14:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 14:27:18] Production.INFO: count ==5316 [2025-03-06 14:27:21] Production.ERROR: pbx CDR StartTime 2025-03-06 11:27:05 - End Time 2025-03-06 14:27:05 [2025-03-06 14:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 14:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621087', 'tblTempUsageDetail_20' ) start [2025-03-06 14:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621087', 'tblTempUsageDetail_20' ) end [2025-03-06 14:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621087', 'tblTempVendorCDR_20' ) start [2025-03-06 14:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621087', 'tblTempVendorCDR_20' ) end [2025-03-06 14:27:21] Production.INFO: ProcessCDR(1,14621087,1,1,2) [2025-03-06 14:27:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14621087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 14:27:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14621087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 14:27:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14621087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 14:27:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14621087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 14:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621087', 'tblTempUsageDetail_20' ) start [2025-03-06 14:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621087', 'tblTempUsageDetail_20' ) end [2025-03-06 14:27:26] Production.ERROR: pbx prc_insertCDR start [2025-03-06 14:27:26] Production.ERROR: pbx prc_insertCDR end [2025-03-06 14:27:26] Production.INFO: ==2769== Releasing lock... [2025-03-06 14:27:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 14:27:26] Production.INFO: 67.75 MB #Memory Used# [2025-03-06 14:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 11:28:06 [end_date_ymd] => 2025-03-06 14:28:06 [RateCDR] => 1 ) [2025-03-06 14:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 11:28:06' and `end` < '2025-03-06 14:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 14:28:19] Production.INFO: count ==5307 [2025-03-06 14:28:21] Production.ERROR: pbx CDR StartTime 2025-03-06 11:28:06 - End Time 2025-03-06 14:28:06 [2025-03-06 14:28:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 14:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621092', 'tblTempUsageDetail_20' ) start [2025-03-06 14:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621092', 'tblTempUsageDetail_20' ) end [2025-03-06 14:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621092', 'tblTempVendorCDR_20' ) start [2025-03-06 14:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621092', 'tblTempVendorCDR_20' ) end [2025-03-06 14:28:21] Production.INFO: ProcessCDR(1,14621092,1,1,2) [2025-03-06 14:28:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14621092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 14:28:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14621092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 14:28:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14621092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 14:28:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14621092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 14:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621092', 'tblTempUsageDetail_20' ) start [2025-03-06 14:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621092', 'tblTempUsageDetail_20' ) end [2025-03-06 14:28:26] Production.ERROR: pbx prc_insertCDR start [2025-03-06 14:28:26] Production.ERROR: pbx prc_insertCDR end [2025-03-06 14:28:26] Production.INFO: ==2840== Releasing lock... [2025-03-06 14:28:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 14:28:26] Production.INFO: 67.75 MB #Memory Used# [2025-03-06 14:29:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 11:29:04 [end_date_ymd] => 2025-03-06 14:29:04 [RateCDR] => 1 ) [2025-03-06 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-03-06 11:29:04' and `end` < '2025-03-06 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-03-06 14:29:18] Production.INFO: count ==5302 [2025-03-06 14:29:20] Production.ERROR: pbx CDR StartTime 2025-03-06 11:29:04 - End Time 2025-03-06 14:29:04 [2025-03-06 14:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 14:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621097', 'tblTempUsageDetail_20' ) start [2025-03-06 14:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621097', 'tblTempUsageDetail_20' ) end [2025-03-06 14:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621097', 'tblTempVendorCDR_20' ) start [2025-03-06 14:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621097', 'tblTempVendorCDR_20' ) end [2025-03-06 14:29:20] Production.INFO: ProcessCDR(1,14621097,1,1,2) [2025-03-06 14:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14621097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 14:29:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14621097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 14:29:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14621097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 14:29:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14621097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 14:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621097', 'tblTempUsageDetail_20' ) start [2025-03-06 14:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621097', 'tblTempUsageDetail_20' ) end [2025-03-06 14:29:25] Production.ERROR: pbx prc_insertCDR start [2025-03-06 14:29:25] Production.ERROR: pbx prc_insertCDR end [2025-03-06 14:29:25] Production.INFO: ==2915== Releasing lock... [2025-03-06 14:29:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 14:29:25] Production.INFO: 67.75 MB #Memory Used# [2025-03-06 14:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 11:30:06 [end_date_ymd] => 2025-03-06 14:30:06 [RateCDR] => 1 ) [2025-03-06 14:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 11:30:06' and `end` < '2025-03-06 14:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 14:30:19] Production.INFO: count ==5294 [2025-03-06 14:30:22] Production.ERROR: pbx CDR StartTime 2025-03-06 11:30:06 - End Time 2025-03-06 14:30:06 [2025-03-06 14:30:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 14:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621103', 'tblTempUsageDetail_20' ) start [2025-03-06 14:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621103', 'tblTempUsageDetail_20' ) end [2025-03-06 14:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621103', 'tblTempVendorCDR_20' ) start [2025-03-06 14:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621103', 'tblTempVendorCDR_20' ) end [2025-03-06 14:30:22] Production.INFO: ProcessCDR(1,14621103,1,1,2) [2025-03-06 14:30:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14621103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 14:30:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14621103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 14:30:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14621103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 14:30:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14621103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 14:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621103', 'tblTempUsageDetail_20' ) start [2025-03-06 14:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621103', 'tblTempUsageDetail_20' ) end [2025-03-06 14:30:27] Production.ERROR: pbx prc_insertCDR start [2025-03-06 14:30:27] Production.ERROR: pbx prc_insertCDR end [2025-03-06 14:30:27] Production.INFO: ==2994== Releasing lock... [2025-03-06 14:30:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 14:30:27] Production.INFO: 67.75 MB #Memory Used# [2025-03-06 14:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 11:31:06 [end_date_ymd] => 2025-03-06 14:31:06 [RateCDR] => 1 ) [2025-03-06 14:31:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 11:31:06' and `end` < '2025-03-06 14:31:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 14:31:19] Production.INFO: count ==5239 [2025-03-06 14:31:21] Production.ERROR: pbx CDR StartTime 2025-03-06 11:31:06 - End Time 2025-03-06 14:31:06 [2025-03-06 14:31:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 14:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621108', 'tblTempUsageDetail_20' ) start [2025-03-06 14:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621108', 'tblTempUsageDetail_20' ) end [2025-03-06 14:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621108', 'tblTempVendorCDR_20' ) start [2025-03-06 14:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621108', 'tblTempVendorCDR_20' ) end [2025-03-06 14:31:21] Production.INFO: ProcessCDR(1,14621108,1,1,2) [2025-03-06 14:31:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14621108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 14:31:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14621108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 14:31:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14621108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 14:31:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14621108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 14:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621108', 'tblTempUsageDetail_20' ) start [2025-03-06 14:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621108', 'tblTempUsageDetail_20' ) end [2025-03-06 14:31:26] Production.ERROR: pbx prc_insertCDR start [2025-03-06 14:31:26] Production.ERROR: pbx prc_insertCDR end [2025-03-06 14:31:26] Production.INFO: ==3070== Releasing lock... [2025-03-06 14:31:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 14:31:26] Production.INFO: 67.25 MB #Memory Used# [2025-03-06 14:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 11:32:06 [end_date_ymd] => 2025-03-06 14:32:06 [RateCDR] => 1 ) [2025-03-06 14:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 11:32:06' and `end` < '2025-03-06 14:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 14:32:19] Production.INFO: count ==5240 [2025-03-06 14:32:21] Production.ERROR: pbx CDR StartTime 2025-03-06 11:32:06 - End Time 2025-03-06 14:32:06 [2025-03-06 14:32:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 14:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621113', 'tblTempUsageDetail_20' ) start [2025-03-06 14:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621113', 'tblTempUsageDetail_20' ) end [2025-03-06 14:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621113', 'tblTempVendorCDR_20' ) start [2025-03-06 14:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621113', 'tblTempVendorCDR_20' ) end [2025-03-06 14:32:22] Production.INFO: ProcessCDR(1,14621113,1,1,2) [2025-03-06 14:32:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14621113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 14:32:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14621113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 14:32:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14621113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 14:32:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14621113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 14:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621113', 'tblTempUsageDetail_20' ) start [2025-03-06 14:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621113', 'tblTempUsageDetail_20' ) end [2025-03-06 14:32:25] Production.ERROR: pbx prc_insertCDR start [2025-03-06 14:32:25] Production.ERROR: pbx prc_insertCDR end [2025-03-06 14:32:25] Production.INFO: ==3147== Releasing lock... [2025-03-06 14:32:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 14:32:25] Production.INFO: 67.25 MB #Memory Used# [2025-03-06 14:33:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 11:33:07 [end_date_ymd] => 2025-03-06 14:33:07 [RateCDR] => 1 ) [2025-03-06 14:33: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-03-06 11:33:07' and `end` < '2025-03-06 14:33: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-03-06 14:33:20] Production.INFO: count ==5227 [2025-03-06 14:33:22] Production.ERROR: pbx CDR StartTime 2025-03-06 11:33:07 - End Time 2025-03-06 14:33:07 [2025-03-06 14:33:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 14:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621118', 'tblTempUsageDetail_20' ) start [2025-03-06 14:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621118', 'tblTempUsageDetail_20' ) end [2025-03-06 14:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621118', 'tblTempVendorCDR_20' ) start [2025-03-06 14:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621118', 'tblTempVendorCDR_20' ) end [2025-03-06 14:33:22] Production.INFO: ProcessCDR(1,14621118,1,1,2) [2025-03-06 14:33:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14621118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 14:33:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14621118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 14:33:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14621118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 14:33:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14621118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 14:33:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621118', 'tblTempUsageDetail_20' ) start [2025-03-06 14:33:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621118', 'tblTempUsageDetail_20' ) end [2025-03-06 14:33:28] Production.ERROR: pbx prc_insertCDR start [2025-03-06 14:33:28] Production.ERROR: pbx prc_insertCDR end [2025-03-06 14:33:28] Production.INFO: ==3217== Releasing lock... [2025-03-06 14:33:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 14:33:28] Production.INFO: 67.25 MB #Memory Used# [2025-03-06 14:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 11:34:06 [end_date_ymd] => 2025-03-06 14:34:06 [RateCDR] => 1 ) [2025-03-06 14: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-03-06 11:34:06' and `end` < '2025-03-06 14: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-03-06 14:34:19] Production.INFO: count ==5215 [2025-03-06 14:34:21] Production.ERROR: pbx CDR StartTime 2025-03-06 11:34:06 - End Time 2025-03-06 14:34:06 [2025-03-06 14:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 14:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621123', 'tblTempUsageDetail_20' ) start [2025-03-06 14:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621123', 'tblTempUsageDetail_20' ) end [2025-03-06 14:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621123', 'tblTempVendorCDR_20' ) start [2025-03-06 14:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621123', 'tblTempVendorCDR_20' ) end [2025-03-06 14:34:21] Production.INFO: ProcessCDR(1,14621123,1,1,2) [2025-03-06 14:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14621123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 14:34:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14621123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 14:34:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14621123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 14:34:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14621123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 14:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621123', 'tblTempUsageDetail_20' ) start [2025-03-06 14:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621123', 'tblTempUsageDetail_20' ) end [2025-03-06 14:34:27] Production.ERROR: pbx prc_insertCDR start [2025-03-06 14:34:27] Production.ERROR: pbx prc_insertCDR end [2025-03-06 14:34:27] Production.INFO: ==3290== Releasing lock... [2025-03-06 14:34:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 14:34:27] Production.INFO: 67 MB #Memory Used# [2025-03-06 14:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 11:35:05 [end_date_ymd] => 2025-03-06 14:35:05 [RateCDR] => 1 ) [2025-03-06 14:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 11:35:05' and `end` < '2025-03-06 14:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 14:35:18] Production.INFO: count ==5221 [2025-03-06 14:35:20] Production.ERROR: pbx CDR StartTime 2025-03-06 11:35:05 - End Time 2025-03-06 14:35:05 [2025-03-06 14:35:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 14:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621128', 'tblTempUsageDetail_20' ) start [2025-03-06 14:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621128', 'tblTempUsageDetail_20' ) end [2025-03-06 14:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621128', 'tblTempVendorCDR_20' ) start [2025-03-06 14:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621128', 'tblTempVendorCDR_20' ) end [2025-03-06 14:35:21] Production.INFO: ProcessCDR(1,14621128,1,1,2) [2025-03-06 14:35:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14621128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 14:35:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14621128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 14:35:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14621128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 14:35:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14621128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 14:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621128', 'tblTempUsageDetail_20' ) start [2025-03-06 14:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621128', 'tblTempUsageDetail_20' ) end [2025-03-06 14:35:25] Production.ERROR: pbx prc_insertCDR start [2025-03-06 14:35:25] Production.ERROR: pbx prc_insertCDR end [2025-03-06 14:35:25] Production.INFO: ==3379== Releasing lock... [2025-03-06 14:35:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 14:35:25] Production.INFO: 67 MB #Memory Used# [2025-03-06 14:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 11:36:05 [end_date_ymd] => 2025-03-06 14:36:05 [RateCDR] => 1 ) [2025-03-06 14:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 11:36:05' and `end` < '2025-03-06 14:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 14:36:19] Production.INFO: count ==5227 [2025-03-06 14:36:21] Production.ERROR: pbx CDR StartTime 2025-03-06 11:36:05 - End Time 2025-03-06 14:36:05 [2025-03-06 14:36:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 14:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621133', 'tblTempUsageDetail_20' ) start [2025-03-06 14:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621133', 'tblTempUsageDetail_20' ) end [2025-03-06 14:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621133', 'tblTempVendorCDR_20' ) start [2025-03-06 14:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621133', 'tblTempVendorCDR_20' ) end [2025-03-06 14:36:21] Production.INFO: ProcessCDR(1,14621133,1,1,2) [2025-03-06 14:36:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14621133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 14:36:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14621133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 14:36:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14621133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 14:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14621133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 14:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621133', 'tblTempUsageDetail_20' ) start [2025-03-06 14:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621133', 'tblTempUsageDetail_20' ) end [2025-03-06 14:36:24] Production.ERROR: pbx prc_insertCDR start [2025-03-06 14:36:24] Production.ERROR: pbx prc_insertCDR end [2025-03-06 14:36:24] Production.INFO: ==3452== Releasing lock... [2025-03-06 14:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 14:36:24] Production.INFO: 67 MB #Memory Used# [2025-03-06 14:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 11:37:05 [end_date_ymd] => 2025-03-06 14:37:05 [RateCDR] => 1 ) [2025-03-06 14:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 11:37:05' and `end` < '2025-03-06 14:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 14:37:18] Production.INFO: count ==5233 [2025-03-06 14:37:20] Production.ERROR: pbx CDR StartTime 2025-03-06 11:37:05 - End Time 2025-03-06 14:37:05 [2025-03-06 14:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 14:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621138', 'tblTempUsageDetail_20' ) start [2025-03-06 14:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621138', 'tblTempUsageDetail_20' ) end [2025-03-06 14:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621138', 'tblTempVendorCDR_20' ) start [2025-03-06 14:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621138', 'tblTempVendorCDR_20' ) end [2025-03-06 14:37:21] Production.INFO: ProcessCDR(1,14621138,1,1,2) [2025-03-06 14:37:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14621138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 14:37:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14621138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 14:37:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14621138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 14:37:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14621138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 14:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621138', 'tblTempUsageDetail_20' ) start [2025-03-06 14:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621138', 'tblTempUsageDetail_20' ) end [2025-03-06 14:37:26] Production.ERROR: pbx prc_insertCDR start [2025-03-06 14:37:26] Production.ERROR: pbx prc_insertCDR end [2025-03-06 14:37:26] Production.INFO: ==3529== Releasing lock... [2025-03-06 14:37:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 14:37:26] Production.INFO: 67.25 MB #Memory Used# [2025-03-06 14:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 11:38:05 [end_date_ymd] => 2025-03-06 14:38:05 [RateCDR] => 1 ) [2025-03-06 14:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 11:38:05' and `end` < '2025-03-06 14:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 14:38:18] Production.INFO: count ==5196 [2025-03-06 14:38:20] Production.ERROR: pbx CDR StartTime 2025-03-06 11:38:05 - End Time 2025-03-06 14:38:05 [2025-03-06 14:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 14:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621143', 'tblTempUsageDetail_20' ) start [2025-03-06 14:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621143', 'tblTempUsageDetail_20' ) end [2025-03-06 14:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621143', 'tblTempVendorCDR_20' ) start [2025-03-06 14:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621143', 'tblTempVendorCDR_20' ) end [2025-03-06 14:38:21] Production.INFO: ProcessCDR(1,14621143,1,1,2) [2025-03-06 14:38:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14621143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 14:38:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14621143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 14:38:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14621143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 14:38:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14621143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 14:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621143', 'tblTempUsageDetail_20' ) start [2025-03-06 14:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621143', 'tblTempUsageDetail_20' ) end [2025-03-06 14:38:26] Production.ERROR: pbx prc_insertCDR start [2025-03-06 14:38:26] Production.ERROR: pbx prc_insertCDR end [2025-03-06 14:38:26] Production.INFO: ==3605== Releasing lock... [2025-03-06 14:38:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 14:38:26] Production.INFO: 67 MB #Memory Used# [2025-03-06 14:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 11:39:06 [end_date_ymd] => 2025-03-06 14:39:06 [RateCDR] => 1 ) [2025-03-06 14:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 11:39:06' and `end` < '2025-03-06 14:39:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 14:39:19] Production.INFO: count ==5210 [2025-03-06 14:39:21] Production.ERROR: pbx CDR StartTime 2025-03-06 11:39:06 - End Time 2025-03-06 14:39:06 [2025-03-06 14:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 14:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621148', 'tblTempUsageDetail_20' ) start [2025-03-06 14:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621148', 'tblTempUsageDetail_20' ) end [2025-03-06 14:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621148', 'tblTempVendorCDR_20' ) start [2025-03-06 14:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621148', 'tblTempVendorCDR_20' ) end [2025-03-06 14:39:21] Production.INFO: ProcessCDR(1,14621148,1,1,2) [2025-03-06 14:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14621148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 14:39:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14621148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 14:39:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14621148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 14:39:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14621148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 14:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621148', 'tblTempUsageDetail_20' ) start [2025-03-06 14:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621148', 'tblTempUsageDetail_20' ) end [2025-03-06 14:39:26] Production.ERROR: pbx prc_insertCDR start [2025-03-06 14:39:26] Production.ERROR: pbx prc_insertCDR end [2025-03-06 14:39:26] Production.INFO: ==3676== Releasing lock... [2025-03-06 14:39:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 14:39:26] Production.INFO: 67 MB #Memory Used# [2025-03-06 14:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 11:40:06 [end_date_ymd] => 2025-03-06 14:40:06 [RateCDR] => 1 ) [2025-03-06 14: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-03-06 11:40:06' and `end` < '2025-03-06 14: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-03-06 14:40:19] Production.INFO: count ==5220 [2025-03-06 14:40:22] Production.ERROR: pbx CDR StartTime 2025-03-06 11:40:06 - End Time 2025-03-06 14:40:06 [2025-03-06 14:40:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 14:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621153', 'tblTempUsageDetail_20' ) start [2025-03-06 14:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621153', 'tblTempUsageDetail_20' ) end [2025-03-06 14:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621153', 'tblTempVendorCDR_20' ) start [2025-03-06 14:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621153', 'tblTempVendorCDR_20' ) end [2025-03-06 14:40:22] Production.INFO: ProcessCDR(1,14621153,1,1,2) [2025-03-06 14:40:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14621153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 14:40:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14621153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 14:40:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14621153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 14:40:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14621153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 14:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621153', 'tblTempUsageDetail_20' ) start [2025-03-06 14:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621153', 'tblTempUsageDetail_20' ) end [2025-03-06 14:40:27] Production.ERROR: pbx prc_insertCDR start [2025-03-06 14:40:27] Production.ERROR: pbx prc_insertCDR end [2025-03-06 14:40:27] Production.INFO: ==3758== Releasing lock... [2025-03-06 14:40:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 14:40:27] Production.INFO: 67 MB #Memory Used# [2025-03-06 14:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 11:41:05 [end_date_ymd] => 2025-03-06 14:41:05 [RateCDR] => 1 ) [2025-03-06 14: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-03-06 11:41:05' and `end` < '2025-03-06 14: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-03-06 14:41:18] Production.INFO: count ==5184 [2025-03-06 14:41:20] Production.ERROR: pbx CDR StartTime 2025-03-06 11:41:05 - End Time 2025-03-06 14:41:05 [2025-03-06 14:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 14:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621159', 'tblTempUsageDetail_20' ) start [2025-03-06 14:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621159', 'tblTempUsageDetail_20' ) end [2025-03-06 14:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621159', 'tblTempVendorCDR_20' ) start [2025-03-06 14:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621159', 'tblTempVendorCDR_20' ) end [2025-03-06 14:41:20] Production.INFO: ProcessCDR(1,14621159,1,1,2) [2025-03-06 14:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14621159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 14:41:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14621159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 14:41:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14621159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 14:41:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14621159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 14:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621159', 'tblTempUsageDetail_20' ) start [2025-03-06 14:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621159', 'tblTempUsageDetail_20' ) end [2025-03-06 14:41:25] Production.ERROR: pbx prc_insertCDR start [2025-03-06 14:41:25] Production.ERROR: pbx prc_insertCDR end [2025-03-06 14:41:25] Production.INFO: ==3834== Releasing lock... [2025-03-06 14:41:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 14:41:25] Production.INFO: 66.75 MB #Memory Used# [2025-03-06 14:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 11:42:06 [end_date_ymd] => 2025-03-06 14:42:06 [RateCDR] => 1 ) [2025-03-06 14: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-03-06 11:42:06' and `end` < '2025-03-06 14: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-03-06 14:42:19] Production.INFO: count ==5172 [2025-03-06 14:42:21] Production.ERROR: pbx CDR StartTime 2025-03-06 11:42:06 - End Time 2025-03-06 14:42:06 [2025-03-06 14:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 14:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621164', 'tblTempUsageDetail_20' ) start [2025-03-06 14:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621164', 'tblTempUsageDetail_20' ) end [2025-03-06 14:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621164', 'tblTempVendorCDR_20' ) start [2025-03-06 14:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621164', 'tblTempVendorCDR_20' ) end [2025-03-06 14:42:21] Production.INFO: ProcessCDR(1,14621164,1,1,2) [2025-03-06 14:42:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14621164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 14:42:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14621164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 14:42:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14621164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 14:42:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14621164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 14:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621164', 'tblTempUsageDetail_20' ) start [2025-03-06 14:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621164', 'tblTempUsageDetail_20' ) end [2025-03-06 14:42:26] Production.ERROR: pbx prc_insertCDR start [2025-03-06 14:42:26] Production.ERROR: pbx prc_insertCDR end [2025-03-06 14:42:27] Production.INFO: ==3910== Releasing lock... [2025-03-06 14:42:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 14:42:27] Production.INFO: 66.75 MB #Memory Used# [2025-03-06 14:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 11:43:05 [end_date_ymd] => 2025-03-06 14:43:05 [RateCDR] => 1 ) [2025-03-06 14:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 11:43:05' and `end` < '2025-03-06 14:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 14:43:18] Production.INFO: count ==5155 [2025-03-06 14:43:20] Production.ERROR: pbx CDR StartTime 2025-03-06 11:43:05 - End Time 2025-03-06 14:43:05 [2025-03-06 14:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 14:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621169', 'tblTempUsageDetail_20' ) start [2025-03-06 14:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621169', 'tblTempUsageDetail_20' ) end [2025-03-06 14:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621169', 'tblTempVendorCDR_20' ) start [2025-03-06 14:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621169', 'tblTempVendorCDR_20' ) end [2025-03-06 14:43:20] Production.INFO: ProcessCDR(1,14621169,1,1,2) [2025-03-06 14:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14621169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 14:43:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14621169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 14:43:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14621169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 14:43:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14621169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 14:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621169', 'tblTempUsageDetail_20' ) start [2025-03-06 14:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621169', 'tblTempUsageDetail_20' ) end [2025-03-06 14:43:25] Production.ERROR: pbx prc_insertCDR start [2025-03-06 14:43:25] Production.ERROR: pbx prc_insertCDR end [2025-03-06 14:43:25] Production.INFO: ==4031== Releasing lock... [2025-03-06 14:43:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 14:43:25] Production.INFO: 66.5 MB #Memory Used# [2025-03-06 14:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 11:44:06 [end_date_ymd] => 2025-03-06 14:44:06 [RateCDR] => 1 ) [2025-03-06 14:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 11:44:06' and `end` < '2025-03-06 14:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 14:44:19] Production.INFO: count ==5155 [2025-03-06 14:44:21] Production.ERROR: pbx CDR StartTime 2025-03-06 11:44:06 - End Time 2025-03-06 14:44:06 [2025-03-06 14:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 14:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621174', 'tblTempUsageDetail_20' ) start [2025-03-06 14:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621174', 'tblTempUsageDetail_20' ) end [2025-03-06 14:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621174', 'tblTempVendorCDR_20' ) start [2025-03-06 14:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621174', 'tblTempVendorCDR_20' ) end [2025-03-06 14:44:21] Production.INFO: ProcessCDR(1,14621174,1,1,2) [2025-03-06 14:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14621174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 14:44:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14621174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 14:44:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14621174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 14:44:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14621174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 14:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621174', 'tblTempUsageDetail_20' ) start [2025-03-06 14:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621174', 'tblTempUsageDetail_20' ) end [2025-03-06 14:44:26] Production.ERROR: pbx prc_insertCDR start [2025-03-06 14:44:26] Production.ERROR: pbx prc_insertCDR end [2025-03-06 14:44:26] Production.INFO: ==4105== Releasing lock... [2025-03-06 14:44:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 14:44:26] Production.INFO: 66.5 MB #Memory Used# [2025-03-06 14:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 11:45:06 [end_date_ymd] => 2025-03-06 14:45:06 [RateCDR] => 1 ) [2025-03-06 14:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 11:45:06' and `end` < '2025-03-06 14:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 14:45:19] Production.INFO: count ==5129 [2025-03-06 14:45:21] Production.ERROR: pbx CDR StartTime 2025-03-06 11:45:06 - End Time 2025-03-06 14:45:06 [2025-03-06 14:45:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 14:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621179', 'tblTempUsageDetail_20' ) start [2025-03-06 14:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621179', 'tblTempUsageDetail_20' ) end [2025-03-06 14:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621179', 'tblTempVendorCDR_20' ) start [2025-03-06 14:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621179', 'tblTempVendorCDR_20' ) end [2025-03-06 14:45:21] Production.INFO: ProcessCDR(1,14621179,1,1,2) [2025-03-06 14:45:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14621179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 14:45:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14621179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 14:45:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14621179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 14:45:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14621179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 14:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621179', 'tblTempUsageDetail_20' ) start [2025-03-06 14:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621179', 'tblTempUsageDetail_20' ) end [2025-03-06 14:45:26] Production.ERROR: pbx prc_insertCDR start [2025-03-06 14:45:26] Production.ERROR: pbx prc_insertCDR end [2025-03-06 14:45:26] Production.INFO: ==4180== Releasing lock... [2025-03-06 14:45:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 14:45:26] Production.INFO: 66.5 MB #Memory Used# [2025-03-06 14:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 11:46:06 [end_date_ymd] => 2025-03-06 14:46:06 [RateCDR] => 1 ) [2025-03-06 14: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-03-06 11:46:06' and `end` < '2025-03-06 14: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-03-06 14:46:19] Production.INFO: count ==5106 [2025-03-06 14:46:21] Production.ERROR: pbx CDR StartTime 2025-03-06 11:46:06 - End Time 2025-03-06 14:46:06 [2025-03-06 14:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 14:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621184', 'tblTempUsageDetail_20' ) start [2025-03-06 14:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621184', 'tblTempUsageDetail_20' ) end [2025-03-06 14:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621184', 'tblTempVendorCDR_20' ) start [2025-03-06 14:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621184', 'tblTempVendorCDR_20' ) end [2025-03-06 14:46:21] Production.INFO: ProcessCDR(1,14621184,1,1,2) [2025-03-06 14:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14621184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 14:46:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14621184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 14:46:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14621184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 14:46:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14621184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 14:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621184', 'tblTempUsageDetail_20' ) start [2025-03-06 14:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621184', 'tblTempUsageDetail_20' ) end [2025-03-06 14:46:25] Production.ERROR: pbx prc_insertCDR start [2025-03-06 14:46:25] Production.ERROR: pbx prc_insertCDR end [2025-03-06 14:46:25] Production.INFO: ==4257== Releasing lock... [2025-03-06 14:46:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 14:46:25] Production.INFO: 66.25 MB #Memory Used# [2025-03-06 14:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 11:47:05 [end_date_ymd] => 2025-03-06 14:47:05 [RateCDR] => 1 ) [2025-03-06 14:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 11:47:05' and `end` < '2025-03-06 14:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 14:47:18] Production.INFO: count ==5107 [2025-03-06 14:47:20] Production.ERROR: pbx CDR StartTime 2025-03-06 11:47:05 - End Time 2025-03-06 14:47:05 [2025-03-06 14:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 14:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621189', 'tblTempUsageDetail_20' ) start [2025-03-06 14:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621189', 'tblTempUsageDetail_20' ) end [2025-03-06 14:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621189', 'tblTempVendorCDR_20' ) start [2025-03-06 14:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621189', 'tblTempVendorCDR_20' ) end [2025-03-06 14:47:20] Production.INFO: ProcessCDR(1,14621189,1,1,2) [2025-03-06 14:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14621189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 14:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14621189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 14:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14621189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 14:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14621189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 14:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621189', 'tblTempUsageDetail_20' ) start [2025-03-06 14:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621189', 'tblTempUsageDetail_20' ) end [2025-03-06 14:47:24] Production.ERROR: pbx prc_insertCDR start [2025-03-06 14:47:24] Production.ERROR: pbx prc_insertCDR end [2025-03-06 14:47:24] Production.INFO: ==4337== Releasing lock... [2025-03-06 14:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 14:47:24] Production.INFO: 66.25 MB #Memory Used# [2025-03-06 14:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 11:48:06 [end_date_ymd] => 2025-03-06 14:48:06 [RateCDR] => 1 ) [2025-03-06 14: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-03-06 11:48:06' and `end` < '2025-03-06 14: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-03-06 14:48:19] Production.INFO: count ==5104 [2025-03-06 14:48:21] Production.ERROR: pbx CDR StartTime 2025-03-06 11:48:06 - End Time 2025-03-06 14:48:06 [2025-03-06 14:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 14:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621194', 'tblTempUsageDetail_20' ) start [2025-03-06 14:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621194', 'tblTempUsageDetail_20' ) end [2025-03-06 14:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621194', 'tblTempVendorCDR_20' ) start [2025-03-06 14:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621194', 'tblTempVendorCDR_20' ) end [2025-03-06 14:48:21] Production.INFO: ProcessCDR(1,14621194,1,1,2) [2025-03-06 14:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14621194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 14:48:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14621194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 14:48:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14621194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 14:48:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14621194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 14:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621194', 'tblTempUsageDetail_20' ) start [2025-03-06 14:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621194', 'tblTempUsageDetail_20' ) end [2025-03-06 14:48:26] Production.ERROR: pbx prc_insertCDR start [2025-03-06 14:48:26] Production.ERROR: pbx prc_insertCDR end [2025-03-06 14:48:26] Production.INFO: ==4410== Releasing lock... [2025-03-06 14:48:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 14:48:26] Production.INFO: 66.25 MB #Memory Used# [2025-03-06 14:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 11:49:05 [end_date_ymd] => 2025-03-06 14:49:05 [RateCDR] => 1 ) [2025-03-06 14:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 11:49:05' and `end` < '2025-03-06 14:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 14:49:18] Production.INFO: count ==5101 [2025-03-06 14:49:20] Production.ERROR: pbx CDR StartTime 2025-03-06 11:49:05 - End Time 2025-03-06 14:49:05 [2025-03-06 14:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 14:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621199', 'tblTempUsageDetail_20' ) start [2025-03-06 14:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621199', 'tblTempUsageDetail_20' ) end [2025-03-06 14:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621199', 'tblTempVendorCDR_20' ) start [2025-03-06 14:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621199', 'tblTempVendorCDR_20' ) end [2025-03-06 14:49:21] Production.INFO: ProcessCDR(1,14621199,1,1,2) [2025-03-06 14:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14621199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 14:49:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14621199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 14:49:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14621199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 14:49:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14621199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 14:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621199', 'tblTempUsageDetail_20' ) start [2025-03-06 14:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621199', 'tblTempUsageDetail_20' ) end [2025-03-06 14:49:25] Production.ERROR: pbx prc_insertCDR start [2025-03-06 14:49:25] Production.ERROR: pbx prc_insertCDR end [2025-03-06 14:49:25] Production.INFO: ==4489== Releasing lock... [2025-03-06 14:49:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 14:49:25] Production.INFO: 66.25 MB #Memory Used# [2025-03-06 14:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 11:50:06 [end_date_ymd] => 2025-03-06 14:50:06 [RateCDR] => 1 ) [2025-03-06 14:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 11:50:06' and `end` < '2025-03-06 14:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 14:50:19] Production.INFO: count ==5096 [2025-03-06 14:50:21] Production.ERROR: pbx CDR StartTime 2025-03-06 11:50:06 - End Time 2025-03-06 14:50:06 [2025-03-06 14:50:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 14:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621205', 'tblTempUsageDetail_20' ) start [2025-03-06 14:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621205', 'tblTempUsageDetail_20' ) end [2025-03-06 14:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621205', 'tblTempVendorCDR_20' ) start [2025-03-06 14:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621205', 'tblTempVendorCDR_20' ) end [2025-03-06 14:50:21] Production.INFO: ProcessCDR(1,14621205,1,1,2) [2025-03-06 14:50:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14621205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 14:50:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14621205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 14:50:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14621205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 14:50:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14621205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 14:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621205', 'tblTempUsageDetail_20' ) start [2025-03-06 14:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621205', 'tblTempUsageDetail_20' ) end [2025-03-06 14:50:27] Production.ERROR: pbx prc_insertCDR start [2025-03-06 14:50:27] Production.ERROR: pbx prc_insertCDR end [2025-03-06 14:50:27] Production.INFO: ==4568== Releasing lock... [2025-03-06 14:50:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 14:50:27] Production.INFO: 66.25 MB #Memory Used# [2025-03-06 14:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 11:51:06 [end_date_ymd] => 2025-03-06 14:51:06 [RateCDR] => 1 ) [2025-03-06 14: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-03-06 11:51:06' and `end` < '2025-03-06 14: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-03-06 14:51:19] Production.INFO: count ==5066 [2025-03-06 14:51:21] Production.ERROR: pbx CDR StartTime 2025-03-06 11:51:06 - End Time 2025-03-06 14:51:06 [2025-03-06 14:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 14:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621210', 'tblTempUsageDetail_20' ) start [2025-03-06 14:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621210', 'tblTempUsageDetail_20' ) end [2025-03-06 14:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621210', 'tblTempVendorCDR_20' ) start [2025-03-06 14:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621210', 'tblTempVendorCDR_20' ) end [2025-03-06 14:51:21] Production.INFO: ProcessCDR(1,14621210,1,1,2) [2025-03-06 14:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14621210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 14:51:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14621210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 14:51:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14621210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 14:51:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14621210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 14:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621210', 'tblTempUsageDetail_20' ) start [2025-03-06 14:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621210', 'tblTempUsageDetail_20' ) end [2025-03-06 14:51:26] Production.ERROR: pbx prc_insertCDR start [2025-03-06 14:51:26] Production.ERROR: pbx prc_insertCDR end [2025-03-06 14:51:26] Production.INFO: ==4652== Releasing lock... [2025-03-06 14:51:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 14:51:26] Production.INFO: 66 MB #Memory Used# [2025-03-06 14:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 11:52:05 [end_date_ymd] => 2025-03-06 14:52:05 [RateCDR] => 1 ) [2025-03-06 14:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 11:52:05' and `end` < '2025-03-06 14:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 14:52:18] Production.INFO: count ==5048 [2025-03-06 14:52:20] Production.ERROR: pbx CDR StartTime 2025-03-06 11:52:05 - End Time 2025-03-06 14:52:05 [2025-03-06 14:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 14:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621215', 'tblTempUsageDetail_20' ) start [2025-03-06 14:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621215', 'tblTempUsageDetail_20' ) end [2025-03-06 14:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621215', 'tblTempVendorCDR_20' ) start [2025-03-06 14:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621215', 'tblTempVendorCDR_20' ) end [2025-03-06 14:52:21] Production.INFO: ProcessCDR(1,14621215,1,1,2) [2025-03-06 14:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14621215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 14:52:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14621215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 14:52:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14621215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 14:52:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14621215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 14:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621215', 'tblTempUsageDetail_20' ) start [2025-03-06 14:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621215', 'tblTempUsageDetail_20' ) end [2025-03-06 14:52:26] Production.ERROR: pbx prc_insertCDR start [2025-03-06 14:52:26] Production.ERROR: pbx prc_insertCDR end [2025-03-06 14:52:26] Production.INFO: ==4725== Releasing lock... [2025-03-06 14:52:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 14:52:26] Production.INFO: 65.75 MB #Memory Used# [2025-03-06 14:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 11:53:06 [end_date_ymd] => 2025-03-06 14:53:06 [RateCDR] => 1 ) [2025-03-06 14: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-03-06 11:53:06' and `end` < '2025-03-06 14: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-03-06 14:53:19] Production.INFO: count ==5046 [2025-03-06 14:53:21] Production.ERROR: pbx CDR StartTime 2025-03-06 11:53:06 - End Time 2025-03-06 14:53:06 [2025-03-06 14:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 14:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621220', 'tblTempUsageDetail_20' ) start [2025-03-06 14:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621220', 'tblTempUsageDetail_20' ) end [2025-03-06 14:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621220', 'tblTempVendorCDR_20' ) start [2025-03-06 14:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621220', 'tblTempVendorCDR_20' ) end [2025-03-06 14:53:21] Production.INFO: ProcessCDR(1,14621220,1,1,2) [2025-03-06 14:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14621220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 14:53:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14621220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 14:53:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14621220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 14:53:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14621220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 14:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621220', 'tblTempUsageDetail_20' ) start [2025-03-06 14:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621220', 'tblTempUsageDetail_20' ) end [2025-03-06 14:53:26] Production.ERROR: pbx prc_insertCDR start [2025-03-06 14:53:26] Production.ERROR: pbx prc_insertCDR end [2025-03-06 14:53:26] Production.INFO: ==4800== Releasing lock... [2025-03-06 14:53:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 14:53:26] Production.INFO: 65.75 MB #Memory Used# [2025-03-06 14:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 11:54:05 [end_date_ymd] => 2025-03-06 14:54:05 [RateCDR] => 1 ) [2025-03-06 14:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 11:54:05' and `end` < '2025-03-06 14:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 14:54:18] Production.INFO: count ==5044 [2025-03-06 14:54:21] Production.ERROR: pbx CDR StartTime 2025-03-06 11:54:05 - End Time 2025-03-06 14:54:05 [2025-03-06 14:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 14:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621225', 'tblTempUsageDetail_20' ) start [2025-03-06 14:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621225', 'tblTempUsageDetail_20' ) end [2025-03-06 14:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621225', 'tblTempVendorCDR_20' ) start [2025-03-06 14:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621225', 'tblTempVendorCDR_20' ) end [2025-03-06 14:54:21] Production.INFO: ProcessCDR(1,14621225,1,1,2) [2025-03-06 14:54:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14621225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 14:54:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14621225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 14:54:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14621225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 14:54:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14621225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 14:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621225', 'tblTempUsageDetail_20' ) start [2025-03-06 14:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621225', 'tblTempUsageDetail_20' ) end [2025-03-06 14:54:26] Production.ERROR: pbx prc_insertCDR start [2025-03-06 14:54:26] Production.ERROR: pbx prc_insertCDR end [2025-03-06 14:54:26] Production.INFO: ==4885== Releasing lock... [2025-03-06 14:54:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 14:54:26] Production.INFO: 65.75 MB #Memory Used# [2025-03-06 14:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 11:55:05 [end_date_ymd] => 2025-03-06 14:55:05 [RateCDR] => 1 ) [2025-03-06 14: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-03-06 11:55:05' and `end` < '2025-03-06 14:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 14:55:19] Production.INFO: count ==5045 [2025-03-06 14:55:21] Production.ERROR: pbx CDR StartTime 2025-03-06 11:55:05 - End Time 2025-03-06 14:55:05 [2025-03-06 14:55:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 14:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621230', 'tblTempUsageDetail_20' ) start [2025-03-06 14:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621230', 'tblTempUsageDetail_20' ) end [2025-03-06 14:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621230', 'tblTempVendorCDR_20' ) start [2025-03-06 14:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621230', 'tblTempVendorCDR_20' ) end [2025-03-06 14:55:21] Production.INFO: ProcessCDR(1,14621230,1,1,2) [2025-03-06 14:55:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14621230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 14:55:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14621230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 14:55:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14621230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 14:55:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14621230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 14:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621230', 'tblTempUsageDetail_20' ) start [2025-03-06 14:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621230', 'tblTempUsageDetail_20' ) end [2025-03-06 14:55:27] Production.ERROR: pbx prc_insertCDR start [2025-03-06 14:55:27] Production.ERROR: pbx prc_insertCDR end [2025-03-06 14:55:27] Production.INFO: ==4968== Releasing lock... [2025-03-06 14:55:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 14:55:27] Production.INFO: 65.75 MB #Memory Used# [2025-03-06 14:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 11:56:05 [end_date_ymd] => 2025-03-06 14:56:05 [RateCDR] => 1 ) [2025-03-06 14:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 11:56:05' and `end` < '2025-03-06 14:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 14:56:18] Production.INFO: count ==5083 [2025-03-06 14:56:20] Production.ERROR: pbx CDR StartTime 2025-03-06 11:56:05 - End Time 2025-03-06 14:56:05 [2025-03-06 14:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 14:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621235', 'tblTempUsageDetail_20' ) start [2025-03-06 14:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621235', 'tblTempUsageDetail_20' ) end [2025-03-06 14:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621235', 'tblTempVendorCDR_20' ) start [2025-03-06 14:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621235', 'tblTempVendorCDR_20' ) end [2025-03-06 14:56:21] Production.INFO: ProcessCDR(1,14621235,1,1,2) [2025-03-06 14:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14621235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 14:56:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14621235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 14:56:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14621235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 14:56:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14621235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 14:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621235', 'tblTempUsageDetail_20' ) start [2025-03-06 14:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621235', 'tblTempUsageDetail_20' ) end [2025-03-06 14:56:26] Production.ERROR: pbx prc_insertCDR start [2025-03-06 14:56:26] Production.ERROR: pbx prc_insertCDR end [2025-03-06 14:56:26] Production.INFO: ==5041== Releasing lock... [2025-03-06 14:56:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 14:56:26] Production.INFO: 66 MB #Memory Used# [2025-03-06 14:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 11:57:05 [end_date_ymd] => 2025-03-06 14:57:05 [RateCDR] => 1 ) [2025-03-06 14:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 11:57:05' and `end` < '2025-03-06 14:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 14:57:18] Production.INFO: count ==5099 [2025-03-06 14:57:20] Production.ERROR: pbx CDR StartTime 2025-03-06 11:57:05 - End Time 2025-03-06 14:57:05 [2025-03-06 14:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 14:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621240', 'tblTempUsageDetail_20' ) start [2025-03-06 14:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621240', 'tblTempUsageDetail_20' ) end [2025-03-06 14:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621240', 'tblTempVendorCDR_20' ) start [2025-03-06 14:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621240', 'tblTempVendorCDR_20' ) end [2025-03-06 14:57:21] Production.INFO: ProcessCDR(1,14621240,1,1,2) [2025-03-06 14:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14621240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 14:57:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14621240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 14:57:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14621240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 14:57:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14621240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 14:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621240', 'tblTempUsageDetail_20' ) start [2025-03-06 14:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621240', 'tblTempUsageDetail_20' ) end [2025-03-06 14:57:26] Production.ERROR: pbx prc_insertCDR start [2025-03-06 14:57:26] Production.ERROR: pbx prc_insertCDR end [2025-03-06 14:57:26] Production.INFO: ==5120== Releasing lock... [2025-03-06 14:57:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 14:57:26] Production.INFO: 66.25 MB #Memory Used# [2025-03-06 14:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 11:58:05 [end_date_ymd] => 2025-03-06 14:58:05 [RateCDR] => 1 ) [2025-03-06 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-03-06 11:58:05' and `end` < '2025-03-06 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-03-06 14:58:18] Production.INFO: count ==5111 [2025-03-06 14:58:21] Production.ERROR: pbx CDR StartTime 2025-03-06 11:58:05 - End Time 2025-03-06 14:58:05 [2025-03-06 14:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 14:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621245', 'tblTempUsageDetail_20' ) start [2025-03-06 14:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621245', 'tblTempUsageDetail_20' ) end [2025-03-06 14:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621245', 'tblTempVendorCDR_20' ) start [2025-03-06 14:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621245', 'tblTempVendorCDR_20' ) end [2025-03-06 14:58:21] Production.INFO: ProcessCDR(1,14621245,1,1,2) [2025-03-06 14:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14621245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 14:58:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14621245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 14:58:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14621245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 14:58:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14621245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 14:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621245', 'tblTempUsageDetail_20' ) start [2025-03-06 14:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621245', 'tblTempUsageDetail_20' ) end [2025-03-06 14:58:26] Production.ERROR: pbx prc_insertCDR start [2025-03-06 14:58:26] Production.ERROR: pbx prc_insertCDR end [2025-03-06 14:58:26] Production.INFO: ==5231== Releasing lock... [2025-03-06 14:58:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 14:58:26] Production.INFO: 66.25 MB #Memory Used# [2025-03-06 14:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 11:59:05 [end_date_ymd] => 2025-03-06 14:59:05 [RateCDR] => 1 ) [2025-03-06 14:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 11:59:05' and `end` < '2025-03-06 14:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 14:59:18] Production.INFO: count ==5121 [2025-03-06 14:59:20] Production.ERROR: pbx CDR StartTime 2025-03-06 11:59:05 - End Time 2025-03-06 14:59:05 [2025-03-06 14:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 14:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621250', 'tblTempUsageDetail_20' ) start [2025-03-06 14:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621250', 'tblTempUsageDetail_20' ) end [2025-03-06 14:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621250', 'tblTempVendorCDR_20' ) start [2025-03-06 14:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621250', 'tblTempVendorCDR_20' ) end [2025-03-06 14:59:21] Production.INFO: ProcessCDR(1,14621250,1,1,2) [2025-03-06 14:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14621250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 14:59:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14621250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 14:59:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14621250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 14:59:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14621250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 14:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621250', 'tblTempUsageDetail_20' ) start [2025-03-06 14:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621250', 'tblTempUsageDetail_20' ) end [2025-03-06 14:59:25] Production.ERROR: pbx prc_insertCDR start [2025-03-06 14:59:25] Production.ERROR: pbx prc_insertCDR end [2025-03-06 14:59:25] Production.INFO: ==5305== Releasing lock... [2025-03-06 14:59:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 14:59:26] Production.INFO: 66.25 MB #Memory Used# [2025-03-06 15:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 12:00:06 [end_date_ymd] => 2025-03-06 15:00:06 [RateCDR] => 1 ) [2025-03-06 15:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 12:00:06' and `end` < '2025-03-06 15:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 15:00:19] Production.INFO: count ==5237 [2025-03-06 15:00:21] Production.ERROR: pbx CDR StartTime 2025-03-06 12:00:06 - End Time 2025-03-06 15:00:06 [2025-03-06 15:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 15:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621256', 'tblTempUsageDetail_20' ) start [2025-03-06 15:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621256', 'tblTempUsageDetail_20' ) end [2025-03-06 15:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621256', 'tblTempVendorCDR_20' ) start [2025-03-06 15:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621256', 'tblTempVendorCDR_20' ) end [2025-03-06 15:00:22] Production.INFO: ProcessCDR(1,14621256,1,1,2) [2025-03-06 15:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14621256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 15:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14621256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 15:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14621256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 15:00:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14621256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 15:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621256', 'tblTempUsageDetail_20' ) start [2025-03-06 15:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621256', 'tblTempUsageDetail_20' ) end [2025-03-06 15:00:27] Production.ERROR: pbx prc_insertCDR start [2025-03-06 15:00:27] Production.ERROR: pbx prc_insertCDR end [2025-03-06 15:00:27] Production.INFO: ==5382== Releasing lock... [2025-03-06 15:00:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 15:00:27] Production.INFO: 67.25 MB #Memory Used# [2025-03-06 15:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 12:01:05 [end_date_ymd] => 2025-03-06 15:01:05 [RateCDR] => 1 ) [2025-03-06 15:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 12:01:05' and `end` < '2025-03-06 15:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 15:01:19] Production.INFO: count ==5247 [2025-03-06 15:01:21] Production.ERROR: pbx CDR StartTime 2025-03-06 12:01:05 - End Time 2025-03-06 15:01:05 [2025-03-06 15:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 15:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621261', 'tblTempUsageDetail_20' ) start [2025-03-06 15:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621261', 'tblTempUsageDetail_20' ) end [2025-03-06 15:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621261', 'tblTempVendorCDR_20' ) start [2025-03-06 15:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621261', 'tblTempVendorCDR_20' ) end [2025-03-06 15:01:21] Production.INFO: ProcessCDR(1,14621261,1,1,2) [2025-03-06 15:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14621261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 15:01:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14621261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 15:01:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14621261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 15:01:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14621261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 15:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621261', 'tblTempUsageDetail_20' ) start [2025-03-06 15:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621261', 'tblTempUsageDetail_20' ) end [2025-03-06 15:01:26] Production.ERROR: pbx prc_insertCDR start [2025-03-06 15:01:26] Production.ERROR: pbx prc_insertCDR end [2025-03-06 15:01:26] Production.INFO: ==5509== Releasing lock... [2025-03-06 15:01:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 15:01:26] Production.INFO: 67.25 MB #Memory Used# [2025-03-06 15:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 12:02:05 [end_date_ymd] => 2025-03-06 15:02:05 [RateCDR] => 1 ) [2025-03-06 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-03-06 12:02:05' and `end` < '2025-03-06 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-03-06 15:02:18] Production.INFO: count ==5247 [2025-03-06 15:02:21] Production.ERROR: pbx CDR StartTime 2025-03-06 12:02:05 - End Time 2025-03-06 15:02:05 [2025-03-06 15:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 15:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621266', 'tblTempUsageDetail_20' ) start [2025-03-06 15:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621266', 'tblTempUsageDetail_20' ) end [2025-03-06 15:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621266', 'tblTempVendorCDR_20' ) start [2025-03-06 15:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621266', 'tblTempVendorCDR_20' ) end [2025-03-06 15:02:21] Production.INFO: ProcessCDR(1,14621266,1,1,2) [2025-03-06 15:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14621266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 15:02:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14621266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 15:02:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14621266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 15:02:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14621266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 15:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621266', 'tblTempUsageDetail_20' ) start [2025-03-06 15:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621266', 'tblTempUsageDetail_20' ) end [2025-03-06 15:02:26] Production.ERROR: pbx prc_insertCDR start [2025-03-06 15:02:26] Production.ERROR: pbx prc_insertCDR end [2025-03-06 15:02:26] Production.INFO: ==5624== Releasing lock... [2025-03-06 15:02:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 15:02:26] Production.INFO: 67.25 MB #Memory Used# [2025-03-06 15:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 12:03:06 [end_date_ymd] => 2025-03-06 15:03:06 [RateCDR] => 1 ) [2025-03-06 15:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 12:03:06' and `end` < '2025-03-06 15:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 15:03:19] Production.INFO: count ==5260 [2025-03-06 15:03:21] Production.ERROR: pbx CDR StartTime 2025-03-06 12:03:06 - End Time 2025-03-06 15:03:06 [2025-03-06 15:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 15:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621271', 'tblTempUsageDetail_20' ) start [2025-03-06 15:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621271', 'tblTempUsageDetail_20' ) end [2025-03-06 15:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621271', 'tblTempVendorCDR_20' ) start [2025-03-06 15:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621271', 'tblTempVendorCDR_20' ) end [2025-03-06 15:03:22] Production.INFO: ProcessCDR(1,14621271,1,1,2) [2025-03-06 15:03:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14621271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 15:03:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14621271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 15:03:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14621271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 15:03:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14621271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 15:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621271', 'tblTempUsageDetail_20' ) start [2025-03-06 15:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621271', 'tblTempUsageDetail_20' ) end [2025-03-06 15:03:27] Production.ERROR: pbx prc_insertCDR start [2025-03-06 15:03:27] Production.ERROR: pbx prc_insertCDR end [2025-03-06 15:03:27] Production.INFO: ==5703== Releasing lock... [2025-03-06 15:03:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 15:03:27] Production.INFO: 67.25 MB #Memory Used# [2025-03-06 15:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 12:04:05 [end_date_ymd] => 2025-03-06 15:04:05 [RateCDR] => 1 ) [2025-03-06 15:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 12:04:05' and `end` < '2025-03-06 15:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 15:04:18] Production.INFO: count ==5248 [2025-03-06 15:04:21] Production.ERROR: pbx CDR StartTime 2025-03-06 12:04:05 - End Time 2025-03-06 15:04:05 [2025-03-06 15:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 15:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621276', 'tblTempUsageDetail_20' ) start [2025-03-06 15:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621276', 'tblTempUsageDetail_20' ) end [2025-03-06 15:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621276', 'tblTempVendorCDR_20' ) start [2025-03-06 15:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621276', 'tblTempVendorCDR_20' ) end [2025-03-06 15:04:21] Production.INFO: ProcessCDR(1,14621276,1,1,2) [2025-03-06 15:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14621276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 15:04:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14621276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 15:04:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14621276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 15:04:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14621276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 15:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621276', 'tblTempUsageDetail_20' ) start [2025-03-06 15:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621276', 'tblTempUsageDetail_20' ) end [2025-03-06 15:04:27] Production.ERROR: pbx prc_insertCDR start [2025-03-06 15:04:27] Production.ERROR: pbx prc_insertCDR end [2025-03-06 15:04:27] Production.INFO: ==5776== Releasing lock... [2025-03-06 15:04:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 15:04:27] Production.INFO: 67.25 MB #Memory Used# [2025-03-06 15:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 12:05:05 [end_date_ymd] => 2025-03-06 15:05:05 [RateCDR] => 1 ) [2025-03-06 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-03-06 12:05:05' and `end` < '2025-03-06 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-03-06 15:05:18] Production.INFO: count ==5239 [2025-03-06 15:05:21] Production.ERROR: pbx CDR StartTime 2025-03-06 12:05:05 - End Time 2025-03-06 15:05:05 [2025-03-06 15:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 15:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621281', 'tblTempUsageDetail_20' ) start [2025-03-06 15:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621281', 'tblTempUsageDetail_20' ) end [2025-03-06 15:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621281', 'tblTempVendorCDR_20' ) start [2025-03-06 15:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621281', 'tblTempVendorCDR_20' ) end [2025-03-06 15:05:21] Production.INFO: ProcessCDR(1,14621281,1,1,2) [2025-03-06 15:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14621281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 15:05:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14621281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 15:05:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14621281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 15:05:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14621281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 15:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621281', 'tblTempUsageDetail_20' ) start [2025-03-06 15:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621281', 'tblTempUsageDetail_20' ) end [2025-03-06 15:05:26] Production.ERROR: pbx prc_insertCDR start [2025-03-06 15:05:26] Production.ERROR: pbx prc_insertCDR end [2025-03-06 15:05:26] Production.INFO: ==5930== Releasing lock... [2025-03-06 15:05:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 15:05:26] Production.INFO: 67.25 MB #Memory Used# [2025-03-06 15:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 12:06:05 [end_date_ymd] => 2025-03-06 15:06:05 [RateCDR] => 1 ) [2025-03-06 15:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 12:06:05' and `end` < '2025-03-06 15:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 15:06:18] Production.INFO: count ==5216 [2025-03-06 15:06:20] Production.ERROR: pbx CDR StartTime 2025-03-06 12:06:05 - End Time 2025-03-06 15:06:05 [2025-03-06 15:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 15:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621286', 'tblTempUsageDetail_20' ) start [2025-03-06 15:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621286', 'tblTempUsageDetail_20' ) end [2025-03-06 15:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621286', 'tblTempVendorCDR_20' ) start [2025-03-06 15:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621286', 'tblTempVendorCDR_20' ) end [2025-03-06 15:06:20] Production.INFO: ProcessCDR(1,14621286,1,1,2) [2025-03-06 15:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14621286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 15:06:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14621286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 15:06:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14621286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 15:06:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14621286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 15:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621286', 'tblTempUsageDetail_20' ) start [2025-03-06 15:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621286', 'tblTempUsageDetail_20' ) end [2025-03-06 15:06:25] Production.ERROR: pbx prc_insertCDR start [2025-03-06 15:06:25] Production.ERROR: pbx prc_insertCDR end [2025-03-06 15:06:25] Production.INFO: ==6006== Releasing lock... [2025-03-06 15:06:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 15:06:25] Production.INFO: 67 MB #Memory Used# [2025-03-06 15:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 12:07:05 [end_date_ymd] => 2025-03-06 15:07:05 [RateCDR] => 1 ) [2025-03-06 15:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 12:07:05' and `end` < '2025-03-06 15:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 15:07:18] Production.INFO: count ==5209 [2025-03-06 15:07:20] Production.ERROR: pbx CDR StartTime 2025-03-06 12:07:05 - End Time 2025-03-06 15:07:05 [2025-03-06 15:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 15:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621291', 'tblTempUsageDetail_20' ) start [2025-03-06 15:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621291', 'tblTempUsageDetail_20' ) end [2025-03-06 15:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621291', 'tblTempVendorCDR_20' ) start [2025-03-06 15:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621291', 'tblTempVendorCDR_20' ) end [2025-03-06 15:07:20] Production.INFO: ProcessCDR(1,14621291,1,1,2) [2025-03-06 15:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14621291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 15:07:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14621291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 15:07:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14621291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 15:07:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14621291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 15:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621291', 'tblTempUsageDetail_20' ) start [2025-03-06 15:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621291', 'tblTempUsageDetail_20' ) end [2025-03-06 15:07:25] Production.ERROR: pbx prc_insertCDR start [2025-03-06 15:07:25] Production.ERROR: pbx prc_insertCDR end [2025-03-06 15:07:25] Production.INFO: ==6077== Releasing lock... [2025-03-06 15:07:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 15:07:25] Production.INFO: 67 MB #Memory Used# [2025-03-06 15:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 12:08:05 [end_date_ymd] => 2025-03-06 15:08:05 [RateCDR] => 1 ) [2025-03-06 15:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 12:08:05' and `end` < '2025-03-06 15:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 15:08:18] Production.INFO: count ==5218 [2025-03-06 15:08:20] Production.ERROR: pbx CDR StartTime 2025-03-06 12:08:05 - End Time 2025-03-06 15:08:05 [2025-03-06 15:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 15:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621296', 'tblTempUsageDetail_20' ) start [2025-03-06 15:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621296', 'tblTempUsageDetail_20' ) end [2025-03-06 15:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621296', 'tblTempVendorCDR_20' ) start [2025-03-06 15:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621296', 'tblTempVendorCDR_20' ) end [2025-03-06 15:08:20] Production.INFO: ProcessCDR(1,14621296,1,1,2) [2025-03-06 15:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14621296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 15:08:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14621296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 15:08:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14621296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 15:08:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14621296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 15:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621296', 'tblTempUsageDetail_20' ) start [2025-03-06 15:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621296', 'tblTempUsageDetail_20' ) end [2025-03-06 15:08:25] Production.ERROR: pbx prc_insertCDR start [2025-03-06 15:08:25] Production.ERROR: pbx prc_insertCDR end [2025-03-06 15:08:25] Production.INFO: ==6231== Releasing lock... [2025-03-06 15:08:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 15:08:25] Production.INFO: 67 MB #Memory Used# [2025-03-06 15:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 12:09:05 [end_date_ymd] => 2025-03-06 15:09:05 [RateCDR] => 1 ) [2025-03-06 15:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 12:09:05' and `end` < '2025-03-06 15:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 15:09:18] Production.INFO: count ==5213 [2025-03-06 15:09:20] Production.ERROR: pbx CDR StartTime 2025-03-06 12:09:05 - End Time 2025-03-06 15:09:05 [2025-03-06 15:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 15:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621301', 'tblTempUsageDetail_20' ) start [2025-03-06 15:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621301', 'tblTempUsageDetail_20' ) end [2025-03-06 15:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621301', 'tblTempVendorCDR_20' ) start [2025-03-06 15:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621301', 'tblTempVendorCDR_20' ) end [2025-03-06 15:09:21] Production.INFO: ProcessCDR(1,14621301,1,1,2) [2025-03-06 15:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14621301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 15:09:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14621301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 15:09:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14621301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 15:09:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14621301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 15:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621301', 'tblTempUsageDetail_20' ) start [2025-03-06 15:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621301', 'tblTempUsageDetail_20' ) end [2025-03-06 15:09:26] Production.ERROR: pbx prc_insertCDR start [2025-03-06 15:09:26] Production.ERROR: pbx prc_insertCDR end [2025-03-06 15:09:26] Production.INFO: ==6313== Releasing lock... [2025-03-06 15:09:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 15:09:26] Production.INFO: 67 MB #Memory Used# [2025-03-06 15:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 12:10:05 [end_date_ymd] => 2025-03-06 15:10:05 [RateCDR] => 1 ) [2025-03-06 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-03-06 12:10:05' and `end` < '2025-03-06 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-03-06 15:10:18] Production.INFO: count ==5213 [2025-03-06 15:10:21] Production.ERROR: pbx CDR StartTime 2025-03-06 12:10:05 - End Time 2025-03-06 15:10:05 [2025-03-06 15:10:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 15:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621307', 'tblTempUsageDetail_20' ) start [2025-03-06 15:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621307', 'tblTempUsageDetail_20' ) end [2025-03-06 15:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621307', 'tblTempVendorCDR_20' ) start [2025-03-06 15:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621307', 'tblTempVendorCDR_20' ) end [2025-03-06 15:10:21] Production.INFO: ProcessCDR(1,14621307,1,1,2) [2025-03-06 15:10:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14621307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 15:10:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14621307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 15:10:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14621307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 15:10:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14621307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 15:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621307', 'tblTempUsageDetail_20' ) start [2025-03-06 15:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621307', 'tblTempUsageDetail_20' ) end [2025-03-06 15:10:25] Production.ERROR: pbx prc_insertCDR start [2025-03-06 15:10:25] Production.ERROR: pbx prc_insertCDR end [2025-03-06 15:10:25] Production.INFO: ==6388== Releasing lock... [2025-03-06 15:10:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 15:10:25] Production.INFO: 67 MB #Memory Used# [2025-03-06 15:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 12:11:05 [end_date_ymd] => 2025-03-06 15:11:05 [RateCDR] => 1 ) [2025-03-06 15:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 12:11:05' and `end` < '2025-03-06 15:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 15:11:18] Production.INFO: count ==5215 [2025-03-06 15:11:20] Production.ERROR: pbx CDR StartTime 2025-03-06 12:11:05 - End Time 2025-03-06 15:11:05 [2025-03-06 15:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 15:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621312', 'tblTempUsageDetail_20' ) start [2025-03-06 15:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621312', 'tblTempUsageDetail_20' ) end [2025-03-06 15:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621312', 'tblTempVendorCDR_20' ) start [2025-03-06 15:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621312', 'tblTempVendorCDR_20' ) end [2025-03-06 15:11:21] Production.INFO: ProcessCDR(1,14621312,1,1,2) [2025-03-06 15:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14621312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 15:11:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14621312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 15:11:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14621312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 15:11:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14621312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 15:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621312', 'tblTempUsageDetail_20' ) start [2025-03-06 15:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621312', 'tblTempUsageDetail_20' ) end [2025-03-06 15:11:24] Production.ERROR: pbx prc_insertCDR start [2025-03-06 15:11:24] Production.ERROR: pbx prc_insertCDR end [2025-03-06 15:11:24] Production.INFO: ==6469== Releasing lock... [2025-03-06 15:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 15:11:24] Production.INFO: 67 MB #Memory Used# [2025-03-06 15:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 12:12:05 [end_date_ymd] => 2025-03-06 15:12:05 [RateCDR] => 1 ) [2025-03-06 15: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-03-06 12:12:05' and `end` < '2025-03-06 15: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-03-06 15:12:18] Production.INFO: count ==5202 [2025-03-06 15:12:21] Production.ERROR: pbx CDR StartTime 2025-03-06 12:12:05 - End Time 2025-03-06 15:12:05 [2025-03-06 15:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 15:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621317', 'tblTempUsageDetail_20' ) start [2025-03-06 15:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621317', 'tblTempUsageDetail_20' ) end [2025-03-06 15:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621317', 'tblTempVendorCDR_20' ) start [2025-03-06 15:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621317', 'tblTempVendorCDR_20' ) end [2025-03-06 15:12:21] Production.INFO: ProcessCDR(1,14621317,1,1,2) [2025-03-06 15:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14621317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 15:12:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14621317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 15:12:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14621317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 15:12:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14621317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 15:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621317', 'tblTempUsageDetail_20' ) start [2025-03-06 15:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621317', 'tblTempUsageDetail_20' ) end [2025-03-06 15:12:26] Production.ERROR: pbx prc_insertCDR start [2025-03-06 15:12:26] Production.ERROR: pbx prc_insertCDR end [2025-03-06 15:12:26] Production.INFO: ==6622== Releasing lock... [2025-03-06 15:12:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 15:12:26] Production.INFO: 67 MB #Memory Used# [2025-03-06 15:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 12:13:05 [end_date_ymd] => 2025-03-06 15:13:05 [RateCDR] => 1 ) [2025-03-06 15:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 12:13:05' and `end` < '2025-03-06 15:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 15:13:18] Production.INFO: count ==5207 [2025-03-06 15:13:21] Production.ERROR: pbx CDR StartTime 2025-03-06 12:13:05 - End Time 2025-03-06 15:13:05 [2025-03-06 15:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 15:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621319', 'tblTempUsageDetail_20' ) start [2025-03-06 15:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621319', 'tblTempUsageDetail_20' ) end [2025-03-06 15:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621319', 'tblTempVendorCDR_20' ) start [2025-03-06 15:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621319', 'tblTempVendorCDR_20' ) end [2025-03-06 15:13:21] Production.INFO: ProcessCDR(1,14621319,1,1,2) [2025-03-06 15:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14621319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 15:13:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14621319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 15:13:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14621319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 15:13:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14621319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 15:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621319', 'tblTempUsageDetail_20' ) start [2025-03-06 15:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621319', 'tblTempUsageDetail_20' ) end [2025-03-06 15:13:26] Production.ERROR: pbx prc_insertCDR start [2025-03-06 15:13:26] Production.ERROR: pbx prc_insertCDR end [2025-03-06 15:13:26] Production.INFO: ==6693== Releasing lock... [2025-03-06 15:13:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 15:13:26] Production.INFO: 67 MB #Memory Used# [2025-03-06 15:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 12:14:06 [end_date_ymd] => 2025-03-06 15:14:06 [RateCDR] => 1 ) [2025-03-06 15: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-03-06 12:14:06' and `end` < '2025-03-06 15: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-03-06 15:14:19] Production.INFO: count ==5226 [2025-03-06 15:14:22] Production.ERROR: pbx CDR StartTime 2025-03-06 12:14:06 - End Time 2025-03-06 15:14:06 [2025-03-06 15:14:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 15:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621327', 'tblTempUsageDetail_20' ) start [2025-03-06 15:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621327', 'tblTempUsageDetail_20' ) end [2025-03-06 15:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621327', 'tblTempVendorCDR_20' ) start [2025-03-06 15:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621327', 'tblTempVendorCDR_20' ) end [2025-03-06 15:14:22] Production.INFO: ProcessCDR(1,14621327,1,1,2) [2025-03-06 15:14:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14621327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 15:14:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14621327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 15:14:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14621327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 15:14:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14621327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 15:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621327', 'tblTempUsageDetail_20' ) start [2025-03-06 15:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621327', 'tblTempUsageDetail_20' ) end [2025-03-06 15:14:27] Production.ERROR: pbx prc_insertCDR start [2025-03-06 15:14:27] Production.ERROR: pbx prc_insertCDR end [2025-03-06 15:14:27] Production.INFO: ==6816== Releasing lock... [2025-03-06 15:14:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 15:14:27] Production.INFO: 67.25 MB #Memory Used# [2025-03-06 15:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 12:15:06 [end_date_ymd] => 2025-03-06 15:15:06 [RateCDR] => 1 ) [2025-03-06 15: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-03-06 12:15:06' and `end` < '2025-03-06 15: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-03-06 15:15:19] Production.INFO: count ==5226 [2025-03-06 15:15:21] Production.ERROR: pbx CDR StartTime 2025-03-06 12:15:06 - End Time 2025-03-06 15:15:06 [2025-03-06 15:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 15:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621332', 'tblTempUsageDetail_20' ) start [2025-03-06 15:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621332', 'tblTempUsageDetail_20' ) end [2025-03-06 15:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621332', 'tblTempVendorCDR_20' ) start [2025-03-06 15:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621332', 'tblTempVendorCDR_20' ) end [2025-03-06 15:15:21] Production.INFO: ProcessCDR(1,14621332,1,1,2) [2025-03-06 15:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14621332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 15:15:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14621332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 15:15:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14621332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 15:15:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14621332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 15:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621332', 'tblTempUsageDetail_20' ) start [2025-03-06 15:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621332', 'tblTempUsageDetail_20' ) end [2025-03-06 15:15:25] Production.ERROR: pbx prc_insertCDR start [2025-03-06 15:15:25] Production.ERROR: pbx prc_insertCDR end [2025-03-06 15:15:25] Production.INFO: ==6969== Releasing lock... [2025-03-06 15:15:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 15:15:25] Production.INFO: 67 MB #Memory Used# [2025-03-06 15:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 12:16:06 [end_date_ymd] => 2025-03-06 15:16:06 [RateCDR] => 1 ) [2025-03-06 15:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 12:16:06' and `end` < '2025-03-06 15:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 15:16:19] Production.INFO: count ==5213 [2025-03-06 15:16:21] Production.ERROR: pbx CDR StartTime 2025-03-06 12:16:06 - End Time 2025-03-06 15:16:06 [2025-03-06 15:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 15:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621337', 'tblTempUsageDetail_20' ) start [2025-03-06 15:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621337', 'tblTempUsageDetail_20' ) end [2025-03-06 15:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621337', 'tblTempVendorCDR_20' ) start [2025-03-06 15:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621337', 'tblTempVendorCDR_20' ) end [2025-03-06 15:16:22] Production.INFO: ProcessCDR(1,14621337,1,1,2) [2025-03-06 15:16:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14621337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 15:16:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14621337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 15:16:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14621337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 15:16:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14621337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 15:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621337', 'tblTempUsageDetail_20' ) start [2025-03-06 15:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621337', 'tblTempUsageDetail_20' ) end [2025-03-06 15:16:25] Production.ERROR: pbx prc_insertCDR start [2025-03-06 15:16:25] Production.ERROR: pbx prc_insertCDR end [2025-03-06 15:16:25] Production.INFO: ==7046== Releasing lock... [2025-03-06 15:16:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 15:16:25] Production.INFO: 67 MB #Memory Used# [2025-03-06 15:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 12:17:05 [end_date_ymd] => 2025-03-06 15:17:05 [RateCDR] => 1 ) [2025-03-06 15:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 12:17:05' and `end` < '2025-03-06 15:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 15:17:18] Production.INFO: count ==5199 [2025-03-06 15:17:20] Production.ERROR: pbx CDR StartTime 2025-03-06 12:17:05 - End Time 2025-03-06 15:17:05 [2025-03-06 15:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 15:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621342', 'tblTempUsageDetail_20' ) start [2025-03-06 15:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621342', 'tblTempUsageDetail_20' ) end [2025-03-06 15:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621342', 'tblTempVendorCDR_20' ) start [2025-03-06 15:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621342', 'tblTempVendorCDR_20' ) end [2025-03-06 15:17:20] Production.INFO: ProcessCDR(1,14621342,1,1,2) [2025-03-06 15:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14621342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 15:17:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14621342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 15:17:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14621342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 15:17:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14621342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 15:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621342', 'tblTempUsageDetail_20' ) start [2025-03-06 15:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621342', 'tblTempUsageDetail_20' ) end [2025-03-06 15:17:25] Production.ERROR: pbx prc_insertCDR start [2025-03-06 15:17:25] Production.ERROR: pbx prc_insertCDR end [2025-03-06 15:17:25] Production.INFO: ==7120== Releasing lock... [2025-03-06 15:17:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 15:17:25] Production.INFO: 67 MB #Memory Used# [2025-03-06 15:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 12:18:05 [end_date_ymd] => 2025-03-06 15:18:05 [RateCDR] => 1 ) [2025-03-06 15:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 12:18:05' and `end` < '2025-03-06 15:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 15:18:18] Production.INFO: count ==5191 [2025-03-06 15:18:21] Production.ERROR: pbx CDR StartTime 2025-03-06 12:18:05 - End Time 2025-03-06 15:18:05 [2025-03-06 15:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 15:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621347', 'tblTempUsageDetail_20' ) start [2025-03-06 15:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621347', 'tblTempUsageDetail_20' ) end [2025-03-06 15:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621347', 'tblTempVendorCDR_20' ) start [2025-03-06 15:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621347', 'tblTempVendorCDR_20' ) end [2025-03-06 15:18:21] Production.INFO: ProcessCDR(1,14621347,1,1,2) [2025-03-06 15:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14621347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 15:18:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14621347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 15:18:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14621347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 15:18:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14621347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 15:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621347', 'tblTempUsageDetail_20' ) start [2025-03-06 15:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621347', 'tblTempUsageDetail_20' ) end [2025-03-06 15:18:26] Production.ERROR: pbx prc_insertCDR start [2025-03-06 15:18:26] Production.ERROR: pbx prc_insertCDR end [2025-03-06 15:18:26] Production.INFO: ==7195== Releasing lock... [2025-03-06 15:18:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 15:18:26] Production.INFO: 66.75 MB #Memory Used# [2025-03-06 15:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 12:19:05 [end_date_ymd] => 2025-03-06 15:19:05 [RateCDR] => 1 ) [2025-03-06 15: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-03-06 12:19:05' and `end` < '2025-03-06 15: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-03-06 15:19:18] Production.INFO: count ==5163 [2025-03-06 15:19:20] Production.ERROR: pbx CDR StartTime 2025-03-06 12:19:05 - End Time 2025-03-06 15:19:05 [2025-03-06 15:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 15:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621352', 'tblTempUsageDetail_20' ) start [2025-03-06 15:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621352', 'tblTempUsageDetail_20' ) end [2025-03-06 15:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621352', 'tblTempVendorCDR_20' ) start [2025-03-06 15:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621352', 'tblTempVendorCDR_20' ) end [2025-03-06 15:19:20] Production.INFO: ProcessCDR(1,14621352,1,1,2) [2025-03-06 15:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14621352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 15:19:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14621352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 15:19:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14621352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 15:19:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14621352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 15:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621352', 'tblTempUsageDetail_20' ) start [2025-03-06 15:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621352', 'tblTempUsageDetail_20' ) end [2025-03-06 15:19:25] Production.ERROR: pbx prc_insertCDR start [2025-03-06 15:19:25] Production.ERROR: pbx prc_insertCDR end [2025-03-06 15:19:25] Production.INFO: ==7268== Releasing lock... [2025-03-06 15:19:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 15:19:25] Production.INFO: 66.5 MB #Memory Used# [2025-03-06 15:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 12:20:06 [end_date_ymd] => 2025-03-06 15:20:06 [RateCDR] => 1 ) [2025-03-06 15:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 12:20:06' and `end` < '2025-03-06 15:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 15:20:19] Production.INFO: count ==5147 [2025-03-06 15:20:21] Production.ERROR: pbx CDR StartTime 2025-03-06 12:20:06 - End Time 2025-03-06 15:20:06 [2025-03-06 15:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 15:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621357', 'tblTempUsageDetail_20' ) start [2025-03-06 15:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621357', 'tblTempUsageDetail_20' ) end [2025-03-06 15:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621357', 'tblTempVendorCDR_20' ) start [2025-03-06 15:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621357', 'tblTempVendorCDR_20' ) end [2025-03-06 15:20:22] Production.INFO: ProcessCDR(1,14621357,1,1,2) [2025-03-06 15:20:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14621357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 15:20:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14621357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 15:20:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14621357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 15:20:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14621357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 15:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621357', 'tblTempUsageDetail_20' ) start [2025-03-06 15:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621357', 'tblTempUsageDetail_20' ) end [2025-03-06 15:20:27] Production.ERROR: pbx prc_insertCDR start [2025-03-06 15:20:27] Production.ERROR: pbx prc_insertCDR end [2025-03-06 15:20:27] Production.INFO: ==7348== Releasing lock... [2025-03-06 15:20:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 15:20:27] Production.INFO: 66.5 MB #Memory Used# [2025-03-06 15:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 12:21:05 [end_date_ymd] => 2025-03-06 15:21:05 [RateCDR] => 1 ) [2025-03-06 15:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 12:21:05' and `end` < '2025-03-06 15:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 15:21:18] Production.INFO: count ==5157 [2025-03-06 15:21:20] Production.ERROR: pbx CDR StartTime 2025-03-06 12:21:05 - End Time 2025-03-06 15:21:05 [2025-03-06 15:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 15:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621363', 'tblTempUsageDetail_20' ) start [2025-03-06 15:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621363', 'tblTempUsageDetail_20' ) end [2025-03-06 15:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621363', 'tblTempVendorCDR_20' ) start [2025-03-06 15:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621363', 'tblTempVendorCDR_20' ) end [2025-03-06 15:21:20] Production.INFO: ProcessCDR(1,14621363,1,1,2) [2025-03-06 15:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14621363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 15:21:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14621363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 15:21:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14621363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 15:21:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14621363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 15:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621363', 'tblTempUsageDetail_20' ) start [2025-03-06 15:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621363', 'tblTempUsageDetail_20' ) end [2025-03-06 15:21:25] Production.ERROR: pbx prc_insertCDR start [2025-03-06 15:21:25] Production.ERROR: pbx prc_insertCDR end [2025-03-06 15:21:25] Production.INFO: ==7422== Releasing lock... [2025-03-06 15:21:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 15:21:25] Production.INFO: 66.5 MB #Memory Used# [2025-03-06 15:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 12:22:06 [end_date_ymd] => 2025-03-06 15:22:06 [RateCDR] => 1 ) [2025-03-06 15:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 12:22:06' and `end` < '2025-03-06 15:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 15:22:19] Production.INFO: count ==5153 [2025-03-06 15:22:21] Production.ERROR: pbx CDR StartTime 2025-03-06 12:22:06 - End Time 2025-03-06 15:22:06 [2025-03-06 15:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 15:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621368', 'tblTempUsageDetail_20' ) start [2025-03-06 15:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621368', 'tblTempUsageDetail_20' ) end [2025-03-06 15:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621368', 'tblTempVendorCDR_20' ) start [2025-03-06 15:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621368', 'tblTempVendorCDR_20' ) end [2025-03-06 15:22:21] Production.INFO: ProcessCDR(1,14621368,1,1,2) [2025-03-06 15:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14621368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 15:22:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14621368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 15:22:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14621368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 15:22:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14621368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 15:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621368', 'tblTempUsageDetail_20' ) start [2025-03-06 15:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621368', 'tblTempUsageDetail_20' ) end [2025-03-06 15:22:26] Production.ERROR: pbx prc_insertCDR start [2025-03-06 15:22:26] Production.ERROR: pbx prc_insertCDR end [2025-03-06 15:22:26] Production.INFO: ==7496== Releasing lock... [2025-03-06 15:22:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 15:22:26] Production.INFO: 66.5 MB #Memory Used# [2025-03-06 15:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 12:23:05 [end_date_ymd] => 2025-03-06 15:23:05 [RateCDR] => 1 ) [2025-03-06 15: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-03-06 12:23:05' and `end` < '2025-03-06 15: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-03-06 15:23:20] Production.INFO: count ==5147 [2025-03-06 15:23:23] Production.ERROR: pbx CDR StartTime 2025-03-06 12:23:05 - End Time 2025-03-06 15:23:05 [2025-03-06 15:23:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 15:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621373', 'tblTempUsageDetail_20' ) start [2025-03-06 15:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621373', 'tblTempUsageDetail_20' ) end [2025-03-06 15:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621373', 'tblTempVendorCDR_20' ) start [2025-03-06 15:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621373', 'tblTempVendorCDR_20' ) end [2025-03-06 15:23:23] Production.INFO: ProcessCDR(1,14621373,1,1,2) [2025-03-06 15:23:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14621373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 15:23:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14621373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 15:23:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14621373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 15:23:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14621373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 15:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621373', 'tblTempUsageDetail_20' ) start [2025-03-06 15:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621373', 'tblTempUsageDetail_20' ) end [2025-03-06 15:23:27] Production.ERROR: pbx prc_insertCDR start [2025-03-06 15:23:27] Production.ERROR: pbx prc_insertCDR end [2025-03-06 15:23:27] Production.INFO: ==7573== Releasing lock... [2025-03-06 15:23:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 15:23:27] Production.INFO: 66.5 MB #Memory Used# [2025-03-06 15:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 12:24:06 [end_date_ymd] => 2025-03-06 15:24:06 [RateCDR] => 1 ) [2025-03-06 15: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-03-06 12:24:06' and `end` < '2025-03-06 15: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-03-06 15:24:19] Production.INFO: count ==5160 [2025-03-06 15:24:21] Production.ERROR: pbx CDR StartTime 2025-03-06 12:24:06 - End Time 2025-03-06 15:24:06 [2025-03-06 15:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 15:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621378', 'tblTempUsageDetail_20' ) start [2025-03-06 15:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621378', 'tblTempUsageDetail_20' ) end [2025-03-06 15:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621378', 'tblTempVendorCDR_20' ) start [2025-03-06 15:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621378', 'tblTempVendorCDR_20' ) end [2025-03-06 15:24:21] Production.INFO: ProcessCDR(1,14621378,1,1,2) [2025-03-06 15:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14621378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 15:24:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14621378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 15:24:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14621378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 15:24:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14621378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 15:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621378', 'tblTempUsageDetail_20' ) start [2025-03-06 15:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621378', 'tblTempUsageDetail_20' ) end [2025-03-06 15:24:26] Production.ERROR: pbx prc_insertCDR start [2025-03-06 15:24:27] Production.ERROR: pbx prc_insertCDR end [2025-03-06 15:24:27] Production.INFO: ==7645== Releasing lock... [2025-03-06 15:24:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 15:24:27] Production.INFO: 66.5 MB #Memory Used# [2025-03-06 15:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 12:25:05 [end_date_ymd] => 2025-03-06 15:25:05 [RateCDR] => 1 ) [2025-03-06 15:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 12:25:05' and `end` < '2025-03-06 15:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 15:25:21] Production.INFO: count ==5173 [2025-03-06 15:25:23] Production.ERROR: pbx CDR StartTime 2025-03-06 12:25:05 - End Time 2025-03-06 15:25:05 [2025-03-06 15:25:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 15:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621383', 'tblTempUsageDetail_20' ) start [2025-03-06 15:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621383', 'tblTempUsageDetail_20' ) end [2025-03-06 15:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621383', 'tblTempVendorCDR_20' ) start [2025-03-06 15:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621383', 'tblTempVendorCDR_20' ) end [2025-03-06 15:25:23] Production.INFO: ProcessCDR(1,14621383,1,1,2) [2025-03-06 15:25:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14621383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 15:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14621383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 15:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14621383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 15:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14621383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 15:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621383', 'tblTempUsageDetail_20' ) start [2025-03-06 15:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621383', 'tblTempUsageDetail_20' ) end [2025-03-06 15:25:28] Production.ERROR: pbx prc_insertCDR start [2025-03-06 15:25:28] Production.ERROR: pbx prc_insertCDR end [2025-03-06 15:25:28] Production.INFO: ==7717== Releasing lock... [2025-03-06 15:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 15:25:28] Production.INFO: 66.75 MB #Memory Used# [2025-03-06 15:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 12:26:05 [end_date_ymd] => 2025-03-06 15:26:05 [RateCDR] => 1 ) [2025-03-06 15: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-03-06 12:26:05' and `end` < '2025-03-06 15: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-03-06 15:26:19] Production.INFO: count ==5173 [2025-03-06 15:26:21] Production.ERROR: pbx CDR StartTime 2025-03-06 12:26:05 - End Time 2025-03-06 15:26:05 [2025-03-06 15:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 15:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621388', 'tblTempUsageDetail_20' ) start [2025-03-06 15:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621388', 'tblTempUsageDetail_20' ) end [2025-03-06 15:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621388', 'tblTempVendorCDR_20' ) start [2025-03-06 15:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621388', 'tblTempVendorCDR_20' ) end [2025-03-06 15:26:21] Production.INFO: ProcessCDR(1,14621388,1,1,2) [2025-03-06 15:26:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14621388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 15:26:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14621388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 15:26:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14621388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 15:26:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14621388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 15:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621388', 'tblTempUsageDetail_20' ) start [2025-03-06 15:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621388', 'tblTempUsageDetail_20' ) end [2025-03-06 15:26:26] Production.ERROR: pbx prc_insertCDR start [2025-03-06 15:26:26] Production.ERROR: pbx prc_insertCDR end [2025-03-06 15:26:26] Production.INFO: ==7793== Releasing lock... [2025-03-06 15:26:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 15:26:26] Production.INFO: 66.75 MB #Memory Used# [2025-03-06 15:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 12:27:05 [end_date_ymd] => 2025-03-06 15:27:05 [RateCDR] => 1 ) [2025-03-06 15:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 12:27:05' and `end` < '2025-03-06 15:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 15:27:18] Production.INFO: count ==5179 [2025-03-06 15:27:20] Production.ERROR: pbx CDR StartTime 2025-03-06 12:27:05 - End Time 2025-03-06 15:27:05 [2025-03-06 15:27:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 15:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621393', 'tblTempUsageDetail_20' ) start [2025-03-06 15:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621393', 'tblTempUsageDetail_20' ) end [2025-03-06 15:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621393', 'tblTempVendorCDR_20' ) start [2025-03-06 15:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621393', 'tblTempVendorCDR_20' ) end [2025-03-06 15:27:20] Production.INFO: ProcessCDR(1,14621393,1,1,2) [2025-03-06 15:27:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14621393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 15:27:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14621393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 15:27:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14621393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 15:27:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14621393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 15:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621393', 'tblTempUsageDetail_20' ) start [2025-03-06 15:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621393', 'tblTempUsageDetail_20' ) end [2025-03-06 15:27:25] Production.ERROR: pbx prc_insertCDR start [2025-03-06 15:27:25] Production.ERROR: pbx prc_insertCDR end [2025-03-06 15:27:26] Production.INFO: ==7870== Releasing lock... [2025-03-06 15:27:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 15:27:26] Production.INFO: 66.75 MB #Memory Used# [2025-03-06 15:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 12:28:05 [end_date_ymd] => 2025-03-06 15:28:05 [RateCDR] => 1 ) [2025-03-06 15:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 12:28:05' and `end` < '2025-03-06 15:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 15:28:19] Production.INFO: count ==5175 [2025-03-06 15:28:21] Production.ERROR: pbx CDR StartTime 2025-03-06 12:28:05 - End Time 2025-03-06 15:28:05 [2025-03-06 15:28:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 15:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621398', 'tblTempUsageDetail_20' ) start [2025-03-06 15:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621398', 'tblTempUsageDetail_20' ) end [2025-03-06 15:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621398', 'tblTempVendorCDR_20' ) start [2025-03-06 15:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621398', 'tblTempVendorCDR_20' ) end [2025-03-06 15:28:21] Production.INFO: ProcessCDR(1,14621398,1,1,2) [2025-03-06 15:28:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14621398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 15:28:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14621398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 15:28:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14621398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 15:28:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14621398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 15:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621398', 'tblTempUsageDetail_20' ) start [2025-03-06 15:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621398', 'tblTempUsageDetail_20' ) end [2025-03-06 15:28:27] Production.ERROR: pbx prc_insertCDR start [2025-03-06 15:28:27] Production.ERROR: pbx prc_insertCDR end [2025-03-06 15:28:27] Production.INFO: ==7945== Releasing lock... [2025-03-06 15:28:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 15:28:27] Production.INFO: 66.75 MB #Memory Used# [2025-03-06 15:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 12:29:06 [end_date_ymd] => 2025-03-06 15:29:06 [RateCDR] => 1 ) [2025-03-06 15:29:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 12:29:06' and `end` < '2025-03-06 15:29:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 15:29:19] Production.INFO: count ==5173 [2025-03-06 15:29:22] Production.ERROR: pbx CDR StartTime 2025-03-06 12:29:06 - End Time 2025-03-06 15:29:06 [2025-03-06 15:29:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 15:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621403', 'tblTempUsageDetail_20' ) start [2025-03-06 15:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621403', 'tblTempUsageDetail_20' ) end [2025-03-06 15:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621403', 'tblTempVendorCDR_20' ) start [2025-03-06 15:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621403', 'tblTempVendorCDR_20' ) end [2025-03-06 15:29:22] Production.INFO: ProcessCDR(1,14621403,1,1,2) [2025-03-06 15:29:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14621403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 15:29:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14621403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 15:29:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14621403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 15:29:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14621403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 15:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621403', 'tblTempUsageDetail_20' ) start [2025-03-06 15:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621403', 'tblTempUsageDetail_20' ) end [2025-03-06 15:29:27] Production.ERROR: pbx prc_insertCDR start [2025-03-06 15:29:27] Production.ERROR: pbx prc_insertCDR end [2025-03-06 15:29:27] Production.INFO: ==8057== Releasing lock... [2025-03-06 15:29:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 15:29:27] Production.INFO: 66.75 MB #Memory Used# [2025-03-06 15:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 12:30:06 [end_date_ymd] => 2025-03-06 15:30:06 [RateCDR] => 1 ) [2025-03-06 15: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-03-06 12:30:06' and `end` < '2025-03-06 15: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-03-06 15:30:19] Production.INFO: count ==5191 [2025-03-06 15:30:21] Production.ERROR: pbx CDR StartTime 2025-03-06 12:30:06 - End Time 2025-03-06 15:30:06 [2025-03-06 15:30:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 15:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621409', 'tblTempUsageDetail_20' ) start [2025-03-06 15:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621409', 'tblTempUsageDetail_20' ) end [2025-03-06 15:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621409', 'tblTempVendorCDR_20' ) start [2025-03-06 15:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621409', 'tblTempVendorCDR_20' ) end [2025-03-06 15:30:21] Production.INFO: ProcessCDR(1,14621409,1,1,2) [2025-03-06 15:30:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14621409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 15:30:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14621409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 15:30:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14621409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 15:30:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14621409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 15:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621409', 'tblTempUsageDetail_20' ) start [2025-03-06 15:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621409', 'tblTempUsageDetail_20' ) end [2025-03-06 15:30:26] Production.ERROR: pbx prc_insertCDR start [2025-03-06 15:30:26] Production.ERROR: pbx prc_insertCDR end [2025-03-06 15:30:26] Production.INFO: ==8131== Releasing lock... [2025-03-06 15:30:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 15:30:26] Production.INFO: 66.75 MB #Memory Used# [2025-03-06 15:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 12:31:06 [end_date_ymd] => 2025-03-06 15:31:06 [RateCDR] => 1 ) [2025-03-06 15:31:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 12:31:06' and `end` < '2025-03-06 15:31:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 15:31:19] Production.INFO: count ==5200 [2025-03-06 15:31:21] Production.ERROR: pbx CDR StartTime 2025-03-06 12:31:06 - End Time 2025-03-06 15:31:06 [2025-03-06 15:31:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 15:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621414', 'tblTempUsageDetail_20' ) start [2025-03-06 15:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621414', 'tblTempUsageDetail_20' ) end [2025-03-06 15:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621414', 'tblTempVendorCDR_20' ) start [2025-03-06 15:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621414', 'tblTempVendorCDR_20' ) end [2025-03-06 15:31:21] Production.INFO: ProcessCDR(1,14621414,1,1,2) [2025-03-06 15:31:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14621414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 15:31:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14621414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 15:31:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14621414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 15:31:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14621414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 15:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621414', 'tblTempUsageDetail_20' ) start [2025-03-06 15:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621414', 'tblTempUsageDetail_20' ) end [2025-03-06 15:31:26] Production.ERROR: pbx prc_insertCDR start [2025-03-06 15:31:26] Production.ERROR: pbx prc_insertCDR end [2025-03-06 15:31:26] Production.INFO: ==8204== Releasing lock... [2025-03-06 15:31:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 15:31:26] Production.INFO: 67 MB #Memory Used# [2025-03-06 15:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 12:32:05 [end_date_ymd] => 2025-03-06 15:32:05 [RateCDR] => 1 ) [2025-03-06 15:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 12:32:05' and `end` < '2025-03-06 15:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 15:32:18] Production.INFO: count ==5207 [2025-03-06 15:32:20] Production.ERROR: pbx CDR StartTime 2025-03-06 12:32:05 - End Time 2025-03-06 15:32:05 [2025-03-06 15:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 15:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621419', 'tblTempUsageDetail_20' ) start [2025-03-06 15:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621419', 'tblTempUsageDetail_20' ) end [2025-03-06 15:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621419', 'tblTempVendorCDR_20' ) start [2025-03-06 15:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621419', 'tblTempVendorCDR_20' ) end [2025-03-06 15:32:21] Production.INFO: ProcessCDR(1,14621419,1,1,2) [2025-03-06 15:32:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14621419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 15:32:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14621419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 15:32:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14621419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 15:32:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14621419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 15:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621419', 'tblTempUsageDetail_20' ) start [2025-03-06 15:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621419', 'tblTempUsageDetail_20' ) end [2025-03-06 15:32:25] Production.ERROR: pbx prc_insertCDR start [2025-03-06 15:32:26] Production.ERROR: pbx prc_insertCDR end [2025-03-06 15:32:26] Production.INFO: ==8277== Releasing lock... [2025-03-06 15:32:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 15:32:26] Production.INFO: 67 MB #Memory Used# [2025-03-06 15:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 12:33:06 [end_date_ymd] => 2025-03-06 15:33:06 [RateCDR] => 1 ) [2025-03-06 15: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-03-06 12:33:06' and `end` < '2025-03-06 15: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-03-06 15:33:19] Production.INFO: count ==5195 [2025-03-06 15:33:22] Production.ERROR: pbx CDR StartTime 2025-03-06 12:33:06 - End Time 2025-03-06 15:33:06 [2025-03-06 15:33:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 15:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621424', 'tblTempUsageDetail_20' ) start [2025-03-06 15:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621424', 'tblTempUsageDetail_20' ) end [2025-03-06 15:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621424', 'tblTempVendorCDR_20' ) start [2025-03-06 15:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621424', 'tblTempVendorCDR_20' ) end [2025-03-06 15:33:22] Production.INFO: ProcessCDR(1,14621424,1,1,2) [2025-03-06 15:33:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14621424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 15:33:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14621424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 15:33:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14621424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 15:33:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14621424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 15:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621424', 'tblTempUsageDetail_20' ) start [2025-03-06 15:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621424', 'tblTempUsageDetail_20' ) end [2025-03-06 15:33:27] Production.ERROR: pbx prc_insertCDR start [2025-03-06 15:33:27] Production.ERROR: pbx prc_insertCDR end [2025-03-06 15:33:27] Production.INFO: ==8356== Releasing lock... [2025-03-06 15:33:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 15:33:27] Production.INFO: 66.75 MB #Memory Used# [2025-03-06 15:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 12:34:05 [end_date_ymd] => 2025-03-06 15:34:05 [RateCDR] => 1 ) [2025-03-06 15:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 12:34:05' and `end` < '2025-03-06 15:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 15:34:18] Production.INFO: count ==5206 [2025-03-06 15:34:20] Production.ERROR: pbx CDR StartTime 2025-03-06 12:34:05 - End Time 2025-03-06 15:34:05 [2025-03-06 15:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 15:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621429', 'tblTempUsageDetail_20' ) start [2025-03-06 15:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621429', 'tblTempUsageDetail_20' ) end [2025-03-06 15:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621429', 'tblTempVendorCDR_20' ) start [2025-03-06 15:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621429', 'tblTempVendorCDR_20' ) end [2025-03-06 15:34:20] Production.INFO: ProcessCDR(1,14621429,1,1,2) [2025-03-06 15:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14621429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 15:34:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14621429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 15:34:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14621429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 15:34:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14621429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 15:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621429', 'tblTempUsageDetail_20' ) start [2025-03-06 15:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621429', 'tblTempUsageDetail_20' ) end [2025-03-06 15:34:25] Production.ERROR: pbx prc_insertCDR start [2025-03-06 15:34:25] Production.ERROR: pbx prc_insertCDR end [2025-03-06 15:34:25] Production.INFO: ==8427== Releasing lock... [2025-03-06 15:34:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 15:34:25] Production.INFO: 67 MB #Memory Used# [2025-03-06 15:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 12:35:05 [end_date_ymd] => 2025-03-06 15:35:05 [RateCDR] => 1 ) [2025-03-06 15:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 12:35:05' and `end` < '2025-03-06 15:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 15:35:19] Production.INFO: count ==5218 [2025-03-06 15:35:22] Production.ERROR: pbx CDR StartTime 2025-03-06 12:35:05 - End Time 2025-03-06 15:35:05 [2025-03-06 15:35:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 15:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621434', 'tblTempUsageDetail_20' ) start [2025-03-06 15:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621434', 'tblTempUsageDetail_20' ) end [2025-03-06 15:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621434', 'tblTempVendorCDR_20' ) start [2025-03-06 15:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621434', 'tblTempVendorCDR_20' ) end [2025-03-06 15:35:22] Production.INFO: ProcessCDR(1,14621434,1,1,2) [2025-03-06 15:35:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14621434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 15:35:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14621434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 15:35:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14621434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 15:35:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14621434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 15:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621434', 'tblTempUsageDetail_20' ) start [2025-03-06 15:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621434', 'tblTempUsageDetail_20' ) end [2025-03-06 15:35:25] Production.ERROR: pbx prc_insertCDR start [2025-03-06 15:35:25] Production.ERROR: pbx prc_insertCDR end [2025-03-06 15:35:25] Production.INFO: ==8502== Releasing lock... [2025-03-06 15:35:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 15:35:25] Production.INFO: 67 MB #Memory Used# [2025-03-06 15:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 12:36:05 [end_date_ymd] => 2025-03-06 15:36:05 [RateCDR] => 1 ) [2025-03-06 15:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 12:36:05' and `end` < '2025-03-06 15:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 15:36:18] Production.INFO: count ==5225 [2025-03-06 15:36:20] Production.ERROR: pbx CDR StartTime 2025-03-06 12:36:05 - End Time 2025-03-06 15:36:05 [2025-03-06 15:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 15:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621439', 'tblTempUsageDetail_20' ) start [2025-03-06 15:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621439', 'tblTempUsageDetail_20' ) end [2025-03-06 15:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621439', 'tblTempVendorCDR_20' ) start [2025-03-06 15:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621439', 'tblTempVendorCDR_20' ) end [2025-03-06 15:36:21] Production.INFO: ProcessCDR(1,14621439,1,1,2) [2025-03-06 15:36:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14621439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 15:36:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14621439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 15:36:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14621439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 15:36:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14621439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 15:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621439', 'tblTempUsageDetail_20' ) start [2025-03-06 15:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621439', 'tblTempUsageDetail_20' ) end [2025-03-06 15:36:25] Production.ERROR: pbx prc_insertCDR start [2025-03-06 15:36:25] Production.ERROR: pbx prc_insertCDR end [2025-03-06 15:36:25] Production.INFO: ==8579== Releasing lock... [2025-03-06 15:36:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 15:36:25] Production.INFO: 67 MB #Memory Used# [2025-03-06 15:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 12:37:05 [end_date_ymd] => 2025-03-06 15:37:05 [RateCDR] => 1 ) [2025-03-06 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-03-06 12:37:05' and `end` < '2025-03-06 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-03-06 15:37:18] Production.INFO: count ==5225 [2025-03-06 15:37:20] Production.ERROR: pbx CDR StartTime 2025-03-06 12:37:05 - End Time 2025-03-06 15:37:05 [2025-03-06 15:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 15:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621444', 'tblTempUsageDetail_20' ) start [2025-03-06 15:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621444', 'tblTempUsageDetail_20' ) end [2025-03-06 15:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621444', 'tblTempVendorCDR_20' ) start [2025-03-06 15:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621444', 'tblTempVendorCDR_20' ) end [2025-03-06 15:37:20] Production.INFO: ProcessCDR(1,14621444,1,1,2) [2025-03-06 15:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14621444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 15:37:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14621444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 15:37:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14621444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 15:37:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14621444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 15:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621444', 'tblTempUsageDetail_20' ) start [2025-03-06 15:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621444', 'tblTempUsageDetail_20' ) end [2025-03-06 15:37:25] Production.ERROR: pbx prc_insertCDR start [2025-03-06 15:37:25] Production.ERROR: pbx prc_insertCDR end [2025-03-06 15:37:25] Production.INFO: ==8651== Releasing lock... [2025-03-06 15:37:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 15:37:25] Production.INFO: 67 MB #Memory Used# [2025-03-06 15:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 12:38:05 [end_date_ymd] => 2025-03-06 15:38:05 [RateCDR] => 1 ) [2025-03-06 15:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 12:38:05' and `end` < '2025-03-06 15:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 15:38:19] Production.INFO: count ==5227 [2025-03-06 15:38:21] Production.ERROR: pbx CDR StartTime 2025-03-06 12:38:05 - End Time 2025-03-06 15:38:05 [2025-03-06 15:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 15:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621449', 'tblTempUsageDetail_20' ) start [2025-03-06 15:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621449', 'tblTempUsageDetail_20' ) end [2025-03-06 15:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621449', 'tblTempVendorCDR_20' ) start [2025-03-06 15:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621449', 'tblTempVendorCDR_20' ) end [2025-03-06 15:38:21] Production.INFO: ProcessCDR(1,14621449,1,1,2) [2025-03-06 15:38:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14621449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 15:38:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14621449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 15:38:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14621449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 15:38:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14621449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 15:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621449', 'tblTempUsageDetail_20' ) start [2025-03-06 15:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621449', 'tblTempUsageDetail_20' ) end [2025-03-06 15:38:26] Production.ERROR: pbx prc_insertCDR start [2025-03-06 15:38:26] Production.ERROR: pbx prc_insertCDR end [2025-03-06 15:38:26] Production.INFO: ==8722== Releasing lock... [2025-03-06 15:38:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 15:38:26] Production.INFO: 67 MB #Memory Used# [2025-03-06 15:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 12:39:05 [end_date_ymd] => 2025-03-06 15:39:05 [RateCDR] => 1 ) [2025-03-06 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-03-06 12:39:05' and `end` < '2025-03-06 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-03-06 15:39:18] Production.INFO: count ==5216 [2025-03-06 15:39:21] Production.ERROR: pbx CDR StartTime 2025-03-06 12:39:05 - End Time 2025-03-06 15:39:05 [2025-03-06 15:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 15:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621454', 'tblTempUsageDetail_20' ) start [2025-03-06 15:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621454', 'tblTempUsageDetail_20' ) end [2025-03-06 15:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621454', 'tblTempVendorCDR_20' ) start [2025-03-06 15:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621454', 'tblTempVendorCDR_20' ) end [2025-03-06 15:39:21] Production.INFO: ProcessCDR(1,14621454,1,1,2) [2025-03-06 15:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14621454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 15:39:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14621454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 15:39:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14621454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 15:39:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14621454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 15:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621454', 'tblTempUsageDetail_20' ) start [2025-03-06 15:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621454', 'tblTempUsageDetail_20' ) end [2025-03-06 15:39:25] Production.ERROR: pbx prc_insertCDR start [2025-03-06 15:39:25] Production.ERROR: pbx prc_insertCDR end [2025-03-06 15:39:25] Production.INFO: ==8793== Releasing lock... [2025-03-06 15:39:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 15:39:25] Production.INFO: 67 MB #Memory Used# [2025-03-06 15:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 12:40:06 [end_date_ymd] => 2025-03-06 15:40:06 [RateCDR] => 1 ) [2025-03-06 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-03-06 12:40:06' and `end` < '2025-03-06 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-03-06 15:40:19] Production.INFO: count ==5212 [2025-03-06 15:40:22] Production.ERROR: pbx CDR StartTime 2025-03-06 12:40:06 - End Time 2025-03-06 15:40:06 [2025-03-06 15:40:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 15:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621460', 'tblTempUsageDetail_20' ) start [2025-03-06 15:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621460', 'tblTempUsageDetail_20' ) end [2025-03-06 15:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621460', 'tblTempVendorCDR_20' ) start [2025-03-06 15:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621460', 'tblTempVendorCDR_20' ) end [2025-03-06 15:40:22] Production.INFO: ProcessCDR(1,14621460,1,1,2) [2025-03-06 15:40:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14621460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 15:40:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14621460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 15:40:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14621460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 15:40:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14621460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 15:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621460', 'tblTempUsageDetail_20' ) start [2025-03-06 15:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621460', 'tblTempUsageDetail_20' ) end [2025-03-06 15:40:27] Production.ERROR: pbx prc_insertCDR start [2025-03-06 15:40:27] Production.ERROR: pbx prc_insertCDR end [2025-03-06 15:40:27] Production.INFO: ==8866== Releasing lock... [2025-03-06 15:40:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 15:40:27] Production.INFO: 67 MB #Memory Used# [2025-03-06 15:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 12:41:05 [end_date_ymd] => 2025-03-06 15:41:05 [RateCDR] => 1 ) [2025-03-06 15:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 12:41:05' and `end` < '2025-03-06 15:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 15:41:18] Production.INFO: count ==5240 [2025-03-06 15:41:20] Production.ERROR: pbx CDR StartTime 2025-03-06 12:41:05 - End Time 2025-03-06 15:41:05 [2025-03-06 15:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 15:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621465', 'tblTempUsageDetail_20' ) start [2025-03-06 15:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621465', 'tblTempUsageDetail_20' ) end [2025-03-06 15:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621465', 'tblTempVendorCDR_20' ) start [2025-03-06 15:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621465', 'tblTempVendorCDR_20' ) end [2025-03-06 15:41:20] Production.INFO: ProcessCDR(1,14621465,1,1,2) [2025-03-06 15:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14621465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 15:41:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14621465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 15:41:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14621465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 15:41:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14621465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 15:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621465', 'tblTempUsageDetail_20' ) start [2025-03-06 15:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621465', 'tblTempUsageDetail_20' ) end [2025-03-06 15:41:26] Production.ERROR: pbx prc_insertCDR start [2025-03-06 15:41:26] Production.ERROR: pbx prc_insertCDR end [2025-03-06 15:41:26] Production.INFO: ==8944== Releasing lock... [2025-03-06 15:41:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 15:41:26] Production.INFO: 67.25 MB #Memory Used# [2025-03-06 15:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 12:42:06 [end_date_ymd] => 2025-03-06 15:42:06 [RateCDR] => 1 ) [2025-03-06 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-03-06 12:42:06' and `end` < '2025-03-06 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-03-06 15:42:19] Production.INFO: count ==5246 [2025-03-06 15:42:21] Production.ERROR: pbx CDR StartTime 2025-03-06 12:42:06 - End Time 2025-03-06 15:42:06 [2025-03-06 15:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 15:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621470', 'tblTempUsageDetail_20' ) start [2025-03-06 15:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621470', 'tblTempUsageDetail_20' ) end [2025-03-06 15:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621470', 'tblTempVendorCDR_20' ) start [2025-03-06 15:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621470', 'tblTempVendorCDR_20' ) end [2025-03-06 15:42:22] Production.INFO: ProcessCDR(1,14621470,1,1,2) [2025-03-06 15:42:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14621470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 15:42:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14621470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 15:42:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14621470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 15:42:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14621470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 15:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621470', 'tblTempUsageDetail_20' ) start [2025-03-06 15:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621470', 'tblTempUsageDetail_20' ) end [2025-03-06 15:42:26] Production.ERROR: pbx prc_insertCDR start [2025-03-06 15:42:26] Production.ERROR: pbx prc_insertCDR end [2025-03-06 15:42:26] Production.INFO: ==9015== Releasing lock... [2025-03-06 15:42:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 15:42:26] Production.INFO: 67.25 MB #Memory Used# [2025-03-06 15:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 12:43:05 [end_date_ymd] => 2025-03-06 15:43:05 [RateCDR] => 1 ) [2025-03-06 15:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 12:43:05' and `end` < '2025-03-06 15:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 15:43:18] Production.INFO: count ==5240 [2025-03-06 15:43:21] Production.ERROR: pbx CDR StartTime 2025-03-06 12:43:05 - End Time 2025-03-06 15:43:05 [2025-03-06 15:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 15:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621475', 'tblTempUsageDetail_20' ) start [2025-03-06 15:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621475', 'tblTempUsageDetail_20' ) end [2025-03-06 15:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621475', 'tblTempVendorCDR_20' ) start [2025-03-06 15:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621475', 'tblTempVendorCDR_20' ) end [2025-03-06 15:43:21] Production.INFO: ProcessCDR(1,14621475,1,1,2) [2025-03-06 15:43:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14621475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 15:43:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14621475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 15:43:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14621475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 15:43:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14621475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 15:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621475', 'tblTempUsageDetail_20' ) start [2025-03-06 15:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621475', 'tblTempUsageDetail_20' ) end [2025-03-06 15:43:26] Production.ERROR: pbx prc_insertCDR start [2025-03-06 15:43:26] Production.ERROR: pbx prc_insertCDR end [2025-03-06 15:43:26] Production.INFO: ==9087== Releasing lock... [2025-03-06 15:43:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 15:43:26] Production.INFO: 67.25 MB #Memory Used# [2025-03-06 15:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 12:44:05 [end_date_ymd] => 2025-03-06 15:44:05 [RateCDR] => 1 ) [2025-03-06 15:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 12:44:05' and `end` < '2025-03-06 15:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 15:44:18] Production.INFO: count ==5236 [2025-03-06 15:44:20] Production.ERROR: pbx CDR StartTime 2025-03-06 12:44:05 - End Time 2025-03-06 15:44:05 [2025-03-06 15:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 15:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621480', 'tblTempUsageDetail_20' ) start [2025-03-06 15:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621480', 'tblTempUsageDetail_20' ) end [2025-03-06 15:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621480', 'tblTempVendorCDR_20' ) start [2025-03-06 15:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621480', 'tblTempVendorCDR_20' ) end [2025-03-06 15:44:21] Production.INFO: ProcessCDR(1,14621480,1,1,2) [2025-03-06 15:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14621480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 15:44:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14621480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 15:44:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14621480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 15:44:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14621480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 15:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621480', 'tblTempUsageDetail_20' ) start [2025-03-06 15:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621480', 'tblTempUsageDetail_20' ) end [2025-03-06 15:44:26] Production.ERROR: pbx prc_insertCDR start [2025-03-06 15:44:26] Production.ERROR: pbx prc_insertCDR end [2025-03-06 15:44:26] Production.INFO: ==9159== Releasing lock... [2025-03-06 15:44:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 15:44:26] Production.INFO: 67.25 MB #Memory Used# [2025-03-06 15:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 12:45:05 [end_date_ymd] => 2025-03-06 15:45:05 [RateCDR] => 1 ) [2025-03-06 15:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 12:45:05' and `end` < '2025-03-06 15:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 15:45:18] Production.INFO: count ==5231 [2025-03-06 15:45:21] Production.ERROR: pbx CDR StartTime 2025-03-06 12:45:05 - End Time 2025-03-06 15:45:05 [2025-03-06 15:45:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 15:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621485', 'tblTempUsageDetail_20' ) start [2025-03-06 15:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621485', 'tblTempUsageDetail_20' ) end [2025-03-06 15:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621485', 'tblTempVendorCDR_20' ) start [2025-03-06 15:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621485', 'tblTempVendorCDR_20' ) end [2025-03-06 15:45:21] Production.INFO: ProcessCDR(1,14621485,1,1,2) [2025-03-06 15:45:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14621485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 15:45:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14621485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 15:45:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14621485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 15:45:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14621485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 15:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621485', 'tblTempUsageDetail_20' ) start [2025-03-06 15:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621485', 'tblTempUsageDetail_20' ) end [2025-03-06 15:45:26] Production.ERROR: pbx prc_insertCDR start [2025-03-06 15:45:26] Production.ERROR: pbx prc_insertCDR end [2025-03-06 15:45:26] Production.INFO: ==9271== Releasing lock... [2025-03-06 15:45:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 15:45:26] Production.INFO: 67.25 MB #Memory Used# [2025-03-06 15:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 12:46:06 [end_date_ymd] => 2025-03-06 15:46:06 [RateCDR] => 1 ) [2025-03-06 15:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 12:46:06' and `end` < '2025-03-06 15:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 15:46:18] Production.INFO: count ==5202 [2025-03-06 15:46:21] Production.ERROR: pbx CDR StartTime 2025-03-06 12:46:06 - End Time 2025-03-06 15:46:06 [2025-03-06 15:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 15:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621490', 'tblTempUsageDetail_20' ) start [2025-03-06 15:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621490', 'tblTempUsageDetail_20' ) end [2025-03-06 15:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621490', 'tblTempVendorCDR_20' ) start [2025-03-06 15:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621490', 'tblTempVendorCDR_20' ) end [2025-03-06 15:46:21] Production.INFO: ProcessCDR(1,14621490,1,1,2) [2025-03-06 15:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14621490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 15:46:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14621490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 15:46:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14621490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 15:46:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14621490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 15:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621490', 'tblTempUsageDetail_20' ) start [2025-03-06 15:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621490', 'tblTempUsageDetail_20' ) end [2025-03-06 15:46:26] Production.ERROR: pbx prc_insertCDR start [2025-03-06 15:46:26] Production.ERROR: pbx prc_insertCDR end [2025-03-06 15:46:26] Production.INFO: ==9344== Releasing lock... [2025-03-06 15:46:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 15:46:26] Production.INFO: 67 MB #Memory Used# [2025-03-06 15:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 12:47:06 [end_date_ymd] => 2025-03-06 15:47:06 [RateCDR] => 1 ) [2025-03-06 15:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 12:47:06' and `end` < '2025-03-06 15:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 15:47:19] Production.INFO: count ==5205 [2025-03-06 15:47:22] Production.ERROR: pbx CDR StartTime 2025-03-06 12:47:06 - End Time 2025-03-06 15:47:06 [2025-03-06 15:47:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 15:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621495', 'tblTempUsageDetail_20' ) start [2025-03-06 15:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621495', 'tblTempUsageDetail_20' ) end [2025-03-06 15:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621495', 'tblTempVendorCDR_20' ) start [2025-03-06 15:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621495', 'tblTempVendorCDR_20' ) end [2025-03-06 15:47:22] Production.INFO: ProcessCDR(1,14621495,1,1,2) [2025-03-06 15:47:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14621495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 15:47:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14621495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 15:47:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14621495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 15:47:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14621495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 15:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621495', 'tblTempUsageDetail_20' ) start [2025-03-06 15:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621495', 'tblTempUsageDetail_20' ) end [2025-03-06 15:47:27] Production.ERROR: pbx prc_insertCDR start [2025-03-06 15:47:27] Production.ERROR: pbx prc_insertCDR end [2025-03-06 15:47:27] Production.INFO: ==9417== Releasing lock... [2025-03-06 15:47:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 15:47:27] Production.INFO: 67 MB #Memory Used# [2025-03-06 15:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 12:48:06 [end_date_ymd] => 2025-03-06 15:48:06 [RateCDR] => 1 ) [2025-03-06 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-03-06 12:48:06' and `end` < '2025-03-06 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-03-06 15:48:19] Production.INFO: count ==5200 [2025-03-06 15:48:22] Production.ERROR: pbx CDR StartTime 2025-03-06 12:48:06 - End Time 2025-03-06 15:48:06 [2025-03-06 15:48:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 15:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621500', 'tblTempUsageDetail_20' ) start [2025-03-06 15:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621500', 'tblTempUsageDetail_20' ) end [2025-03-06 15:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621500', 'tblTempVendorCDR_20' ) start [2025-03-06 15:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621500', 'tblTempVendorCDR_20' ) end [2025-03-06 15:48:22] Production.INFO: ProcessCDR(1,14621500,1,1,2) [2025-03-06 15:48:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14621500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 15:48:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14621500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 15:48:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14621500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 15:48:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14621500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 15:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621500', 'tblTempUsageDetail_20' ) start [2025-03-06 15:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621500', 'tblTempUsageDetail_20' ) end [2025-03-06 15:48:27] Production.ERROR: pbx prc_insertCDR start [2025-03-06 15:48:27] Production.ERROR: pbx prc_insertCDR end [2025-03-06 15:48:27] Production.INFO: ==9491== Releasing lock... [2025-03-06 15:48:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 15:48:27] Production.INFO: 67 MB #Memory Used# [2025-03-06 15:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 12:49:05 [end_date_ymd] => 2025-03-06 15:49:05 [RateCDR] => 1 ) [2025-03-06 15:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 12:49:05' and `end` < '2025-03-06 15:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 15:49:18] Production.INFO: count ==5201 [2025-03-06 15:49:20] Production.ERROR: pbx CDR StartTime 2025-03-06 12:49:05 - End Time 2025-03-06 15:49:05 [2025-03-06 15:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 15:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621505', 'tblTempUsageDetail_20' ) start [2025-03-06 15:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621505', 'tblTempUsageDetail_20' ) end [2025-03-06 15:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621505', 'tblTempVendorCDR_20' ) start [2025-03-06 15:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621505', 'tblTempVendorCDR_20' ) end [2025-03-06 15:49:21] Production.INFO: ProcessCDR(1,14621505,1,1,2) [2025-03-06 15:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14621505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 15:49:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14621505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 15:49:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14621505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 15:49:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14621505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 15:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621505', 'tblTempUsageDetail_20' ) start [2025-03-06 15:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621505', 'tblTempUsageDetail_20' ) end [2025-03-06 15:49:25] Production.ERROR: pbx prc_insertCDR start [2025-03-06 15:49:25] Production.ERROR: pbx prc_insertCDR end [2025-03-06 15:49:25] Production.INFO: ==9564== Releasing lock... [2025-03-06 15:49:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 15:49:25] Production.INFO: 67 MB #Memory Used# [2025-03-06 15:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 12:50:06 [end_date_ymd] => 2025-03-06 15:50:06 [RateCDR] => 1 ) [2025-03-06 15:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 12:50:06' and `end` < '2025-03-06 15:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 15:50:20] Production.INFO: count ==5210 [2025-03-06 15:50:22] Production.ERROR: pbx CDR StartTime 2025-03-06 12:50:06 - End Time 2025-03-06 15:50:06 [2025-03-06 15:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 15:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621510', 'tblTempUsageDetail_20' ) start [2025-03-06 15:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621510', 'tblTempUsageDetail_20' ) end [2025-03-06 15:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621510', 'tblTempVendorCDR_20' ) start [2025-03-06 15:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621510', 'tblTempVendorCDR_20' ) end [2025-03-06 15:50:22] Production.INFO: ProcessCDR(1,14621510,1,1,2) [2025-03-06 15:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14621510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 15:50:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14621510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 15:50:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14621510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 15:50:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14621510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 15:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621510', 'tblTempUsageDetail_20' ) start [2025-03-06 15:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621510', 'tblTempUsageDetail_20' ) end [2025-03-06 15:50:27] Production.ERROR: pbx prc_insertCDR start [2025-03-06 15:50:27] Production.ERROR: pbx prc_insertCDR end [2025-03-06 15:50:27] Production.INFO: ==9636== Releasing lock... [2025-03-06 15:50:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 15:50:27] Production.INFO: 67 MB #Memory Used# [2025-03-06 15:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 12:51:05 [end_date_ymd] => 2025-03-06 15:51:05 [RateCDR] => 1 ) [2025-03-06 15:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 12:51:05' and `end` < '2025-03-06 15:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 15:51:18] Production.INFO: count ==5169 [2025-03-06 15:51:21] Production.ERROR: pbx CDR StartTime 2025-03-06 12:51:05 - End Time 2025-03-06 15:51:05 [2025-03-06 15:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 15:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621516', 'tblTempUsageDetail_20' ) start [2025-03-06 15:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621516', 'tblTempUsageDetail_20' ) end [2025-03-06 15:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621516', 'tblTempVendorCDR_20' ) start [2025-03-06 15:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621516', 'tblTempVendorCDR_20' ) end [2025-03-06 15:51:21] Production.INFO: ProcessCDR(1,14621516,1,1,2) [2025-03-06 15:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14621516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 15:51:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14621516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 15:51:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14621516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 15:51:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14621516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 15:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621516', 'tblTempUsageDetail_20' ) start [2025-03-06 15:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621516', 'tblTempUsageDetail_20' ) end [2025-03-06 15:51:26] Production.ERROR: pbx prc_insertCDR start [2025-03-06 15:51:26] Production.ERROR: pbx prc_insertCDR end [2025-03-06 15:51:26] Production.INFO: ==9707== Releasing lock... [2025-03-06 15:51:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 15:51:26] Production.INFO: 66.75 MB #Memory Used# [2025-03-06 15:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 12:52:05 [end_date_ymd] => 2025-03-06 15:52:05 [RateCDR] => 1 ) [2025-03-06 15:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 12:52:05' and `end` < '2025-03-06 15:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 15:52:18] Production.INFO: count ==5141 [2025-03-06 15:52:20] Production.ERROR: pbx CDR StartTime 2025-03-06 12:52:05 - End Time 2025-03-06 15:52:05 [2025-03-06 15:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 15:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621521', 'tblTempUsageDetail_20' ) start [2025-03-06 15:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621521', 'tblTempUsageDetail_20' ) end [2025-03-06 15:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621521', 'tblTempVendorCDR_20' ) start [2025-03-06 15:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621521', 'tblTempVendorCDR_20' ) end [2025-03-06 15:52:21] Production.INFO: ProcessCDR(1,14621521,1,1,2) [2025-03-06 15:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14621521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 15:52:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14621521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 15:52:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14621521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 15:52:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14621521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 15:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621521', 'tblTempUsageDetail_20' ) start [2025-03-06 15:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621521', 'tblTempUsageDetail_20' ) end [2025-03-06 15:52:25] Production.ERROR: pbx prc_insertCDR start [2025-03-06 15:52:25] Production.ERROR: pbx prc_insertCDR end [2025-03-06 15:52:26] Production.INFO: ==9791== Releasing lock... [2025-03-06 15:52:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 15:52:26] Production.INFO: 66.5 MB #Memory Used# [2025-03-06 15:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 12:53:06 [end_date_ymd] => 2025-03-06 15:53:06 [RateCDR] => 1 ) [2025-03-06 15: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-03-06 12:53:06' and `end` < '2025-03-06 15: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-03-06 15:53:19] Production.INFO: count ==5131 [2025-03-06 15:53:21] Production.ERROR: pbx CDR StartTime 2025-03-06 12:53:06 - End Time 2025-03-06 15:53:06 [2025-03-06 15:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 15:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621526', 'tblTempUsageDetail_20' ) start [2025-03-06 15:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621526', 'tblTempUsageDetail_20' ) end [2025-03-06 15:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621526', 'tblTempVendorCDR_20' ) start [2025-03-06 15:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621526', 'tblTempVendorCDR_20' ) end [2025-03-06 15:53:21] Production.INFO: ProcessCDR(1,14621526,1,1,2) [2025-03-06 15:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14621526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 15:53:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14621526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 15:53:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14621526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 15:53:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14621526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 15:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621526', 'tblTempUsageDetail_20' ) start [2025-03-06 15:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621526', 'tblTempUsageDetail_20' ) end [2025-03-06 15:53:26] Production.ERROR: pbx prc_insertCDR start [2025-03-06 15:53:26] Production.ERROR: pbx prc_insertCDR end [2025-03-06 15:53:26] Production.INFO: ==9868== Releasing lock... [2025-03-06 15:53:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 15:53:26] Production.INFO: 66.5 MB #Memory Used# [2025-03-06 15:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 12:54:05 [end_date_ymd] => 2025-03-06 15:54:05 [RateCDR] => 1 ) [2025-03-06 15:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 12:54:05' and `end` < '2025-03-06 15:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 15:54:18] Production.INFO: count ==5124 [2025-03-06 15:54:20] Production.ERROR: pbx CDR StartTime 2025-03-06 12:54:05 - End Time 2025-03-06 15:54:05 [2025-03-06 15:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 15:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621531', 'tblTempUsageDetail_20' ) start [2025-03-06 15:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621531', 'tblTempUsageDetail_20' ) end [2025-03-06 15:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621531', 'tblTempVendorCDR_20' ) start [2025-03-06 15:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621531', 'tblTempVendorCDR_20' ) end [2025-03-06 15:54:21] Production.INFO: ProcessCDR(1,14621531,1,1,2) [2025-03-06 15:54:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14621531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 15:54:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14621531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 15:54:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14621531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 15:54:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14621531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 15:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621531', 'tblTempUsageDetail_20' ) start [2025-03-06 15:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621531', 'tblTempUsageDetail_20' ) end [2025-03-06 15:54:26] Production.ERROR: pbx prc_insertCDR start [2025-03-06 15:54:26] Production.ERROR: pbx prc_insertCDR end [2025-03-06 15:54:26] Production.INFO: ==9939== Releasing lock... [2025-03-06 15:54:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 15:54:26] Production.INFO: 66.25 MB #Memory Used# [2025-03-06 15:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 12:55:05 [end_date_ymd] => 2025-03-06 15:55:05 [RateCDR] => 1 ) [2025-03-06 15:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 12:55:05' and `end` < '2025-03-06 15:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 15:55:19] Production.INFO: count ==5119 [2025-03-06 15:55:21] Production.ERROR: pbx CDR StartTime 2025-03-06 12:55:05 - End Time 2025-03-06 15:55:05 [2025-03-06 15:55:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 15:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621534', 'tblTempUsageDetail_20' ) start [2025-03-06 15:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621534', 'tblTempUsageDetail_20' ) end [2025-03-06 15:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621534', 'tblTempVendorCDR_20' ) start [2025-03-06 15:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621534', 'tblTempVendorCDR_20' ) end [2025-03-06 15:55:21] Production.INFO: ProcessCDR(1,14621534,1,1,2) [2025-03-06 15:55:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14621534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 15:55:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14621534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 15:55:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14621534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 15:55:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14621534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 15:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621534', 'tblTempUsageDetail_20' ) start [2025-03-06 15:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621534', 'tblTempUsageDetail_20' ) end [2025-03-06 15:55:26] Production.ERROR: pbx prc_insertCDR start [2025-03-06 15:55:26] Production.ERROR: pbx prc_insertCDR end [2025-03-06 15:55:26] Production.INFO: ==10012== Releasing lock... [2025-03-06 15:55:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 15:55:26] Production.INFO: 66.25 MB #Memory Used# [2025-03-06 15:56:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 12:56:07 [end_date_ymd] => 2025-03-06 15:56:07 [RateCDR] => 1 ) [2025-03-06 15:56: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-03-06 12:56:07' and `end` < '2025-03-06 15:56: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-03-06 15:56:20] Production.INFO: count ==5131 [2025-03-06 15:56:22] Production.ERROR: pbx CDR StartTime 2025-03-06 12:56:07 - End Time 2025-03-06 15:56:07 [2025-03-06 15:56:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 15:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621541', 'tblTempUsageDetail_20' ) start [2025-03-06 15:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621541', 'tblTempUsageDetail_20' ) end [2025-03-06 15:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621541', 'tblTempVendorCDR_20' ) start [2025-03-06 15:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621541', 'tblTempVendorCDR_20' ) end [2025-03-06 15:56:22] Production.INFO: ProcessCDR(1,14621541,1,1,2) [2025-03-06 15:56:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14621541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 15:56:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14621541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 15:56:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14621541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 15:56:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14621541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 15:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621541', 'tblTempUsageDetail_20' ) start [2025-03-06 15:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621541', 'tblTempUsageDetail_20' ) end [2025-03-06 15:56:27] Production.ERROR: pbx prc_insertCDR start [2025-03-06 15:56:27] Production.ERROR: pbx prc_insertCDR end [2025-03-06 15:56:27] Production.INFO: ==10085== Releasing lock... [2025-03-06 15:56:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 15:56:27] Production.INFO: 66.5 MB #Memory Used# [2025-03-06 15:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 12:57:06 [end_date_ymd] => 2025-03-06 15:57:06 [RateCDR] => 1 ) [2025-03-06 15: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-03-06 12:57:06' and `end` < '2025-03-06 15: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-03-06 15:57:19] Production.INFO: count ==5139 [2025-03-06 15:57:21] Production.ERROR: pbx CDR StartTime 2025-03-06 12:57:06 - End Time 2025-03-06 15:57:06 [2025-03-06 15:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 15:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621546', 'tblTempUsageDetail_20' ) start [2025-03-06 15:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621546', 'tblTempUsageDetail_20' ) end [2025-03-06 15:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621546', 'tblTempVendorCDR_20' ) start [2025-03-06 15:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621546', 'tblTempVendorCDR_20' ) end [2025-03-06 15:57:21] Production.INFO: ProcessCDR(1,14621546,1,1,2) [2025-03-06 15:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14621546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 15:57:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14621546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 15:57:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14621546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 15:57:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14621546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 15:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621546', 'tblTempUsageDetail_20' ) start [2025-03-06 15:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621546', 'tblTempUsageDetail_20' ) end [2025-03-06 15:57:26] Production.ERROR: pbx prc_insertCDR start [2025-03-06 15:57:26] Production.ERROR: pbx prc_insertCDR end [2025-03-06 15:57:26] Production.INFO: ==10156== Releasing lock... [2025-03-06 15:57:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 15:57:26] Production.INFO: 66.5 MB #Memory Used# [2025-03-06 15:58:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 12:58:07 [end_date_ymd] => 2025-03-06 15:58:07 [RateCDR] => 1 ) [2025-03-06 15:58: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-03-06 12:58:07' and `end` < '2025-03-06 15:58: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-03-06 15:58:20] Production.INFO: count ==5135 [2025-03-06 15:58:22] Production.ERROR: pbx CDR StartTime 2025-03-06 12:58:07 - End Time 2025-03-06 15:58:07 [2025-03-06 15:58:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 15:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621551', 'tblTempUsageDetail_20' ) start [2025-03-06 15:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621551', 'tblTempUsageDetail_20' ) end [2025-03-06 15:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621551', 'tblTempVendorCDR_20' ) start [2025-03-06 15:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621551', 'tblTempVendorCDR_20' ) end [2025-03-06 15:58:22] Production.INFO: ProcessCDR(1,14621551,1,1,2) [2025-03-06 15:58:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14621551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 15:58:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14621551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 15:58:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14621551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 15:58:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14621551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 15:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621551', 'tblTempUsageDetail_20' ) start [2025-03-06 15:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621551', 'tblTempUsageDetail_20' ) end [2025-03-06 15:58:27] Production.ERROR: pbx prc_insertCDR start [2025-03-06 15:58:27] Production.ERROR: pbx prc_insertCDR end [2025-03-06 15:58:28] Production.INFO: ==10229== Releasing lock... [2025-03-06 15:58:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 15:58:28] Production.INFO: 66.5 MB #Memory Used# [2025-03-06 15:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 12:59:05 [end_date_ymd] => 2025-03-06 15:59:05 [RateCDR] => 1 ) [2025-03-06 15:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 12:59:05' and `end` < '2025-03-06 15:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 15:59:18] Production.INFO: count ==5120 [2025-03-06 15:59:20] Production.ERROR: pbx CDR StartTime 2025-03-06 12:59:05 - End Time 2025-03-06 15:59:05 [2025-03-06 15:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 15:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621556', 'tblTempUsageDetail_20' ) start [2025-03-06 15:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621556', 'tblTempUsageDetail_20' ) end [2025-03-06 15:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621556', 'tblTempVendorCDR_20' ) start [2025-03-06 15:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621556', 'tblTempVendorCDR_20' ) end [2025-03-06 15:59:21] Production.INFO: ProcessCDR(1,14621556,1,1,2) [2025-03-06 15:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14621556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 15:59:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14621556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 15:59:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14621556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 15:59:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14621556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 15:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621556', 'tblTempUsageDetail_20' ) start [2025-03-06 15:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621556', 'tblTempUsageDetail_20' ) end [2025-03-06 15:59:26] Production.ERROR: pbx prc_insertCDR start [2025-03-06 15:59:26] Production.ERROR: pbx prc_insertCDR end [2025-03-06 15:59:26] Production.INFO: ==10299== Releasing lock... [2025-03-06 15:59:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 15:59:26] Production.INFO: 66.25 MB #Memory Used# [2025-03-06 16:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 13:00:07 [end_date_ymd] => 2025-03-06 16:00:07 [RateCDR] => 1 ) [2025-03-06 16: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-03-06 13:00:07' and `end` < '2025-03-06 16: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-03-06 16:00:20] Production.INFO: count ==5131 [2025-03-06 16:00:22] Production.ERROR: pbx CDR StartTime 2025-03-06 13:00:07 - End Time 2025-03-06 16:00:07 [2025-03-06 16:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 16:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621562', 'tblTempUsageDetail_20' ) start [2025-03-06 16:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621562', 'tblTempUsageDetail_20' ) end [2025-03-06 16:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621562', 'tblTempVendorCDR_20' ) start [2025-03-06 16:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621562', 'tblTempVendorCDR_20' ) end [2025-03-06 16:00:22] Production.INFO: ProcessCDR(1,14621562,1,1,2) [2025-03-06 16:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14621562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 16:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14621562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 16:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14621562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 16:00:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14621562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 16:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621562', 'tblTempUsageDetail_20' ) start [2025-03-06 16:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621562', 'tblTempUsageDetail_20' ) end [2025-03-06 16:00:27] Production.ERROR: pbx prc_insertCDR start [2025-03-06 16:00:27] Production.ERROR: pbx prc_insertCDR end [2025-03-06 16:00:27] Production.INFO: ==10417== Releasing lock... [2025-03-06 16:00:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 16:00:27] Production.INFO: 66.5 MB #Memory Used# [2025-03-06 16:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 13:01:05 [end_date_ymd] => 2025-03-06 16:01:05 [RateCDR] => 1 ) [2025-03-06 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-03-06 13:01:05' and `end` < '2025-03-06 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-03-06 16:01:18] Production.INFO: count ==5127 [2025-03-06 16:01:20] Production.ERROR: pbx CDR StartTime 2025-03-06 13:01:05 - End Time 2025-03-06 16:01:05 [2025-03-06 16:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 16:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621567', 'tblTempUsageDetail_20' ) start [2025-03-06 16:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621567', 'tblTempUsageDetail_20' ) end [2025-03-06 16:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621567', 'tblTempVendorCDR_20' ) start [2025-03-06 16:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621567', 'tblTempVendorCDR_20' ) end [2025-03-06 16:01:20] Production.INFO: ProcessCDR(1,14621567,1,1,2) [2025-03-06 16:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14621567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 16:01:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14621567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 16:01:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14621567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 16:01:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14621567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 16:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621567', 'tblTempUsageDetail_20' ) start [2025-03-06 16:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621567', 'tblTempUsageDetail_20' ) end [2025-03-06 16:01:25] Production.ERROR: pbx prc_insertCDR start [2025-03-06 16:01:25] Production.ERROR: pbx prc_insertCDR end [2025-03-06 16:01:25] Production.INFO: ==10500== Releasing lock... [2025-03-06 16:01:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 16:01:25] Production.INFO: 66.25 MB #Memory Used# [2025-03-06 16:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 13:02:06 [end_date_ymd] => 2025-03-06 16:02:06 [RateCDR] => 1 ) [2025-03-06 16: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-03-06 13:02:06' and `end` < '2025-03-06 16: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-03-06 16:02:19] Production.INFO: count ==5126 [2025-03-06 16:02:21] Production.ERROR: pbx CDR StartTime 2025-03-06 13:02:06 - End Time 2025-03-06 16:02:06 [2025-03-06 16:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 16:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621572', 'tblTempUsageDetail_20' ) start [2025-03-06 16:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621572', 'tblTempUsageDetail_20' ) end [2025-03-06 16:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621572', 'tblTempVendorCDR_20' ) start [2025-03-06 16:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621572', 'tblTempVendorCDR_20' ) end [2025-03-06 16:02:21] Production.INFO: ProcessCDR(1,14621572,1,1,2) [2025-03-06 16:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14621572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 16:02:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14621572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 16:02:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14621572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 16:02:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14621572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 16:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621572', 'tblTempUsageDetail_20' ) start [2025-03-06 16:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621572', 'tblTempUsageDetail_20' ) end [2025-03-06 16:02:26] Production.ERROR: pbx prc_insertCDR start [2025-03-06 16:02:26] Production.ERROR: pbx prc_insertCDR end [2025-03-06 16:02:26] Production.INFO: ==10570== Releasing lock... [2025-03-06 16:02:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 16:02:26] Production.INFO: 66.25 MB #Memory Used# [2025-03-06 16:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 13:03:05 [end_date_ymd] => 2025-03-06 16:03:05 [RateCDR] => 1 ) [2025-03-06 16:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 13:03:05' and `end` < '2025-03-06 16:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 16:03:18] Production.INFO: count ==5104 [2025-03-06 16:03:20] Production.ERROR: pbx CDR StartTime 2025-03-06 13:03:05 - End Time 2025-03-06 16:03:05 [2025-03-06 16:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 16:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621577', 'tblTempUsageDetail_20' ) start [2025-03-06 16:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621577', 'tblTempUsageDetail_20' ) end [2025-03-06 16:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621577', 'tblTempVendorCDR_20' ) start [2025-03-06 16:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621577', 'tblTempVendorCDR_20' ) end [2025-03-06 16:03:21] Production.INFO: ProcessCDR(1,14621577,1,1,2) [2025-03-06 16:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14621577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 16:03:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14621577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 16:03:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14621577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 16:03:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14621577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 16:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621577', 'tblTempUsageDetail_20' ) start [2025-03-06 16:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621577', 'tblTempUsageDetail_20' ) end [2025-03-06 16:03:25] Production.ERROR: pbx prc_insertCDR start [2025-03-06 16:03:25] Production.ERROR: pbx prc_insertCDR end [2025-03-06 16:03:26] Production.INFO: ==10642== Releasing lock... [2025-03-06 16:03:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 16:03:26] Production.INFO: 66.25 MB #Memory Used# [2025-03-06 16:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 13:04:05 [end_date_ymd] => 2025-03-06 16:04:05 [RateCDR] => 1 ) [2025-03-06 16:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 13:04:05' and `end` < '2025-03-06 16:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 16:04:18] Production.INFO: count ==5111 [2025-03-06 16:04:20] Production.ERROR: pbx CDR StartTime 2025-03-06 13:04:05 - End Time 2025-03-06 16:04:05 [2025-03-06 16:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 16:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621582', 'tblTempUsageDetail_20' ) start [2025-03-06 16:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621582', 'tblTempUsageDetail_20' ) end [2025-03-06 16:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621582', 'tblTempVendorCDR_20' ) start [2025-03-06 16:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621582', 'tblTempVendorCDR_20' ) end [2025-03-06 16:04:21] Production.INFO: ProcessCDR(1,14621582,1,1,2) [2025-03-06 16:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14621582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 16:04:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14621582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 16:04:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14621582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 16:04:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14621582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 16:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621582', 'tblTempUsageDetail_20' ) start [2025-03-06 16:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621582', 'tblTempUsageDetail_20' ) end [2025-03-06 16:04:25] Production.ERROR: pbx prc_insertCDR start [2025-03-06 16:04:25] Production.ERROR: pbx prc_insertCDR end [2025-03-06 16:04:25] Production.INFO: ==10714== Releasing lock... [2025-03-06 16:04:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 16:04:25] Production.INFO: 66.25 MB #Memory Used# [2025-03-06 16:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 13:05:05 [end_date_ymd] => 2025-03-06 16:05:05 [RateCDR] => 1 ) [2025-03-06 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-03-06 13:05:05' and `end` < '2025-03-06 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-03-06 16:05:18] Production.INFO: count ==5105 [2025-03-06 16:05:20] Production.ERROR: pbx CDR StartTime 2025-03-06 13:05:05 - End Time 2025-03-06 16:05:05 [2025-03-06 16:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 16:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621587', 'tblTempUsageDetail_20' ) start [2025-03-06 16:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621587', 'tblTempUsageDetail_20' ) end [2025-03-06 16:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621587', 'tblTempVendorCDR_20' ) start [2025-03-06 16:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621587', 'tblTempVendorCDR_20' ) end [2025-03-06 16:05:21] Production.INFO: ProcessCDR(1,14621587,1,1,2) [2025-03-06 16:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14621587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 16:05:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14621587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 16:05:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14621587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 16:05:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14621587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 16:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621587', 'tblTempUsageDetail_20' ) start [2025-03-06 16:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621587', 'tblTempUsageDetail_20' ) end [2025-03-06 16:05:25] Production.ERROR: pbx prc_insertCDR start [2025-03-06 16:05:25] Production.ERROR: pbx prc_insertCDR end [2025-03-06 16:05:25] Production.INFO: ==10792== Releasing lock... [2025-03-06 16:05:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 16:05:25] Production.INFO: 66.25 MB #Memory Used# [2025-03-06 16:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 13:06:05 [end_date_ymd] => 2025-03-06 16:06:05 [RateCDR] => 1 ) [2025-03-06 16:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 13:06:05' and `end` < '2025-03-06 16:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 16:06:18] Production.INFO: count ==5107 [2025-03-06 16:06:20] Production.ERROR: pbx CDR StartTime 2025-03-06 13:06:05 - End Time 2025-03-06 16:06:05 [2025-03-06 16:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 16:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621592', 'tblTempUsageDetail_20' ) start [2025-03-06 16:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621592', 'tblTempUsageDetail_20' ) end [2025-03-06 16:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621592', 'tblTempVendorCDR_20' ) start [2025-03-06 16:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621592', 'tblTempVendorCDR_20' ) end [2025-03-06 16:06:20] Production.INFO: ProcessCDR(1,14621592,1,1,2) [2025-03-06 16:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14621592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 16:06:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14621592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 16:06:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14621592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 16:06:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14621592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 16:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621592', 'tblTempUsageDetail_20' ) start [2025-03-06 16:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621592', 'tblTempUsageDetail_20' ) end [2025-03-06 16:06:25] Production.ERROR: pbx prc_insertCDR start [2025-03-06 16:06:25] Production.ERROR: pbx prc_insertCDR end [2025-03-06 16:06:25] Production.INFO: ==10869== Releasing lock... [2025-03-06 16:06:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 16:06:25] Production.INFO: 66.25 MB #Memory Used# [2025-03-06 16:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 13:07:05 [end_date_ymd] => 2025-03-06 16:07:05 [RateCDR] => 1 ) [2025-03-06 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-03-06 13:07:05' and `end` < '2025-03-06 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-03-06 16:07:18] Production.INFO: count ==5105 [2025-03-06 16:07:20] Production.ERROR: pbx CDR StartTime 2025-03-06 13:07:05 - End Time 2025-03-06 16:07:05 [2025-03-06 16:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 16:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621597', 'tblTempUsageDetail_20' ) start [2025-03-06 16:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621597', 'tblTempUsageDetail_20' ) end [2025-03-06 16:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621597', 'tblTempVendorCDR_20' ) start [2025-03-06 16:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621597', 'tblTempVendorCDR_20' ) end [2025-03-06 16:07:20] Production.INFO: ProcessCDR(1,14621597,1,1,2) [2025-03-06 16:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14621597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 16:07:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14621597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 16:07:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14621597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 16:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14621597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 16:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621597', 'tblTempUsageDetail_20' ) start [2025-03-06 16:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621597', 'tblTempUsageDetail_20' ) end [2025-03-06 16:07:24] Production.ERROR: pbx prc_insertCDR start [2025-03-06 16:07:24] Production.ERROR: pbx prc_insertCDR end [2025-03-06 16:07:24] Production.INFO: ==10942== Releasing lock... [2025-03-06 16:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 16:07:24] Production.INFO: 66.25 MB #Memory Used# [2025-03-06 16:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 13:08:06 [end_date_ymd] => 2025-03-06 16:08:06 [RateCDR] => 1 ) [2025-03-06 16: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-03-06 13:08:06' and `end` < '2025-03-06 16: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-03-06 16:08:19] Production.INFO: count ==5109 [2025-03-06 16:08:21] Production.ERROR: pbx CDR StartTime 2025-03-06 13:08:06 - End Time 2025-03-06 16:08:06 [2025-03-06 16:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 16:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621602', 'tblTempUsageDetail_20' ) start [2025-03-06 16:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621602', 'tblTempUsageDetail_20' ) end [2025-03-06 16:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621602', 'tblTempVendorCDR_20' ) start [2025-03-06 16:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621602', 'tblTempVendorCDR_20' ) end [2025-03-06 16:08:21] Production.INFO: ProcessCDR(1,14621602,1,1,2) [2025-03-06 16:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14621602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 16:08:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14621602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 16:08:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14621602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 16:08:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14621602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 16:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621602', 'tblTempUsageDetail_20' ) start [2025-03-06 16:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621602', 'tblTempUsageDetail_20' ) end [2025-03-06 16:08:26] Production.ERROR: pbx prc_insertCDR start [2025-03-06 16:08:26] Production.ERROR: pbx prc_insertCDR end [2025-03-06 16:08:26] Production.INFO: ==11019== Releasing lock... [2025-03-06 16:08:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 16:08:26] Production.INFO: 66.25 MB #Memory Used# [2025-03-06 16:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 13:09:05 [end_date_ymd] => 2025-03-06 16:09:05 [RateCDR] => 1 ) [2025-03-06 16:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 13:09:05' and `end` < '2025-03-06 16:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 16:09:18] Production.INFO: count ==5116 [2025-03-06 16:09:21] Production.ERROR: pbx CDR StartTime 2025-03-06 13:09:05 - End Time 2025-03-06 16:09:05 [2025-03-06 16:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 16:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621607', 'tblTempUsageDetail_20' ) start [2025-03-06 16:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621607', 'tblTempUsageDetail_20' ) end [2025-03-06 16:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621607', 'tblTempVendorCDR_20' ) start [2025-03-06 16:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621607', 'tblTempVendorCDR_20' ) end [2025-03-06 16:09:21] Production.INFO: ProcessCDR(1,14621607,1,1,2) [2025-03-06 16:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14621607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 16:09:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14621607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 16:09:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14621607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 16:09:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14621607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 16:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621607', 'tblTempUsageDetail_20' ) start [2025-03-06 16:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621607', 'tblTempUsageDetail_20' ) end [2025-03-06 16:09:26] Production.ERROR: pbx prc_insertCDR start [2025-03-06 16:09:26] Production.ERROR: pbx prc_insertCDR end [2025-03-06 16:09:26] Production.INFO: ==11089== Releasing lock... [2025-03-06 16:09:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 16:09:26] Production.INFO: 66.25 MB #Memory Used# [2025-03-06 16:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 13:10:07 [end_date_ymd] => 2025-03-06 16:10:07 [RateCDR] => 1 ) [2025-03-06 16:10: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-03-06 13:10:07' and `end` < '2025-03-06 16:10: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-03-06 16:10:20] Production.INFO: count ==5107 [2025-03-06 16:10:22] Production.ERROR: pbx CDR StartTime 2025-03-06 13:10:07 - End Time 2025-03-06 16:10:07 [2025-03-06 16:10:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 16:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621613', 'tblTempUsageDetail_20' ) start [2025-03-06 16:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621613', 'tblTempUsageDetail_20' ) end [2025-03-06 16:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621613', 'tblTempVendorCDR_20' ) start [2025-03-06 16:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621613', 'tblTempVendorCDR_20' ) end [2025-03-06 16:10:22] Production.INFO: ProcessCDR(1,14621613,1,1,2) [2025-03-06 16:10:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14621613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 16:10:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14621613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 16:10:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14621613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 16:10:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14621613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 16:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621613', 'tblTempUsageDetail_20' ) start [2025-03-06 16:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621613', 'tblTempUsageDetail_20' ) end [2025-03-06 16:10:27] Production.ERROR: pbx prc_insertCDR start [2025-03-06 16:10:27] Production.ERROR: pbx prc_insertCDR end [2025-03-06 16:10:27] Production.INFO: ==11168== Releasing lock... [2025-03-06 16:10:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 16:10:27] Production.INFO: 66.25 MB #Memory Used# [2025-03-06 16:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 13:11:05 [end_date_ymd] => 2025-03-06 16:11:05 [RateCDR] => 1 ) [2025-03-06 16:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 13:11:05' and `end` < '2025-03-06 16:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 16:11:18] Production.INFO: count ==5151 [2025-03-06 16:11:20] Production.ERROR: pbx CDR StartTime 2025-03-06 13:11:05 - End Time 2025-03-06 16:11:05 [2025-03-06 16:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 16:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621618', 'tblTempUsageDetail_20' ) start [2025-03-06 16:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621618', 'tblTempUsageDetail_20' ) end [2025-03-06 16:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621618', 'tblTempVendorCDR_20' ) start [2025-03-06 16:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621618', 'tblTempVendorCDR_20' ) end [2025-03-06 16:11:20] Production.INFO: ProcessCDR(1,14621618,1,1,2) [2025-03-06 16:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14621618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 16:11:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14621618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 16:11:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14621618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 16:11:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14621618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 16:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621618', 'tblTempUsageDetail_20' ) start [2025-03-06 16:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621618', 'tblTempUsageDetail_20' ) end [2025-03-06 16:11:25] Production.ERROR: pbx prc_insertCDR start [2025-03-06 16:11:25] Production.ERROR: pbx prc_insertCDR end [2025-03-06 16:11:25] Production.INFO: ==11239== Releasing lock... [2025-03-06 16:11:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 16:11:25] Production.INFO: 66.5 MB #Memory Used# [2025-03-06 16:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 13:12:05 [end_date_ymd] => 2025-03-06 16:12:05 [RateCDR] => 1 ) [2025-03-06 16:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 13:12:05' and `end` < '2025-03-06 16:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 16:12:18] Production.INFO: count ==5138 [2025-03-06 16:12:20] Production.ERROR: pbx CDR StartTime 2025-03-06 13:12:05 - End Time 2025-03-06 16:12:05 [2025-03-06 16:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 16:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621623', 'tblTempUsageDetail_20' ) start [2025-03-06 16:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621623', 'tblTempUsageDetail_20' ) end [2025-03-06 16:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621623', 'tblTempVendorCDR_20' ) start [2025-03-06 16:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621623', 'tblTempVendorCDR_20' ) end [2025-03-06 16:12:21] Production.INFO: ProcessCDR(1,14621623,1,1,2) [2025-03-06 16:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14621623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 16:12:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14621623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 16:12:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14621623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 16:12:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14621623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 16:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621623', 'tblTempUsageDetail_20' ) start [2025-03-06 16:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621623', 'tblTempUsageDetail_20' ) end [2025-03-06 16:12:25] Production.ERROR: pbx prc_insertCDR start [2025-03-06 16:12:25] Production.ERROR: pbx prc_insertCDR end [2025-03-06 16:12:26] Production.INFO: ==11317== Releasing lock... [2025-03-06 16:12:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 16:12:26] Production.INFO: 66.5 MB #Memory Used# [2025-03-06 16:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 13:13:05 [end_date_ymd] => 2025-03-06 16:13:05 [RateCDR] => 1 ) [2025-03-06 16:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 13:13:05' and `end` < '2025-03-06 16:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 16:13:18] Production.INFO: count ==5119 [2025-03-06 16:13:20] Production.ERROR: pbx CDR StartTime 2025-03-06 13:13:05 - End Time 2025-03-06 16:13:05 [2025-03-06 16:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 16:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621628', 'tblTempUsageDetail_20' ) start [2025-03-06 16:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621628', 'tblTempUsageDetail_20' ) end [2025-03-06 16:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621628', 'tblTempVendorCDR_20' ) start [2025-03-06 16:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621628', 'tblTempVendorCDR_20' ) end [2025-03-06 16:13:20] Production.INFO: ProcessCDR(1,14621628,1,1,2) [2025-03-06 16:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14621628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 16:13:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14621628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 16:13:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14621628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 16:13:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14621628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 16:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621628', 'tblTempUsageDetail_20' ) start [2025-03-06 16:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621628', 'tblTempUsageDetail_20' ) end [2025-03-06 16:13:25] Production.ERROR: pbx prc_insertCDR start [2025-03-06 16:13:25] Production.ERROR: pbx prc_insertCDR end [2025-03-06 16:13:25] Production.INFO: ==11387== Releasing lock... [2025-03-06 16:13:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 16:13:25] Production.INFO: 66.25 MB #Memory Used# [2025-03-06 16:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 13:14:05 [end_date_ymd] => 2025-03-06 16:14:05 [RateCDR] => 1 ) [2025-03-06 16:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 13:14:05' and `end` < '2025-03-06 16:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 16:14:18] Production.INFO: count ==5119 [2025-03-06 16:14:20] Production.ERROR: pbx CDR StartTime 2025-03-06 13:14:05 - End Time 2025-03-06 16:14:05 [2025-03-06 16:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 16:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621633', 'tblTempUsageDetail_20' ) start [2025-03-06 16:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621633', 'tblTempUsageDetail_20' ) end [2025-03-06 16:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621633', 'tblTempVendorCDR_20' ) start [2025-03-06 16:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621633', 'tblTempVendorCDR_20' ) end [2025-03-06 16:14:20] Production.INFO: ProcessCDR(1,14621633,1,1,2) [2025-03-06 16:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14621633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 16:14:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14621633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 16:14:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14621633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 16:14:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14621633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 16:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621633', 'tblTempUsageDetail_20' ) start [2025-03-06 16:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621633', 'tblTempUsageDetail_20' ) end [2025-03-06 16:14:26] Production.ERROR: pbx prc_insertCDR start [2025-03-06 16:14:26] Production.ERROR: pbx prc_insertCDR end [2025-03-06 16:14:26] Production.INFO: ==11458== Releasing lock... [2025-03-06 16:14:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 16:14:26] Production.INFO: 66.25 MB #Memory Used# [2025-03-06 16:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 13:15:05 [end_date_ymd] => 2025-03-06 16:15:05 [RateCDR] => 1 ) [2025-03-06 16:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 13:15:05' and `end` < '2025-03-06 16:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 16:15:18] Production.INFO: count ==5130 [2025-03-06 16:15:20] Production.ERROR: pbx CDR StartTime 2025-03-06 13:15:05 - End Time 2025-03-06 16:15:05 [2025-03-06 16:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 16:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621638', 'tblTempUsageDetail_20' ) start [2025-03-06 16:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621638', 'tblTempUsageDetail_20' ) end [2025-03-06 16:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621638', 'tblTempVendorCDR_20' ) start [2025-03-06 16:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621638', 'tblTempVendorCDR_20' ) end [2025-03-06 16:15:21] Production.INFO: ProcessCDR(1,14621638,1,1,2) [2025-03-06 16:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14621638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 16:15:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14621638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 16:15:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14621638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 16:15:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14621638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 16:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621638', 'tblTempUsageDetail_20' ) start [2025-03-06 16:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621638', 'tblTempUsageDetail_20' ) end [2025-03-06 16:15:25] Production.ERROR: pbx prc_insertCDR start [2025-03-06 16:15:26] Production.ERROR: pbx prc_insertCDR end [2025-03-06 16:15:26] Production.INFO: ==11531== Releasing lock... [2025-03-06 16:15:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 16:15:26] Production.INFO: 66.25 MB #Memory Used# [2025-03-06 16:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 13:16:05 [end_date_ymd] => 2025-03-06 16:16:05 [RateCDR] => 1 ) [2025-03-06 16:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 13:16:05' and `end` < '2025-03-06 16:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 16:16:19] Production.INFO: count ==5116 [2025-03-06 16:16:21] Production.ERROR: pbx CDR StartTime 2025-03-06 13:16:05 - End Time 2025-03-06 16:16:05 [2025-03-06 16:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 16:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621643', 'tblTempUsageDetail_20' ) start [2025-03-06 16:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621643', 'tblTempUsageDetail_20' ) end [2025-03-06 16:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621643', 'tblTempVendorCDR_20' ) start [2025-03-06 16:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621643', 'tblTempVendorCDR_20' ) end [2025-03-06 16:16:21] Production.INFO: ProcessCDR(1,14621643,1,1,2) [2025-03-06 16:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14621643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 16:16:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14621643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 16:16:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14621643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 16:16:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14621643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 16:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621643', 'tblTempUsageDetail_20' ) start [2025-03-06 16:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621643', 'tblTempUsageDetail_20' ) end [2025-03-06 16:16:26] Production.ERROR: pbx prc_insertCDR start [2025-03-06 16:16:26] Production.ERROR: pbx prc_insertCDR end [2025-03-06 16:16:26] Production.INFO: ==11640== Releasing lock... [2025-03-06 16:16:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 16:16:26] Production.INFO: 66.25 MB #Memory Used# [2025-03-06 16:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 13:17:05 [end_date_ymd] => 2025-03-06 16:17:05 [RateCDR] => 1 ) [2025-03-06 16:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 13:17:05' and `end` < '2025-03-06 16:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 16:17:18] Production.INFO: count ==5112 [2025-03-06 16:17:21] Production.ERROR: pbx CDR StartTime 2025-03-06 13:17:05 - End Time 2025-03-06 16:17:05 [2025-03-06 16:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 16:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621648', 'tblTempUsageDetail_20' ) start [2025-03-06 16:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621648', 'tblTempUsageDetail_20' ) end [2025-03-06 16:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621648', 'tblTempVendorCDR_20' ) start [2025-03-06 16:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621648', 'tblTempVendorCDR_20' ) end [2025-03-06 16:17:21] Production.INFO: ProcessCDR(1,14621648,1,1,2) [2025-03-06 16:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14621648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 16:17:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14621648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 16:17:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14621648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 16:17:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14621648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 16:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621648', 'tblTempUsageDetail_20' ) start [2025-03-06 16:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621648', 'tblTempUsageDetail_20' ) end [2025-03-06 16:17:26] Production.ERROR: pbx prc_insertCDR start [2025-03-06 16:17:26] Production.ERROR: pbx prc_insertCDR end [2025-03-06 16:17:26] Production.INFO: ==11715== Releasing lock... [2025-03-06 16:17:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 16:17:26] Production.INFO: 66.25 MB #Memory Used# [2025-03-06 16:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 13:18:06 [end_date_ymd] => 2025-03-06 16:18:06 [RateCDR] => 1 ) [2025-03-06 16: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-03-06 13:18:06' and `end` < '2025-03-06 16: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-03-06 16:18:19] Production.INFO: count ==5065 [2025-03-06 16:18:21] Production.ERROR: pbx CDR StartTime 2025-03-06 13:18:06 - End Time 2025-03-06 16:18:06 [2025-03-06 16:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 16:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621653', 'tblTempUsageDetail_20' ) start [2025-03-06 16:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621653', 'tblTempUsageDetail_20' ) end [2025-03-06 16:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621653', 'tblTempVendorCDR_20' ) start [2025-03-06 16:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621653', 'tblTempVendorCDR_20' ) end [2025-03-06 16:18:21] Production.INFO: ProcessCDR(1,14621653,1,1,2) [2025-03-06 16:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14621653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 16:18:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14621653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 16:18:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14621653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 16:18:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14621653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 16:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621653', 'tblTempUsageDetail_20' ) start [2025-03-06 16:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621653', 'tblTempUsageDetail_20' ) end [2025-03-06 16:18:26] Production.ERROR: pbx prc_insertCDR start [2025-03-06 16:18:26] Production.ERROR: pbx prc_insertCDR end [2025-03-06 16:18:26] Production.INFO: ==11796== Releasing lock... [2025-03-06 16:18:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 16:18:26] Production.INFO: 66 MB #Memory Used# [2025-03-06 16:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 13:19:05 [end_date_ymd] => 2025-03-06 16:19:05 [RateCDR] => 1 ) [2025-03-06 16:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 13:19:05' and `end` < '2025-03-06 16:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 16:19:18] Production.INFO: count ==5074 [2025-03-06 16:19:21] Production.ERROR: pbx CDR StartTime 2025-03-06 13:19:05 - End Time 2025-03-06 16:19:05 [2025-03-06 16:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 16:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621658', 'tblTempUsageDetail_20' ) start [2025-03-06 16:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621658', 'tblTempUsageDetail_20' ) end [2025-03-06 16:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621658', 'tblTempVendorCDR_20' ) start [2025-03-06 16:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621658', 'tblTempVendorCDR_20' ) end [2025-03-06 16:19:21] Production.INFO: ProcessCDR(1,14621658,1,1,2) [2025-03-06 16:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14621658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 16:19:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14621658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 16:19:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14621658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 16:19:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14621658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 16:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621658', 'tblTempUsageDetail_20' ) start [2025-03-06 16:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621658', 'tblTempUsageDetail_20' ) end [2025-03-06 16:19:26] Production.ERROR: pbx prc_insertCDR start [2025-03-06 16:19:26] Production.ERROR: pbx prc_insertCDR end [2025-03-06 16:19:26] Production.INFO: ==11871== Releasing lock... [2025-03-06 16:19:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 16:19:26] Production.INFO: 66 MB #Memory Used# [2025-03-06 16:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 13:20:06 [end_date_ymd] => 2025-03-06 16:20:06 [RateCDR] => 1 ) [2025-03-06 16:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 13:20:06' and `end` < '2025-03-06 16:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 16:20:19] Production.INFO: count ==5059 [2025-03-06 16:20:21] Production.ERROR: pbx CDR StartTime 2025-03-06 13:20:06 - End Time 2025-03-06 16:20:06 [2025-03-06 16:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 16:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621664', 'tblTempUsageDetail_20' ) start [2025-03-06 16:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621664', 'tblTempUsageDetail_20' ) end [2025-03-06 16:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621664', 'tblTempVendorCDR_20' ) start [2025-03-06 16:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621664', 'tblTempVendorCDR_20' ) end [2025-03-06 16:20:21] Production.INFO: ProcessCDR(1,14621664,1,1,2) [2025-03-06 16:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14621664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 16:20:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14621664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 16:20:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14621664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 16:20:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14621664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 16:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621664', 'tblTempUsageDetail_20' ) start [2025-03-06 16:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621664', 'tblTempUsageDetail_20' ) end [2025-03-06 16:20:26] Production.ERROR: pbx prc_insertCDR start [2025-03-06 16:20:26] Production.ERROR: pbx prc_insertCDR end [2025-03-06 16:20:26] Production.INFO: ==11942== Releasing lock... [2025-03-06 16:20:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 16:20:26] Production.INFO: 65.75 MB #Memory Used# [2025-03-06 16:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 13:21:05 [end_date_ymd] => 2025-03-06 16:21:05 [RateCDR] => 1 ) [2025-03-06 16:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 13:21:05' and `end` < '2025-03-06 16:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 16:21:18] Production.INFO: count ==5031 [2025-03-06 16:21:21] Production.ERROR: pbx CDR StartTime 2025-03-06 13:21:05 - End Time 2025-03-06 16:21:05 [2025-03-06 16:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 16:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621669', 'tblTempUsageDetail_20' ) start [2025-03-06 16:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621669', 'tblTempUsageDetail_20' ) end [2025-03-06 16:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621669', 'tblTempVendorCDR_20' ) start [2025-03-06 16:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621669', 'tblTempVendorCDR_20' ) end [2025-03-06 16:21:21] Production.INFO: ProcessCDR(1,14621669,1,1,2) [2025-03-06 16:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14621669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 16:21:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14621669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 16:21:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14621669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 16:21:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14621669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 16:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621669', 'tblTempUsageDetail_20' ) start [2025-03-06 16:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621669', 'tblTempUsageDetail_20' ) end [2025-03-06 16:21:26] Production.ERROR: pbx prc_insertCDR start [2025-03-06 16:21:26] Production.ERROR: pbx prc_insertCDR end [2025-03-06 16:21:26] Production.INFO: ==12021== Releasing lock... [2025-03-06 16:21:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 16:21:26] Production.INFO: 65.75 MB #Memory Used# [2025-03-06 16:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 13:22:06 [end_date_ymd] => 2025-03-06 16:22:06 [RateCDR] => 1 ) [2025-03-06 16:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 13:22:06' and `end` < '2025-03-06 16:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 16:22:19] Production.INFO: count ==5042 [2025-03-06 16:22:21] Production.ERROR: pbx CDR StartTime 2025-03-06 13:22:06 - End Time 2025-03-06 16:22:06 [2025-03-06 16:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 16:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621674', 'tblTempUsageDetail_20' ) start [2025-03-06 16:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621674', 'tblTempUsageDetail_20' ) end [2025-03-06 16:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621674', 'tblTempVendorCDR_20' ) start [2025-03-06 16:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621674', 'tblTempVendorCDR_20' ) end [2025-03-06 16:22:21] Production.INFO: ProcessCDR(1,14621674,1,1,2) [2025-03-06 16:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14621674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 16:22:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14621674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 16:22:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14621674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 16:22:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14621674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 16:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621674', 'tblTempUsageDetail_20' ) start [2025-03-06 16:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621674', 'tblTempUsageDetail_20' ) end [2025-03-06 16:22:26] Production.ERROR: pbx prc_insertCDR start [2025-03-06 16:22:26] Production.ERROR: pbx prc_insertCDR end [2025-03-06 16:22:26] Production.INFO: ==12093== Releasing lock... [2025-03-06 16:22:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 16:22:26] Production.INFO: 65.75 MB #Memory Used# [2025-03-06 16:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 13:23:06 [end_date_ymd] => 2025-03-06 16:23:06 [RateCDR] => 1 ) [2025-03-06 16:23:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 13:23:06' and `end` < '2025-03-06 16:23:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 16:23:19] Production.INFO: count ==5048 [2025-03-06 16:23:21] Production.ERROR: pbx CDR StartTime 2025-03-06 13:23:06 - End Time 2025-03-06 16:23:06 [2025-03-06 16:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 16:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621679', 'tblTempUsageDetail_20' ) start [2025-03-06 16:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621679', 'tblTempUsageDetail_20' ) end [2025-03-06 16:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621679', 'tblTempVendorCDR_20' ) start [2025-03-06 16:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621679', 'tblTempVendorCDR_20' ) end [2025-03-06 16:23:21] Production.INFO: ProcessCDR(1,14621679,1,1,2) [2025-03-06 16:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14621679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 16:23:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14621679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 16:23:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14621679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 16:23:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14621679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 16:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621679', 'tblTempUsageDetail_20' ) start [2025-03-06 16:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621679', 'tblTempUsageDetail_20' ) end [2025-03-06 16:23:26] Production.ERROR: pbx prc_insertCDR start [2025-03-06 16:23:26] Production.ERROR: pbx prc_insertCDR end [2025-03-06 16:23:26] Production.INFO: ==12167== Releasing lock... [2025-03-06 16:23:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 16:23:26] Production.INFO: 65.75 MB #Memory Used# [2025-03-06 16:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 13:24:05 [end_date_ymd] => 2025-03-06 16:24:05 [RateCDR] => 1 ) [2025-03-06 16:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 13:24:05' and `end` < '2025-03-06 16:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 16:24:18] Production.INFO: count ==5044 [2025-03-06 16:24:20] Production.ERROR: pbx CDR StartTime 2025-03-06 13:24:05 - End Time 2025-03-06 16:24:05 [2025-03-06 16:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 16:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621684', 'tblTempUsageDetail_20' ) start [2025-03-06 16:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621684', 'tblTempUsageDetail_20' ) end [2025-03-06 16:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621684', 'tblTempVendorCDR_20' ) start [2025-03-06 16:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621684', 'tblTempVendorCDR_20' ) end [2025-03-06 16:24:20] Production.INFO: ProcessCDR(1,14621684,1,1,2) [2025-03-06 16:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14621684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 16:24:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14621684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 16:24:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14621684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 16:24:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14621684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 16:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621684', 'tblTempUsageDetail_20' ) start [2025-03-06 16:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621684', 'tblTempUsageDetail_20' ) end [2025-03-06 16:24:25] Production.ERROR: pbx prc_insertCDR start [2025-03-06 16:24:25] Production.ERROR: pbx prc_insertCDR end [2025-03-06 16:24:25] Production.INFO: ==12238== Releasing lock... [2025-03-06 16:24:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 16:24:25] Production.INFO: 65.75 MB #Memory Used# [2025-03-06 16:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 13:25:06 [end_date_ymd] => 2025-03-06 16:25:06 [RateCDR] => 1 ) [2025-03-06 16: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-03-06 13:25:06' and `end` < '2025-03-06 16: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-03-06 16:25:19] Production.INFO: count ==5042 [2025-03-06 16:25:21] Production.ERROR: pbx CDR StartTime 2025-03-06 13:25:06 - End Time 2025-03-06 16:25:06 [2025-03-06 16:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 16:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621689', 'tblTempUsageDetail_20' ) start [2025-03-06 16:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621689', 'tblTempUsageDetail_20' ) end [2025-03-06 16:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621689', 'tblTempVendorCDR_20' ) start [2025-03-06 16:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621689', 'tblTempVendorCDR_20' ) end [2025-03-06 16:25:21] Production.INFO: ProcessCDR(1,14621689,1,1,2) [2025-03-06 16:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14621689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 16:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14621689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 16:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14621689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 16:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14621689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 16:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621689', 'tblTempUsageDetail_20' ) start [2025-03-06 16:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621689', 'tblTempUsageDetail_20' ) end [2025-03-06 16:25:26] Production.ERROR: pbx prc_insertCDR start [2025-03-06 16:25:26] Production.ERROR: pbx prc_insertCDR end [2025-03-06 16:25:26] Production.INFO: ==12315== Releasing lock... [2025-03-06 16:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 16:25:26] Production.INFO: 65.75 MB #Memory Used# [2025-03-06 16:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 13:26:06 [end_date_ymd] => 2025-03-06 16:26:06 [RateCDR] => 1 ) [2025-03-06 16: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-03-06 13:26:06' and `end` < '2025-03-06 16: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-03-06 16:26:19] Production.INFO: count ==5056 [2025-03-06 16:26:21] Production.ERROR: pbx CDR StartTime 2025-03-06 13:26:06 - End Time 2025-03-06 16:26:06 [2025-03-06 16:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 16:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621694', 'tblTempUsageDetail_20' ) start [2025-03-06 16:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621694', 'tblTempUsageDetail_20' ) end [2025-03-06 16:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621694', 'tblTempVendorCDR_20' ) start [2025-03-06 16:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621694', 'tblTempVendorCDR_20' ) end [2025-03-06 16:26:21] Production.INFO: ProcessCDR(1,14621694,1,1,2) [2025-03-06 16:26:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14621694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 16:26:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14621694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 16:26:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14621694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 16:26:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14621694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 16:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621694', 'tblTempUsageDetail_20' ) start [2025-03-06 16:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621694', 'tblTempUsageDetail_20' ) end [2025-03-06 16:26:26] Production.ERROR: pbx prc_insertCDR start [2025-03-06 16:26:26] Production.ERROR: pbx prc_insertCDR end [2025-03-06 16:26:26] Production.INFO: ==12389== Releasing lock... [2025-03-06 16:26:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 16:26:26] Production.INFO: 65.75 MB #Memory Used# [2025-03-06 16:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 13:27:05 [end_date_ymd] => 2025-03-06 16:27:05 [RateCDR] => 1 ) [2025-03-06 16:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 13:27:05' and `end` < '2025-03-06 16:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 16:27:18] Production.INFO: count ==5060 [2025-03-06 16:27:20] Production.ERROR: pbx CDR StartTime 2025-03-06 13:27:05 - End Time 2025-03-06 16:27:05 [2025-03-06 16:27:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 16:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621699', 'tblTempUsageDetail_20' ) start [2025-03-06 16:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621699', 'tblTempUsageDetail_20' ) end [2025-03-06 16:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621699', 'tblTempVendorCDR_20' ) start [2025-03-06 16:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621699', 'tblTempVendorCDR_20' ) end [2025-03-06 16:27:20] Production.INFO: ProcessCDR(1,14621699,1,1,2) [2025-03-06 16:27:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14621699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 16:27:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14621699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 16:27:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14621699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 16:27:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14621699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 16:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621699', 'tblTempUsageDetail_20' ) start [2025-03-06 16:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621699', 'tblTempUsageDetail_20' ) end [2025-03-06 16:27:25] Production.ERROR: pbx prc_insertCDR start [2025-03-06 16:27:25] Production.ERROR: pbx prc_insertCDR end [2025-03-06 16:27:25] Production.INFO: ==12461== Releasing lock... [2025-03-06 16:27:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 16:27:25] Production.INFO: 65.75 MB #Memory Used# [2025-03-06 16:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 13:28:05 [end_date_ymd] => 2025-03-06 16:28:05 [RateCDR] => 1 ) [2025-03-06 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-03-06 13:28:05' and `end` < '2025-03-06 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-03-06 16:28:18] Production.INFO: count ==5092 [2025-03-06 16:28:20] Production.ERROR: pbx CDR StartTime 2025-03-06 13:28:05 - End Time 2025-03-06 16:28:05 [2025-03-06 16:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 16:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621704', 'tblTempUsageDetail_20' ) start [2025-03-06 16:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621704', 'tblTempUsageDetail_20' ) end [2025-03-06 16:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621704', 'tblTempVendorCDR_20' ) start [2025-03-06 16:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621704', 'tblTempVendorCDR_20' ) end [2025-03-06 16:28:20] Production.INFO: ProcessCDR(1,14621704,1,1,2) [2025-03-06 16:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14621704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 16:28:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14621704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 16:28:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14621704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 16:28:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14621704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 16:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621704', 'tblTempUsageDetail_20' ) start [2025-03-06 16:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621704', 'tblTempUsageDetail_20' ) end [2025-03-06 16:28:25] Production.ERROR: pbx prc_insertCDR start [2025-03-06 16:28:25] Production.ERROR: pbx prc_insertCDR end [2025-03-06 16:28:25] Production.INFO: ==12531== Releasing lock... [2025-03-06 16:28:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 16:28:25] Production.INFO: 66 MB #Memory Used# [2025-03-06 16:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 13:29:05 [end_date_ymd] => 2025-03-06 16:29:05 [RateCDR] => 1 ) [2025-03-06 16:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 13:29:05' and `end` < '2025-03-06 16:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 16:29:18] Production.INFO: count ==5085 [2025-03-06 16:29:20] Production.ERROR: pbx CDR StartTime 2025-03-06 13:29:05 - End Time 2025-03-06 16:29:05 [2025-03-06 16:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 16:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621709', 'tblTempUsageDetail_20' ) start [2025-03-06 16:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621709', 'tblTempUsageDetail_20' ) end [2025-03-06 16:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621709', 'tblTempVendorCDR_20' ) start [2025-03-06 16:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621709', 'tblTempVendorCDR_20' ) end [2025-03-06 16:29:21] Production.INFO: ProcessCDR(1,14621709,1,1,2) [2025-03-06 16:29:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14621709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 16:29:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14621709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 16:29:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14621709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 16:29:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14621709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 16:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621709', 'tblTempUsageDetail_20' ) start [2025-03-06 16:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621709', 'tblTempUsageDetail_20' ) end [2025-03-06 16:29:25] Production.ERROR: pbx prc_insertCDR start [2025-03-06 16:29:25] Production.ERROR: pbx prc_insertCDR end [2025-03-06 16:29:25] Production.INFO: ==12606== Releasing lock... [2025-03-06 16:29:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 16:29:25] Production.INFO: 66 MB #Memory Used# [2025-03-06 16:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 13:30:06 [end_date_ymd] => 2025-03-06 16:30:06 [RateCDR] => 1 ) [2025-03-06 16:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 13:30:06' and `end` < '2025-03-06 16:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 16:30:19] Production.INFO: count ==5086 [2025-03-06 16:30:21] Production.ERROR: pbx CDR StartTime 2025-03-06 13:30:06 - End Time 2025-03-06 16:30:06 [2025-03-06 16:30:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 16:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621715', 'tblTempUsageDetail_20' ) start [2025-03-06 16:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621715', 'tblTempUsageDetail_20' ) end [2025-03-06 16:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621715', 'tblTempVendorCDR_20' ) start [2025-03-06 16:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621715', 'tblTempVendorCDR_20' ) end [2025-03-06 16:30:21] Production.INFO: ProcessCDR(1,14621715,1,1,2) [2025-03-06 16:30:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14621715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 16:30:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14621715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 16:30:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14621715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 16:30:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14621715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 16:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621715', 'tblTempUsageDetail_20' ) start [2025-03-06 16:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621715', 'tblTempUsageDetail_20' ) end [2025-03-06 16:30:27] Production.ERROR: pbx prc_insertCDR start [2025-03-06 16:30:27] Production.ERROR: pbx prc_insertCDR end [2025-03-06 16:30:27] Production.INFO: ==12686== Releasing lock... [2025-03-06 16:30:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 16:30:27] Production.INFO: 66 MB #Memory Used# [2025-03-06 16:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 13:31:05 [end_date_ymd] => 2025-03-06 16:31:05 [RateCDR] => 1 ) [2025-03-06 16:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 13:31:05' and `end` < '2025-03-06 16:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 16:31:18] Production.INFO: count ==5127 [2025-03-06 16:31:20] Production.ERROR: pbx CDR StartTime 2025-03-06 13:31:05 - End Time 2025-03-06 16:31:05 [2025-03-06 16:31:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 16:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621720', 'tblTempUsageDetail_20' ) start [2025-03-06 16:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621720', 'tblTempUsageDetail_20' ) end [2025-03-06 16:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621720', 'tblTempVendorCDR_20' ) start [2025-03-06 16:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621720', 'tblTempVendorCDR_20' ) end [2025-03-06 16:31:21] Production.INFO: ProcessCDR(1,14621720,1,1,2) [2025-03-06 16:31:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14621720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 16:31:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14621720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 16:31:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14621720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 16:31:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14621720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 16:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621720', 'tblTempUsageDetail_20' ) start [2025-03-06 16:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621720', 'tblTempUsageDetail_20' ) end [2025-03-06 16:31:25] Production.ERROR: pbx prc_insertCDR start [2025-03-06 16:31:25] Production.ERROR: pbx prc_insertCDR end [2025-03-06 16:31:25] Production.INFO: ==12810== Releasing lock... [2025-03-06 16:31:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 16:31:25] Production.INFO: 66.25 MB #Memory Used# [2025-03-06 16:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 13:32:05 [end_date_ymd] => 2025-03-06 16:32:05 [RateCDR] => 1 ) [2025-03-06 16:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 13:32:05' and `end` < '2025-03-06 16:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 16:32:18] Production.INFO: count ==5132 [2025-03-06 16:32:20] Production.ERROR: pbx CDR StartTime 2025-03-06 13:32:05 - End Time 2025-03-06 16:32:05 [2025-03-06 16:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 16:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621725', 'tblTempUsageDetail_20' ) start [2025-03-06 16:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621725', 'tblTempUsageDetail_20' ) end [2025-03-06 16:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621725', 'tblTempVendorCDR_20' ) start [2025-03-06 16:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621725', 'tblTempVendorCDR_20' ) end [2025-03-06 16:32:20] Production.INFO: ProcessCDR(1,14621725,1,1,2) [2025-03-06 16:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14621725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 16:32:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14621725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 16:32:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14621725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 16:32:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14621725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 16:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621725', 'tblTempUsageDetail_20' ) start [2025-03-06 16:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621725', 'tblTempUsageDetail_20' ) end [2025-03-06 16:32:25] Production.ERROR: pbx prc_insertCDR start [2025-03-06 16:32:25] Production.ERROR: pbx prc_insertCDR end [2025-03-06 16:32:25] Production.INFO: ==12882== Releasing lock... [2025-03-06 16:32:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 16:32:25] Production.INFO: 66.5 MB #Memory Used# [2025-03-06 16:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 13:33:06 [end_date_ymd] => 2025-03-06 16:33:06 [RateCDR] => 1 ) [2025-03-06 16: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-03-06 13:33:06' and `end` < '2025-03-06 16: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-03-06 16:33:19] Production.INFO: count ==5142 [2025-03-06 16:33:21] Production.ERROR: pbx CDR StartTime 2025-03-06 13:33:06 - End Time 2025-03-06 16:33:06 [2025-03-06 16:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 16:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621730', 'tblTempUsageDetail_20' ) start [2025-03-06 16:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621730', 'tblTempUsageDetail_20' ) end [2025-03-06 16:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621730', 'tblTempVendorCDR_20' ) start [2025-03-06 16:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621730', 'tblTempVendorCDR_20' ) end [2025-03-06 16:33:21] Production.INFO: ProcessCDR(1,14621730,1,1,2) [2025-03-06 16:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14621730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 16:33:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14621730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 16:33:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14621730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 16:33:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14621730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 16:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621730', 'tblTempUsageDetail_20' ) start [2025-03-06 16:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621730', 'tblTempUsageDetail_20' ) end [2025-03-06 16:33:26] Production.ERROR: pbx prc_insertCDR start [2025-03-06 16:33:26] Production.ERROR: pbx prc_insertCDR end [2025-03-06 16:33:26] Production.INFO: ==12963== Releasing lock... [2025-03-06 16:33:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 16:33:26] Production.INFO: 66.5 MB #Memory Used# [2025-03-06 16:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 13:34:05 [end_date_ymd] => 2025-03-06 16:34:05 [RateCDR] => 1 ) [2025-03-06 16:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 13:34:05' and `end` < '2025-03-06 16:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 16:34:18] Production.INFO: count ==5138 [2025-03-06 16:34:20] Production.ERROR: pbx CDR StartTime 2025-03-06 13:34:05 - End Time 2025-03-06 16:34:05 [2025-03-06 16:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 16:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621735', 'tblTempUsageDetail_20' ) start [2025-03-06 16:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621735', 'tblTempUsageDetail_20' ) end [2025-03-06 16:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621735', 'tblTempVendorCDR_20' ) start [2025-03-06 16:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621735', 'tblTempVendorCDR_20' ) end [2025-03-06 16:34:20] Production.INFO: ProcessCDR(1,14621735,1,1,2) [2025-03-06 16:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14621735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 16:34:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14621735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 16:34:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14621735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 16:34:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14621735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 16:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621735', 'tblTempUsageDetail_20' ) start [2025-03-06 16:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621735', 'tblTempUsageDetail_20' ) end [2025-03-06 16:34:25] Production.ERROR: pbx prc_insertCDR start [2025-03-06 16:34:25] Production.ERROR: pbx prc_insertCDR end [2025-03-06 16:34:25] Production.INFO: ==13041== Releasing lock... [2025-03-06 16:34:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 16:34:25] Production.INFO: 66.5 MB #Memory Used# [2025-03-06 16:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 13:35:06 [end_date_ymd] => 2025-03-06 16:35:06 [RateCDR] => 1 ) [2025-03-06 16: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-03-06 13:35:06' and `end` < '2025-03-06 16: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-03-06 16:35:19] Production.INFO: count ==5153 [2025-03-06 16:35:21] Production.ERROR: pbx CDR StartTime 2025-03-06 13:35:06 - End Time 2025-03-06 16:35:06 [2025-03-06 16:35:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 16:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621740', 'tblTempUsageDetail_20' ) start [2025-03-06 16:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621740', 'tblTempUsageDetail_20' ) end [2025-03-06 16:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621740', 'tblTempVendorCDR_20' ) start [2025-03-06 16:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621740', 'tblTempVendorCDR_20' ) end [2025-03-06 16:35:21] Production.INFO: ProcessCDR(1,14621740,1,1,2) [2025-03-06 16:35:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14621740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 16:35:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14621740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 16:35:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14621740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 16:35:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14621740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 16:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621740', 'tblTempUsageDetail_20' ) start [2025-03-06 16:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621740', 'tblTempUsageDetail_20' ) end [2025-03-06 16:35:26] Production.ERROR: pbx prc_insertCDR start [2025-03-06 16:35:26] Production.ERROR: pbx prc_insertCDR end [2025-03-06 16:35:27] Production.INFO: ==13124== Releasing lock... [2025-03-06 16:35:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 16:35:27] Production.INFO: 66.5 MB #Memory Used# [2025-03-06 16:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 13:36:05 [end_date_ymd] => 2025-03-06 16:36:05 [RateCDR] => 1 ) [2025-03-06 16:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 13:36:05' and `end` < '2025-03-06 16:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 16:36:18] Production.INFO: count ==5164 [2025-03-06 16:36:20] Production.ERROR: pbx CDR StartTime 2025-03-06 13:36:05 - End Time 2025-03-06 16:36:05 [2025-03-06 16:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 16:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621745', 'tblTempUsageDetail_20' ) start [2025-03-06 16:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621745', 'tblTempUsageDetail_20' ) end [2025-03-06 16:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621745', 'tblTempVendorCDR_20' ) start [2025-03-06 16:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621745', 'tblTempVendorCDR_20' ) end [2025-03-06 16:36:20] Production.INFO: ProcessCDR(1,14621745,1,1,2) [2025-03-06 16:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14621745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 16:36:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14621745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 16:36:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14621745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 16:36:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14621745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 16:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621745', 'tblTempUsageDetail_20' ) start [2025-03-06 16:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621745', 'tblTempUsageDetail_20' ) end [2025-03-06 16:36:25] Production.ERROR: pbx prc_insertCDR start [2025-03-06 16:36:25] Production.ERROR: pbx prc_insertCDR end [2025-03-06 16:36:25] Production.INFO: ==13202== Releasing lock... [2025-03-06 16:36:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 16:36:25] Production.INFO: 66.75 MB #Memory Used# [2025-03-06 16:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 13:37:05 [end_date_ymd] => 2025-03-06 16:37:05 [RateCDR] => 1 ) [2025-03-06 16:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 13:37:05' and `end` < '2025-03-06 16:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 16:37:18] Production.INFO: count ==5168 [2025-03-06 16:37:20] Production.ERROR: pbx CDR StartTime 2025-03-06 13:37:05 - End Time 2025-03-06 16:37:05 [2025-03-06 16:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 16:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621750', 'tblTempUsageDetail_20' ) start [2025-03-06 16:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621750', 'tblTempUsageDetail_20' ) end [2025-03-06 16:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621750', 'tblTempVendorCDR_20' ) start [2025-03-06 16:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621750', 'tblTempVendorCDR_20' ) end [2025-03-06 16:37:21] Production.INFO: ProcessCDR(1,14621750,1,1,2) [2025-03-06 16:37:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14621750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 16:37:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14621750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 16:37:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14621750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 16:37:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14621750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 16:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621750', 'tblTempUsageDetail_20' ) start [2025-03-06 16:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621750', 'tblTempUsageDetail_20' ) end [2025-03-06 16:37:25] Production.ERROR: pbx prc_insertCDR start [2025-03-06 16:37:25] Production.ERROR: pbx prc_insertCDR end [2025-03-06 16:37:25] Production.INFO: ==13280== Releasing lock... [2025-03-06 16:37:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 16:37:25] Production.INFO: 66.75 MB #Memory Used# [2025-03-06 16:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 13:38:06 [end_date_ymd] => 2025-03-06 16:38:06 [RateCDR] => 1 ) [2025-03-06 16: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-03-06 13:38:06' and `end` < '2025-03-06 16: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-03-06 16:38:19] Production.INFO: count ==5178 [2025-03-06 16:38:21] Production.ERROR: pbx CDR StartTime 2025-03-06 13:38:06 - End Time 2025-03-06 16:38:06 [2025-03-06 16:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 16:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621755', 'tblTempUsageDetail_20' ) start [2025-03-06 16:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621755', 'tblTempUsageDetail_20' ) end [2025-03-06 16:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621755', 'tblTempVendorCDR_20' ) start [2025-03-06 16:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621755', 'tblTempVendorCDR_20' ) end [2025-03-06 16:38:21] Production.INFO: ProcessCDR(1,14621755,1,1,2) [2025-03-06 16:38:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14621755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 16:38:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14621755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 16:38:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14621755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 16:38:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14621755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 16:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621755', 'tblTempUsageDetail_20' ) start [2025-03-06 16:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621755', 'tblTempUsageDetail_20' ) end [2025-03-06 16:38:26] Production.ERROR: pbx prc_insertCDR start [2025-03-06 16:38:26] Production.ERROR: pbx prc_insertCDR end [2025-03-06 16:38:26] Production.INFO: ==13357== Releasing lock... [2025-03-06 16:38:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 16:38:26] Production.INFO: 66.75 MB #Memory Used# [2025-03-06 16:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 13:39:05 [end_date_ymd] => 2025-03-06 16:39:05 [RateCDR] => 1 ) [2025-03-06 16:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 13:39:05' and `end` < '2025-03-06 16:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 16:39:18] Production.INFO: count ==5183 [2025-03-06 16:39:20] Production.ERROR: pbx CDR StartTime 2025-03-06 13:39:05 - End Time 2025-03-06 16:39:05 [2025-03-06 16:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 16:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621760', 'tblTempUsageDetail_20' ) start [2025-03-06 16:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621760', 'tblTempUsageDetail_20' ) end [2025-03-06 16:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621760', 'tblTempVendorCDR_20' ) start [2025-03-06 16:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621760', 'tblTempVendorCDR_20' ) end [2025-03-06 16:39:21] Production.INFO: ProcessCDR(1,14621760,1,1,2) [2025-03-06 16:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14621760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 16:39:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14621760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 16:39:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14621760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 16:39:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14621760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 16:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621760', 'tblTempUsageDetail_20' ) start [2025-03-06 16:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621760', 'tblTempUsageDetail_20' ) end [2025-03-06 16:39:25] Production.ERROR: pbx prc_insertCDR start [2025-03-06 16:39:25] Production.ERROR: pbx prc_insertCDR end [2025-03-06 16:39:26] Production.INFO: ==13432== Releasing lock... [2025-03-06 16:39:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 16:39:26] Production.INFO: 66.75 MB #Memory Used# [2025-03-06 16:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 13:40:07 [end_date_ymd] => 2025-03-06 16:40:07 [RateCDR] => 1 ) [2025-03-06 16:40:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 13:40:07' and `end` < '2025-03-06 16:40:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 16:40:20] Production.INFO: count ==5179 [2025-03-06 16:40:22] Production.ERROR: pbx CDR StartTime 2025-03-06 13:40:07 - End Time 2025-03-06 16:40:07 [2025-03-06 16:40:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 16:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621766', 'tblTempUsageDetail_20' ) start [2025-03-06 16:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621766', 'tblTempUsageDetail_20' ) end [2025-03-06 16:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621766', 'tblTempVendorCDR_20' ) start [2025-03-06 16:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621766', 'tblTempVendorCDR_20' ) end [2025-03-06 16:40:22] Production.INFO: ProcessCDR(1,14621766,1,1,2) [2025-03-06 16:40:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14621766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 16:40:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14621766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 16:40:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14621766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 16:40:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14621766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 16:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621766', 'tblTempUsageDetail_20' ) start [2025-03-06 16:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621766', 'tblTempUsageDetail_20' ) end [2025-03-06 16:40:27] Production.ERROR: pbx prc_insertCDR start [2025-03-06 16:40:27] Production.ERROR: pbx prc_insertCDR end [2025-03-06 16:40:27] Production.INFO: ==13513== Releasing lock... [2025-03-06 16:40:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 16:40:27] Production.INFO: 66.75 MB #Memory Used# [2025-03-06 16:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 13:41:05 [end_date_ymd] => 2025-03-06 16:41:05 [RateCDR] => 1 ) [2025-03-06 16:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 13:41:05' and `end` < '2025-03-06 16:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 16:41:18] Production.INFO: count ==5151 [2025-03-06 16:41:20] Production.ERROR: pbx CDR StartTime 2025-03-06 13:41:05 - End Time 2025-03-06 16:41:05 [2025-03-06 16:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 16:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621771', 'tblTempUsageDetail_20' ) start [2025-03-06 16:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621771', 'tblTempUsageDetail_20' ) end [2025-03-06 16:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621771', 'tblTempVendorCDR_20' ) start [2025-03-06 16:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621771', 'tblTempVendorCDR_20' ) end [2025-03-06 16:41:21] Production.INFO: ProcessCDR(1,14621771,1,1,2) [2025-03-06 16:41:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14621771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 16:41:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14621771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 16:41:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14621771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 16:41:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14621771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 16:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621771', 'tblTempUsageDetail_20' ) start [2025-03-06 16:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621771', 'tblTempUsageDetail_20' ) end [2025-03-06 16:41:24] Production.ERROR: pbx prc_insertCDR start [2025-03-06 16:41:24] Production.ERROR: pbx prc_insertCDR end [2025-03-06 16:41:24] Production.INFO: ==13591== Releasing lock... [2025-03-06 16:41:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 16:41:24] Production.INFO: 66.5 MB #Memory Used# [2025-03-06 16:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 13:42:06 [end_date_ymd] => 2025-03-06 16:42:06 [RateCDR] => 1 ) [2025-03-06 16:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 13:42:06' and `end` < '2025-03-06 16:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 16:42:19] Production.INFO: count ==5135 [2025-03-06 16:42:21] Production.ERROR: pbx CDR StartTime 2025-03-06 13:42:06 - End Time 2025-03-06 16:42:06 [2025-03-06 16:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 16:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621776', 'tblTempUsageDetail_20' ) start [2025-03-06 16:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621776', 'tblTempUsageDetail_20' ) end [2025-03-06 16:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621776', 'tblTempVendorCDR_20' ) start [2025-03-06 16:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621776', 'tblTempVendorCDR_20' ) end [2025-03-06 16:42:21] Production.INFO: ProcessCDR(1,14621776,1,1,2) [2025-03-06 16:42:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14621776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 16:42:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14621776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 16:42:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14621776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 16:42:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14621776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 16:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621776', 'tblTempUsageDetail_20' ) start [2025-03-06 16:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621776', 'tblTempUsageDetail_20' ) end [2025-03-06 16:42:26] Production.ERROR: pbx prc_insertCDR start [2025-03-06 16:42:26] Production.ERROR: pbx prc_insertCDR end [2025-03-06 16:42:26] Production.INFO: ==13674== Releasing lock... [2025-03-06 16:42:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 16:42:26] Production.INFO: 66.5 MB #Memory Used# [2025-03-06 16:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 13:43:05 [end_date_ymd] => 2025-03-06 16:43:05 [RateCDR] => 1 ) [2025-03-06 16:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 13:43:05' and `end` < '2025-03-06 16:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 16:43:18] Production.INFO: count ==5148 [2025-03-06 16:43:20] Production.ERROR: pbx CDR StartTime 2025-03-06 13:43:05 - End Time 2025-03-06 16:43:05 [2025-03-06 16:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 16:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621781', 'tblTempUsageDetail_20' ) start [2025-03-06 16:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621781', 'tblTempUsageDetail_20' ) end [2025-03-06 16:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621781', 'tblTempVendorCDR_20' ) start [2025-03-06 16:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621781', 'tblTempVendorCDR_20' ) end [2025-03-06 16:43:21] Production.INFO: ProcessCDR(1,14621781,1,1,2) [2025-03-06 16:43:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14621781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 16:43:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14621781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 16:43:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14621781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 16:43:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14621781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 16:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621781', 'tblTempUsageDetail_20' ) start [2025-03-06 16:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621781', 'tblTempUsageDetail_20' ) end [2025-03-06 16:43:26] Production.ERROR: pbx prc_insertCDR start [2025-03-06 16:43:26] Production.ERROR: pbx prc_insertCDR end [2025-03-06 16:43:26] Production.INFO: ==13749== Releasing lock... [2025-03-06 16:43:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 16:43:26] Production.INFO: 66.5 MB #Memory Used# [2025-03-06 16:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 13:44:06 [end_date_ymd] => 2025-03-06 16:44:06 [RateCDR] => 1 ) [2025-03-06 16:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 13:44:06' and `end` < '2025-03-06 16:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 16:44:19] Production.INFO: count ==5164 [2025-03-06 16:44:21] Production.ERROR: pbx CDR StartTime 2025-03-06 13:44:06 - End Time 2025-03-06 16:44:06 [2025-03-06 16:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 16:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621786', 'tblTempUsageDetail_20' ) start [2025-03-06 16:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621786', 'tblTempUsageDetail_20' ) end [2025-03-06 16:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621786', 'tblTempVendorCDR_20' ) start [2025-03-06 16:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621786', 'tblTempVendorCDR_20' ) end [2025-03-06 16:44:21] Production.INFO: ProcessCDR(1,14621786,1,1,2) [2025-03-06 16:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14621786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 16:44:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14621786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 16:44:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14621786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 16:44:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14621786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 16:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621786', 'tblTempUsageDetail_20' ) start [2025-03-06 16:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621786', 'tblTempUsageDetail_20' ) end [2025-03-06 16:44:26] Production.ERROR: pbx prc_insertCDR start [2025-03-06 16:44:26] Production.ERROR: pbx prc_insertCDR end [2025-03-06 16:44:26] Production.INFO: ==13829== Releasing lock... [2025-03-06 16:44:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 16:44:26] Production.INFO: 66.5 MB #Memory Used# [2025-03-06 16:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 13:45:05 [end_date_ymd] => 2025-03-06 16:45:05 [RateCDR] => 1 ) [2025-03-06 16:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 13:45:05' and `end` < '2025-03-06 16:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 16:45:18] Production.INFO: count ==5168 [2025-03-06 16:45:20] Production.ERROR: pbx CDR StartTime 2025-03-06 13:45:05 - End Time 2025-03-06 16:45:05 [2025-03-06 16:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 16:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621791', 'tblTempUsageDetail_20' ) start [2025-03-06 16:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621791', 'tblTempUsageDetail_20' ) end [2025-03-06 16:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621791', 'tblTempVendorCDR_20' ) start [2025-03-06 16:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621791', 'tblTempVendorCDR_20' ) end [2025-03-06 16:45:21] Production.INFO: ProcessCDR(1,14621791,1,1,2) [2025-03-06 16:45:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14621791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 16:45:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14621791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 16:45:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14621791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 16:45:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14621791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 16:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621791', 'tblTempUsageDetail_20' ) start [2025-03-06 16:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621791', 'tblTempUsageDetail_20' ) end [2025-03-06 16:45:26] Production.ERROR: pbx prc_insertCDR start [2025-03-06 16:45:26] Production.ERROR: pbx prc_insertCDR end [2025-03-06 16:45:26] Production.INFO: ==13905== Releasing lock... [2025-03-06 16:45:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 16:45:26] Production.INFO: 66.75 MB #Memory Used# [2025-03-06 16:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 13:46:06 [end_date_ymd] => 2025-03-06 16:46:06 [RateCDR] => 1 ) [2025-03-06 16: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-03-06 13:46:06' and `end` < '2025-03-06 16: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-03-06 16:46:20] Production.INFO: count ==5166 [2025-03-06 16:46:22] Production.ERROR: pbx CDR StartTime 2025-03-06 13:46:06 - End Time 2025-03-06 16:46:06 [2025-03-06 16:46:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 16:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621796', 'tblTempUsageDetail_20' ) start [2025-03-06 16:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621796', 'tblTempUsageDetail_20' ) end [2025-03-06 16:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621796', 'tblTempVendorCDR_20' ) start [2025-03-06 16:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621796', 'tblTempVendorCDR_20' ) end [2025-03-06 16:46:22] Production.INFO: ProcessCDR(1,14621796,1,1,2) [2025-03-06 16:46:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14621796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 16:46:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14621796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 16:46:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14621796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 16:46:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14621796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 16:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621796', 'tblTempUsageDetail_20' ) start [2025-03-06 16:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621796', 'tblTempUsageDetail_20' ) end [2025-03-06 16:46:27] Production.ERROR: pbx prc_insertCDR start [2025-03-06 16:46:27] Production.ERROR: pbx prc_insertCDR end [2025-03-06 16:46:27] Production.INFO: ==14021== Releasing lock... [2025-03-06 16:46:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 16:46:27] Production.INFO: 66.75 MB #Memory Used# [2025-03-06 16:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 13:47:05 [end_date_ymd] => 2025-03-06 16:47:05 [RateCDR] => 1 ) [2025-03-06 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-03-06 13:47:05' and `end` < '2025-03-06 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-03-06 16:47:18] Production.INFO: count ==5185 [2025-03-06 16:47:20] Production.ERROR: pbx CDR StartTime 2025-03-06 13:47:05 - End Time 2025-03-06 16:47:05 [2025-03-06 16:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 16:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621801', 'tblTempUsageDetail_20' ) start [2025-03-06 16:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621801', 'tblTempUsageDetail_20' ) end [2025-03-06 16:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621801', 'tblTempVendorCDR_20' ) start [2025-03-06 16:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621801', 'tblTempVendorCDR_20' ) end [2025-03-06 16:47:20] Production.INFO: ProcessCDR(1,14621801,1,1,2) [2025-03-06 16:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14621801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 16:47:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14621801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 16:47:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14621801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 16:47:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14621801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 16:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621801', 'tblTempUsageDetail_20' ) start [2025-03-06 16:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621801', 'tblTempUsageDetail_20' ) end [2025-03-06 16:47:26] Production.ERROR: pbx prc_insertCDR start [2025-03-06 16:47:26] Production.ERROR: pbx prc_insertCDR end [2025-03-06 16:47:26] Production.INFO: ==14095== Releasing lock... [2025-03-06 16:47:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 16:47:26] Production.INFO: 66.75 MB #Memory Used# [2025-03-06 16:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 13:48:06 [end_date_ymd] => 2025-03-06 16:48:06 [RateCDR] => 1 ) [2025-03-06 16: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-03-06 13:48:06' and `end` < '2025-03-06 16: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-03-06 16:48:19] Production.INFO: count ==5204 [2025-03-06 16:48:21] Production.ERROR: pbx CDR StartTime 2025-03-06 13:48:06 - End Time 2025-03-06 16:48:06 [2025-03-06 16:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 16:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621806', 'tblTempUsageDetail_20' ) start [2025-03-06 16:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621806', 'tblTempUsageDetail_20' ) end [2025-03-06 16:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621806', 'tblTempVendorCDR_20' ) start [2025-03-06 16:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621806', 'tblTempVendorCDR_20' ) end [2025-03-06 16:48:21] Production.INFO: ProcessCDR(1,14621806,1,1,2) [2025-03-06 16:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14621806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 16:48:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14621806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 16:48:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14621806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 16:48:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14621806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 16:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621806', 'tblTempUsageDetail_20' ) start [2025-03-06 16:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621806', 'tblTempUsageDetail_20' ) end [2025-03-06 16:48:27] Production.ERROR: pbx prc_insertCDR start [2025-03-06 16:48:27] Production.ERROR: pbx prc_insertCDR end [2025-03-06 16:48:27] Production.INFO: ==14174== Releasing lock... [2025-03-06 16:48:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 16:48:27] Production.INFO: 67 MB #Memory Used# [2025-03-06 16:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 13:49:05 [end_date_ymd] => 2025-03-06 16:49:05 [RateCDR] => 1 ) [2025-03-06 16: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-03-06 13:49:05' and `end` < '2025-03-06 16:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 16:49:18] Production.INFO: count ==5195 [2025-03-06 16:49:21] Production.ERROR: pbx CDR StartTime 2025-03-06 13:49:05 - End Time 2025-03-06 16:49:05 [2025-03-06 16:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 16:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621811', 'tblTempUsageDetail_20' ) start [2025-03-06 16:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621811', 'tblTempUsageDetail_20' ) end [2025-03-06 16:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621811', 'tblTempVendorCDR_20' ) start [2025-03-06 16:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621811', 'tblTempVendorCDR_20' ) end [2025-03-06 16:49:21] Production.INFO: ProcessCDR(1,14621811,1,1,2) [2025-03-06 16:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14621811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 16:49:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14621811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 16:49:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14621811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 16:49:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14621811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 16:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621811', 'tblTempUsageDetail_20' ) start [2025-03-06 16:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621811', 'tblTempUsageDetail_20' ) end [2025-03-06 16:49:25] Production.ERROR: pbx prc_insertCDR start [2025-03-06 16:49:26] Production.ERROR: pbx prc_insertCDR end [2025-03-06 16:49:26] Production.INFO: ==14254== Releasing lock... [2025-03-06 16:49:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 16:49:26] Production.INFO: 66.75 MB #Memory Used# [2025-03-06 16:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 13:50:06 [end_date_ymd] => 2025-03-06 16:50:06 [RateCDR] => 1 ) [2025-03-06 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-03-06 13:50:06' and `end` < '2025-03-06 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-03-06 16:50:19] Production.INFO: count ==5169 [2025-03-06 16:50:21] Production.ERROR: pbx CDR StartTime 2025-03-06 13:50:06 - End Time 2025-03-06 16:50:06 [2025-03-06 16:50:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 16:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621817', 'tblTempUsageDetail_20' ) start [2025-03-06 16:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621817', 'tblTempUsageDetail_20' ) end [2025-03-06 16:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621817', 'tblTempVendorCDR_20' ) start [2025-03-06 16:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621817', 'tblTempVendorCDR_20' ) end [2025-03-06 16:50:21] Production.INFO: ProcessCDR(1,14621817,1,1,2) [2025-03-06 16:50:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14621817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 16:50:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14621817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 16:50:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14621817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 16:50:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14621817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 16:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621817', 'tblTempUsageDetail_20' ) start [2025-03-06 16:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621817', 'tblTempUsageDetail_20' ) end [2025-03-06 16:50:25] Production.ERROR: pbx prc_insertCDR start [2025-03-06 16:50:25] Production.ERROR: pbx prc_insertCDR end [2025-03-06 16:50:25] Production.INFO: ==14341== Releasing lock... [2025-03-06 16:50:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 16:50:25] Production.INFO: 66.75 MB #Memory Used# [2025-03-06 16:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 13:51:05 [end_date_ymd] => 2025-03-06 16:51:05 [RateCDR] => 1 ) [2025-03-06 16:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 13:51:05' and `end` < '2025-03-06 16:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 16:51:18] Production.INFO: count ==5126 [2025-03-06 16:51:20] Production.ERROR: pbx CDR StartTime 2025-03-06 13:51:05 - End Time 2025-03-06 16:51:05 [2025-03-06 16:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 16:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621822', 'tblTempUsageDetail_20' ) start [2025-03-06 16:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621822', 'tblTempUsageDetail_20' ) end [2025-03-06 16:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621822', 'tblTempVendorCDR_20' ) start [2025-03-06 16:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621822', 'tblTempVendorCDR_20' ) end [2025-03-06 16:51:21] Production.INFO: ProcessCDR(1,14621822,1,1,2) [2025-03-06 16:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14621822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 16:51:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14621822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 16:51:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14621822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 16:51:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14621822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 16:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621822', 'tblTempUsageDetail_20' ) start [2025-03-06 16:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621822', 'tblTempUsageDetail_20' ) end [2025-03-06 16:51:26] Production.ERROR: pbx prc_insertCDR start [2025-03-06 16:51:26] Production.ERROR: pbx prc_insertCDR end [2025-03-06 16:51:26] Production.INFO: ==14418== Releasing lock... [2025-03-06 16:51:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 16:51:26] Production.INFO: 66.25 MB #Memory Used# [2025-03-06 16:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 13:52:05 [end_date_ymd] => 2025-03-06 16:52:05 [RateCDR] => 1 ) [2025-03-06 16:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 13:52:05' and `end` < '2025-03-06 16:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 16:52:18] Production.INFO: count ==5083 [2025-03-06 16:52:20] Production.ERROR: pbx CDR StartTime 2025-03-06 13:52:05 - End Time 2025-03-06 16:52:05 [2025-03-06 16:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 16:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621827', 'tblTempUsageDetail_20' ) start [2025-03-06 16:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621827', 'tblTempUsageDetail_20' ) end [2025-03-06 16:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621827', 'tblTempVendorCDR_20' ) start [2025-03-06 16:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621827', 'tblTempVendorCDR_20' ) end [2025-03-06 16:52:20] Production.INFO: ProcessCDR(1,14621827,1,1,2) [2025-03-06 16:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14621827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 16:52:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14621827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 16:52:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14621827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 16:52:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14621827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 16:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621827', 'tblTempUsageDetail_20' ) start [2025-03-06 16:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621827', 'tblTempUsageDetail_20' ) end [2025-03-06 16:52:26] Production.ERROR: pbx prc_insertCDR start [2025-03-06 16:52:26] Production.ERROR: pbx prc_insertCDR end [2025-03-06 16:52:26] Production.INFO: ==14494== Releasing lock... [2025-03-06 16:52:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 16:52:26] Production.INFO: 66 MB #Memory Used# [2025-03-06 16:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 13:53:06 [end_date_ymd] => 2025-03-06 16:53:06 [RateCDR] => 1 ) [2025-03-06 16: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-03-06 13:53:06' and `end` < '2025-03-06 16: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-03-06 16:53:19] Production.INFO: count ==5034 [2025-03-06 16:53:21] Production.ERROR: pbx CDR StartTime 2025-03-06 13:53:06 - End Time 2025-03-06 16:53:06 [2025-03-06 16:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 16:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621832', 'tblTempUsageDetail_20' ) start [2025-03-06 16:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621832', 'tblTempUsageDetail_20' ) end [2025-03-06 16:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621832', 'tblTempVendorCDR_20' ) start [2025-03-06 16:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621832', 'tblTempVendorCDR_20' ) end [2025-03-06 16:53:21] Production.INFO: ProcessCDR(1,14621832,1,1,2) [2025-03-06 16:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14621832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 16:53:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14621832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 16:53:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14621832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 16:53:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14621832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 16:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621832', 'tblTempUsageDetail_20' ) start [2025-03-06 16:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621832', 'tblTempUsageDetail_20' ) end [2025-03-06 16:53:26] Production.ERROR: pbx prc_insertCDR start [2025-03-06 16:53:26] Production.ERROR: pbx prc_insertCDR end [2025-03-06 16:53:26] Production.INFO: ==14574== Releasing lock... [2025-03-06 16:53:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 16:53:26] Production.INFO: 65.75 MB #Memory Used# [2025-03-06 16:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 13:54:05 [end_date_ymd] => 2025-03-06 16:54:05 [RateCDR] => 1 ) [2025-03-06 16:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 13:54:05' and `end` < '2025-03-06 16:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 16:54:18] Production.INFO: count ==4987 [2025-03-06 16:54:20] Production.ERROR: pbx CDR StartTime 2025-03-06 13:54:05 - End Time 2025-03-06 16:54:05 [2025-03-06 16:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 16:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621837', 'tblTempUsageDetail_20' ) start [2025-03-06 16:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621837', 'tblTempUsageDetail_20' ) end [2025-03-06 16:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621837', 'tblTempVendorCDR_20' ) start [2025-03-06 16:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621837', 'tblTempVendorCDR_20' ) end [2025-03-06 16:54:20] Production.INFO: ProcessCDR(1,14621837,1,1,2) [2025-03-06 16:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14621837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 16:54:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14621837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 16:54:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14621837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 16:54:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14621837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 16:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621837', 'tblTempUsageDetail_20' ) start [2025-03-06 16:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621837', 'tblTempUsageDetail_20' ) end [2025-03-06 16:54:25] Production.ERROR: pbx prc_insertCDR start [2025-03-06 16:54:25] Production.ERROR: pbx prc_insertCDR end [2025-03-06 16:54:25] Production.INFO: ==14654== Releasing lock... [2025-03-06 16:54:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 16:54:25] Production.INFO: 65.25 MB #Memory Used# [2025-03-06 16:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 13:55:05 [end_date_ymd] => 2025-03-06 16:55:05 [RateCDR] => 1 ) [2025-03-06 16:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 13:55:05' and `end` < '2025-03-06 16:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 16:55:18] Production.INFO: count ==4948 [2025-03-06 16:55:20] Production.ERROR: pbx CDR StartTime 2025-03-06 13:55:05 - End Time 2025-03-06 16:55:05 [2025-03-06 16:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 16:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621842', 'tblTempUsageDetail_20' ) start [2025-03-06 16:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621842', 'tblTempUsageDetail_20' ) end [2025-03-06 16:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621842', 'tblTempVendorCDR_20' ) start [2025-03-06 16:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621842', 'tblTempVendorCDR_20' ) end [2025-03-06 16:55:20] Production.INFO: ProcessCDR(1,14621842,1,1,2) [2025-03-06 16:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14621842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 16:55:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14621842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 16:55:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14621842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 16:55:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14621842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 16:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621842', 'tblTempUsageDetail_20' ) start [2025-03-06 16:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621842', 'tblTempUsageDetail_20' ) end [2025-03-06 16:55:24] Production.ERROR: pbx prc_insertCDR start [2025-03-06 16:55:24] Production.ERROR: pbx prc_insertCDR end [2025-03-06 16:55:24] Production.INFO: ==14731== Releasing lock... [2025-03-06 16:55:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 16:55:24] Production.INFO: 65 MB #Memory Used# [2025-03-06 16:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 13:56:05 [end_date_ymd] => 2025-03-06 16:56:05 [RateCDR] => 1 ) [2025-03-06 16:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 13:56:05' and `end` < '2025-03-06 16:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 16:56:18] Production.INFO: count ==4940 [2025-03-06 16:56:20] Production.ERROR: pbx CDR StartTime 2025-03-06 13:56:05 - End Time 2025-03-06 16:56:05 [2025-03-06 16:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 16:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621847', 'tblTempUsageDetail_20' ) start [2025-03-06 16:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621847', 'tblTempUsageDetail_20' ) end [2025-03-06 16:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621847', 'tblTempVendorCDR_20' ) start [2025-03-06 16:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621847', 'tblTempVendorCDR_20' ) end [2025-03-06 16:56:20] Production.INFO: ProcessCDR(1,14621847,1,1,2) [2025-03-06 16:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14621847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 16:56:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14621847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 16:56:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14621847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 16:56:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14621847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 16:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621847', 'tblTempUsageDetail_20' ) start [2025-03-06 16:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621847', 'tblTempUsageDetail_20' ) end [2025-03-06 16:56:25] Production.ERROR: pbx prc_insertCDR start [2025-03-06 16:56:25] Production.ERROR: pbx prc_insertCDR end [2025-03-06 16:56:26] Production.INFO: ==14807== Releasing lock... [2025-03-06 16:56:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 16:56:26] Production.INFO: 65 MB #Memory Used# [2025-03-06 16:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 13:57:06 [end_date_ymd] => 2025-03-06 16:57:06 [RateCDR] => 1 ) [2025-03-06 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-03-06 13:57:06' and `end` < '2025-03-06 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-03-06 16:57:19] Production.INFO: count ==4926 [2025-03-06 16:57:21] Production.ERROR: pbx CDR StartTime 2025-03-06 13:57:06 - End Time 2025-03-06 16:57:06 [2025-03-06 16:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 16:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621852', 'tblTempUsageDetail_20' ) start [2025-03-06 16:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621852', 'tblTempUsageDetail_20' ) end [2025-03-06 16:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621852', 'tblTempVendorCDR_20' ) start [2025-03-06 16:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621852', 'tblTempVendorCDR_20' ) end [2025-03-06 16:57:21] Production.INFO: ProcessCDR(1,14621852,1,1,2) [2025-03-06 16:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14621852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 16:57:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14621852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 16:57:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14621852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 16:57:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14621852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 16:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621852', 'tblTempUsageDetail_20' ) start [2025-03-06 16:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621852', 'tblTempUsageDetail_20' ) end [2025-03-06 16:57:26] Production.ERROR: pbx prc_insertCDR start [2025-03-06 16:57:26] Production.ERROR: pbx prc_insertCDR end [2025-03-06 16:57:26] Production.INFO: ==14883== Releasing lock... [2025-03-06 16:57:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 16:57:26] Production.INFO: 64.75 MB #Memory Used# [2025-03-06 16:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 13:58:05 [end_date_ymd] => 2025-03-06 16:58:05 [RateCDR] => 1 ) [2025-03-06 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-03-06 13:58:05' and `end` < '2025-03-06 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-03-06 16:58:18] Production.INFO: count ==4922 [2025-03-06 16:58:20] Production.ERROR: pbx CDR StartTime 2025-03-06 13:58:05 - End Time 2025-03-06 16:58:05 [2025-03-06 16:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 16:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621857', 'tblTempUsageDetail_20' ) start [2025-03-06 16:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621857', 'tblTempUsageDetail_20' ) end [2025-03-06 16:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621857', 'tblTempVendorCDR_20' ) start [2025-03-06 16:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621857', 'tblTempVendorCDR_20' ) end [2025-03-06 16:58:20] Production.INFO: ProcessCDR(1,14621857,1,1,2) [2025-03-06 16:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14621857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 16:58:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14621857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 16:58:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14621857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 16:58:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14621857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 16:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621857', 'tblTempUsageDetail_20' ) start [2025-03-06 16:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621857', 'tblTempUsageDetail_20' ) end [2025-03-06 16:58:24] Production.ERROR: pbx prc_insertCDR start [2025-03-06 16:58:24] Production.ERROR: pbx prc_insertCDR end [2025-03-06 16:58:24] Production.INFO: ==14958== Releasing lock... [2025-03-06 16:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 16:58:24] Production.INFO: 64.75 MB #Memory Used# [2025-03-06 16:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 13:59:06 [end_date_ymd] => 2025-03-06 16:59:06 [RateCDR] => 1 ) [2025-03-06 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-03-06 13:59:06' and `end` < '2025-03-06 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-03-06 16:59:19] Production.INFO: count ==4931 [2025-03-06 16:59:21] Production.ERROR: pbx CDR StartTime 2025-03-06 13:59:06 - End Time 2025-03-06 16:59:06 [2025-03-06 16:59:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 16:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621862', 'tblTempUsageDetail_20' ) start [2025-03-06 16:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621862', 'tblTempUsageDetail_20' ) end [2025-03-06 16:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621862', 'tblTempVendorCDR_20' ) start [2025-03-06 16:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621862', 'tblTempVendorCDR_20' ) end [2025-03-06 16:59:21] Production.INFO: ProcessCDR(1,14621862,1,1,2) [2025-03-06 16:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14621862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 16:59:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14621862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 16:59:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14621862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 16:59:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14621862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 16:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621862', 'tblTempUsageDetail_20' ) start [2025-03-06 16:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621862', 'tblTempUsageDetail_20' ) end [2025-03-06 16:59:26] Production.ERROR: pbx prc_insertCDR start [2025-03-06 16:59:26] Production.ERROR: pbx prc_insertCDR end [2025-03-06 16:59:26] Production.INFO: ==15036== Releasing lock... [2025-03-06 16:59:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 16:59:26] Production.INFO: 65 MB #Memory Used# [2025-03-06 17:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 14:00:06 [end_date_ymd] => 2025-03-06 17:00:06 [RateCDR] => 1 ) [2025-03-06 17:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 14:00:06' and `end` < '2025-03-06 17:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 17:00:19] Production.INFO: count ==4943 [2025-03-06 17:00:21] Production.ERROR: pbx CDR StartTime 2025-03-06 14:00:06 - End Time 2025-03-06 17:00:06 [2025-03-06 17:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 17:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621868', 'tblTempUsageDetail_20' ) start [2025-03-06 17:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621868', 'tblTempUsageDetail_20' ) end [2025-03-06 17:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621868', 'tblTempVendorCDR_20' ) start [2025-03-06 17:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621868', 'tblTempVendorCDR_20' ) end [2025-03-06 17:00:21] Production.INFO: ProcessCDR(1,14621868,1,1,2) [2025-03-06 17:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14621868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 17:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14621868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 17:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14621868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 17:00:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14621868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 17:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621868', 'tblTempUsageDetail_20' ) start [2025-03-06 17:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621868', 'tblTempUsageDetail_20' ) end [2025-03-06 17:00:26] Production.ERROR: pbx prc_insertCDR start [2025-03-06 17:00:26] Production.ERROR: pbx prc_insertCDR end [2025-03-06 17:00:26] Production.INFO: ==15115== Releasing lock... [2025-03-06 17:00:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 17:00:26] Production.INFO: 65 MB #Memory Used# [2025-03-06 17:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 14:01:05 [end_date_ymd] => 2025-03-06 17:01:05 [RateCDR] => 1 ) [2025-03-06 17:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 14:01:05' and `end` < '2025-03-06 17:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 17:01:18] Production.INFO: count ==4892 [2025-03-06 17:01:21] Production.ERROR: pbx CDR StartTime 2025-03-06 14:01:05 - End Time 2025-03-06 17:01:05 [2025-03-06 17:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 17:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621873', 'tblTempUsageDetail_20' ) start [2025-03-06 17:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621873', 'tblTempUsageDetail_20' ) end [2025-03-06 17:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621873', 'tblTempVendorCDR_20' ) start [2025-03-06 17:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621873', 'tblTempVendorCDR_20' ) end [2025-03-06 17:01:21] Production.INFO: ProcessCDR(1,14621873,1,1,2) [2025-03-06 17:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14621873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 17:01:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14621873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 17:01:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14621873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 17:01:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14621873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 17:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621873', 'tblTempUsageDetail_20' ) start [2025-03-06 17:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621873', 'tblTempUsageDetail_20' ) end [2025-03-06 17:01:26] Production.ERROR: pbx prc_insertCDR start [2025-03-06 17:01:26] Production.ERROR: pbx prc_insertCDR end [2025-03-06 17:01:26] Production.INFO: ==15205== Releasing lock... [2025-03-06 17:01:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 17:01:26] Production.INFO: 64.5 MB #Memory Used# [2025-03-06 17:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 14:02:05 [end_date_ymd] => 2025-03-06 17:02:05 [RateCDR] => 1 ) [2025-03-06 17:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 14:02:05' and `end` < '2025-03-06 17:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 17:02:19] Production.INFO: count ==4885 [2025-03-06 17:02:21] Production.ERROR: pbx CDR StartTime 2025-03-06 14:02:05 - End Time 2025-03-06 17:02:05 [2025-03-06 17:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 17:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621878', 'tblTempUsageDetail_20' ) start [2025-03-06 17:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621878', 'tblTempUsageDetail_20' ) end [2025-03-06 17:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621878', 'tblTempVendorCDR_20' ) start [2025-03-06 17:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621878', 'tblTempVendorCDR_20' ) end [2025-03-06 17:02:21] Production.INFO: ProcessCDR(1,14621878,1,1,2) [2025-03-06 17:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14621878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 17:02:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14621878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 17:02:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14621878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 17:02:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14621878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 17:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621878', 'tblTempUsageDetail_20' ) start [2025-03-06 17:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621878', 'tblTempUsageDetail_20' ) end [2025-03-06 17:02:26] Production.ERROR: pbx prc_insertCDR start [2025-03-06 17:02:26] Production.ERROR: pbx prc_insertCDR end [2025-03-06 17:02:26] Production.INFO: ==15317== Releasing lock... [2025-03-06 17:02:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 17:02:26] Production.INFO: 64.5 MB #Memory Used# [2025-03-06 17:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 14:03:06 [end_date_ymd] => 2025-03-06 17:03:06 [RateCDR] => 1 ) [2025-03-06 17:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 14:03:06' and `end` < '2025-03-06 17:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 17:03:19] Production.INFO: count ==4878 [2025-03-06 17:03:21] Production.ERROR: pbx CDR StartTime 2025-03-06 14:03:06 - End Time 2025-03-06 17:03:06 [2025-03-06 17:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 17:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621883', 'tblTempUsageDetail_20' ) start [2025-03-06 17:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621883', 'tblTempUsageDetail_20' ) end [2025-03-06 17:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621883', 'tblTempVendorCDR_20' ) start [2025-03-06 17:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621883', 'tblTempVendorCDR_20' ) end [2025-03-06 17:03:21] Production.INFO: ProcessCDR(1,14621883,1,1,2) [2025-03-06 17:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14621883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 17:03:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14621883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 17:03:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14621883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 17:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14621883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 17:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621883', 'tblTempUsageDetail_20' ) start [2025-03-06 17:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621883', 'tblTempUsageDetail_20' ) end [2025-03-06 17:03:24] Production.ERROR: pbx prc_insertCDR start [2025-03-06 17:03:24] Production.ERROR: pbx prc_insertCDR end [2025-03-06 17:03:24] Production.INFO: ==15391== Releasing lock... [2025-03-06 17:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 17:03:24] Production.INFO: 64.5 MB #Memory Used# [2025-03-06 17:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 14:04:05 [end_date_ymd] => 2025-03-06 17:04:05 [RateCDR] => 1 ) [2025-03-06 17:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 14:04:05' and `end` < '2025-03-06 17:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 17:04:18] Production.INFO: count ==4854 [2025-03-06 17:04:20] Production.ERROR: pbx CDR StartTime 2025-03-06 14:04:05 - End Time 2025-03-06 17:04:05 [2025-03-06 17:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 17:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621888', 'tblTempUsageDetail_20' ) start [2025-03-06 17:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621888', 'tblTempUsageDetail_20' ) end [2025-03-06 17:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621888', 'tblTempVendorCDR_20' ) start [2025-03-06 17:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621888', 'tblTempVendorCDR_20' ) end [2025-03-06 17:04:20] Production.INFO: ProcessCDR(1,14621888,1,1,2) [2025-03-06 17:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14621888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 17:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14621888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 17:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14621888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 17:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14621888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 17:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621888', 'tblTempUsageDetail_20' ) start [2025-03-06 17:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621888', 'tblTempUsageDetail_20' ) end [2025-03-06 17:04:23] Production.ERROR: pbx prc_insertCDR start [2025-03-06 17:04:23] Production.ERROR: pbx prc_insertCDR end [2025-03-06 17:04:23] Production.INFO: ==15476== Releasing lock... [2025-03-06 17:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 17:04:23] Production.INFO: 64.25 MB #Memory Used# [2025-03-06 17:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 14:05:05 [end_date_ymd] => 2025-03-06 17:05:05 [RateCDR] => 1 ) [2025-03-06 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-03-06 14:05:05' and `end` < '2025-03-06 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-03-06 17:05:18] Production.INFO: count ==4842 [2025-03-06 17:05:20] Production.ERROR: pbx CDR StartTime 2025-03-06 14:05:05 - End Time 2025-03-06 17:05:05 [2025-03-06 17:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 17:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621893', 'tblTempUsageDetail_20' ) start [2025-03-06 17:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621893', 'tblTempUsageDetail_20' ) end [2025-03-06 17:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621893', 'tblTempVendorCDR_20' ) start [2025-03-06 17:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621893', 'tblTempVendorCDR_20' ) end [2025-03-06 17:05:21] Production.INFO: ProcessCDR(1,14621893,1,1,2) [2025-03-06 17:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14621893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 17:05:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14621893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 17:05:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14621893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 17:05:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14621893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 17:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621893', 'tblTempUsageDetail_20' ) start [2025-03-06 17:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621893', 'tblTempUsageDetail_20' ) end [2025-03-06 17:05:25] Production.ERROR: pbx prc_insertCDR start [2025-03-06 17:05:25] Production.ERROR: pbx prc_insertCDR end [2025-03-06 17:05:25] Production.INFO: ==15548== Releasing lock... [2025-03-06 17:05:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 17:05:25] Production.INFO: 64.25 MB #Memory Used# [2025-03-06 17:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 14:06:05 [end_date_ymd] => 2025-03-06 17:06:05 [RateCDR] => 1 ) [2025-03-06 17:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 14:06:05' and `end` < '2025-03-06 17:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 17:06:18] Production.INFO: count ==4823 [2025-03-06 17:06:20] Production.ERROR: pbx CDR StartTime 2025-03-06 14:06:05 - End Time 2025-03-06 17:06:05 [2025-03-06 17:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 17:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621898', 'tblTempUsageDetail_20' ) start [2025-03-06 17:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621898', 'tblTempUsageDetail_20' ) end [2025-03-06 17:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621898', 'tblTempVendorCDR_20' ) start [2025-03-06 17:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621898', 'tblTempVendorCDR_20' ) end [2025-03-06 17:06:20] Production.INFO: ProcessCDR(1,14621898,1,1,2) [2025-03-06 17:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14621898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 17:06:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14621898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 17:06:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14621898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 17:06:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14621898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 17:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621898', 'tblTempUsageDetail_20' ) start [2025-03-06 17:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621898', 'tblTempUsageDetail_20' ) end [2025-03-06 17:06:25] Production.ERROR: pbx prc_insertCDR start [2025-03-06 17:06:25] Production.ERROR: pbx prc_insertCDR end [2025-03-06 17:06:25] Production.INFO: ==15626== Releasing lock... [2025-03-06 17:06:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 17:06:25] Production.INFO: 64 MB #Memory Used# [2025-03-06 17:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 14:07:05 [end_date_ymd] => 2025-03-06 17:07:05 [RateCDR] => 1 ) [2025-03-06 17:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 14:07:05' and `end` < '2025-03-06 17:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 17:07:18] Production.INFO: count ==4802 [2025-03-06 17:07:20] Production.ERROR: pbx CDR StartTime 2025-03-06 14:07:05 - End Time 2025-03-06 17:07:05 [2025-03-06 17:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 17:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621903', 'tblTempUsageDetail_20' ) start [2025-03-06 17:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621903', 'tblTempUsageDetail_20' ) end [2025-03-06 17:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621903', 'tblTempVendorCDR_20' ) start [2025-03-06 17:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621903', 'tblTempVendorCDR_20' ) end [2025-03-06 17:07:20] Production.INFO: ProcessCDR(1,14621903,1,1,2) [2025-03-06 17:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14621903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 17:07:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14621903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 17:07:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14621903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 17:07:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14621903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 17:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621903', 'tblTempUsageDetail_20' ) start [2025-03-06 17:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621903', 'tblTempUsageDetail_20' ) end [2025-03-06 17:07:25] Production.ERROR: pbx prc_insertCDR start [2025-03-06 17:07:25] Production.ERROR: pbx prc_insertCDR end [2025-03-06 17:07:25] Production.INFO: ==15701== Releasing lock... [2025-03-06 17:07:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 17:07:25] Production.INFO: 64 MB #Memory Used# [2025-03-06 17:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 14:08:06 [end_date_ymd] => 2025-03-06 17:08:06 [RateCDR] => 1 ) [2025-03-06 17: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-03-06 14:08:06' and `end` < '2025-03-06 17: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-03-06 17:08:19] Production.INFO: count ==4793 [2025-03-06 17:08:21] Production.ERROR: pbx CDR StartTime 2025-03-06 14:08:06 - End Time 2025-03-06 17:08:06 [2025-03-06 17:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 17:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621908', 'tblTempUsageDetail_20' ) start [2025-03-06 17:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621908', 'tblTempUsageDetail_20' ) end [2025-03-06 17:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621908', 'tblTempVendorCDR_20' ) start [2025-03-06 17:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621908', 'tblTempVendorCDR_20' ) end [2025-03-06 17:08:21] Production.INFO: ProcessCDR(1,14621908,1,1,2) [2025-03-06 17:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14621908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 17:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14621908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 17:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14621908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 17:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14621908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 17:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621908', 'tblTempUsageDetail_20' ) start [2025-03-06 17:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621908', 'tblTempUsageDetail_20' ) end [2025-03-06 17:08:24] Production.ERROR: pbx prc_insertCDR start [2025-03-06 17:08:25] Production.ERROR: pbx prc_insertCDR end [2025-03-06 17:08:25] Production.INFO: ==15776== Releasing lock... [2025-03-06 17:08:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 17:08:25] Production.INFO: 63.75 MB #Memory Used# [2025-03-06 17:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 14:09:05 [end_date_ymd] => 2025-03-06 17:09:05 [RateCDR] => 1 ) [2025-03-06 17:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 14:09:05' and `end` < '2025-03-06 17:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 17:09:18] Production.INFO: count ==4795 [2025-03-06 17:09:20] Production.ERROR: pbx CDR StartTime 2025-03-06 14:09:05 - End Time 2025-03-06 17:09:05 [2025-03-06 17:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 17:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621913', 'tblTempUsageDetail_20' ) start [2025-03-06 17:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621913', 'tblTempUsageDetail_20' ) end [2025-03-06 17:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621913', 'tblTempVendorCDR_20' ) start [2025-03-06 17:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621913', 'tblTempVendorCDR_20' ) end [2025-03-06 17:09:20] Production.INFO: ProcessCDR(1,14621913,1,1,2) [2025-03-06 17:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14621913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 17:09:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14621913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 17:09:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14621913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 17:09:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14621913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 17:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621913', 'tblTempUsageDetail_20' ) start [2025-03-06 17:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621913', 'tblTempUsageDetail_20' ) end [2025-03-06 17:09:25] Production.ERROR: pbx prc_insertCDR start [2025-03-06 17:09:25] Production.ERROR: pbx prc_insertCDR end [2025-03-06 17:09:25] Production.INFO: ==15850== Releasing lock... [2025-03-06 17:09:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 17:09:25] Production.INFO: 63.75 MB #Memory Used# [2025-03-06 17:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 14:10:06 [end_date_ymd] => 2025-03-06 17:10:06 [RateCDR] => 1 ) [2025-03-06 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-03-06 14:10:06' and `end` < '2025-03-06 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-03-06 17:10:19] Production.INFO: count ==4796 [2025-03-06 17:10:21] Production.ERROR: pbx CDR StartTime 2025-03-06 14:10:06 - End Time 2025-03-06 17:10:06 [2025-03-06 17:10:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 17:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621919', 'tblTempUsageDetail_20' ) start [2025-03-06 17:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621919', 'tblTempUsageDetail_20' ) end [2025-03-06 17:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621919', 'tblTempVendorCDR_20' ) start [2025-03-06 17:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621919', 'tblTempVendorCDR_20' ) end [2025-03-06 17:10:21] Production.INFO: ProcessCDR(1,14621919,1,1,2) [2025-03-06 17:10:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14621919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 17:10:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14621919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 17:10:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14621919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 17:10:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14621919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 17:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621919', 'tblTempUsageDetail_20' ) start [2025-03-06 17:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621919', 'tblTempUsageDetail_20' ) end [2025-03-06 17:10:26] Production.ERROR: pbx prc_insertCDR start [2025-03-06 17:10:26] Production.ERROR: pbx prc_insertCDR end [2025-03-06 17:10:26] Production.INFO: ==15926== Releasing lock... [2025-03-06 17:10:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 17:10:26] Production.INFO: 63.75 MB #Memory Used# [2025-03-06 17:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 14:11:06 [end_date_ymd] => 2025-03-06 17:11:06 [RateCDR] => 1 ) [2025-03-06 17: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-03-06 14:11:06' and `end` < '2025-03-06 17: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-03-06 17:11:19] Production.INFO: count ==4755 [2025-03-06 17:11:21] Production.ERROR: pbx CDR StartTime 2025-03-06 14:11:06 - End Time 2025-03-06 17:11:06 [2025-03-06 17:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 17:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621924', 'tblTempUsageDetail_20' ) start [2025-03-06 17:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621924', 'tblTempUsageDetail_20' ) end [2025-03-06 17:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621924', 'tblTempVendorCDR_20' ) start [2025-03-06 17:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621924', 'tblTempVendorCDR_20' ) end [2025-03-06 17:11:21] Production.INFO: ProcessCDR(1,14621924,1,1,2) [2025-03-06 17:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14621924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 17:11:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14621924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 17:11:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14621924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 17:11:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14621924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 17:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621924', 'tblTempUsageDetail_20' ) start [2025-03-06 17:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621924', 'tblTempUsageDetail_20' ) end [2025-03-06 17:11:24] Production.ERROR: pbx prc_insertCDR start [2025-03-06 17:11:24] Production.ERROR: pbx prc_insertCDR end [2025-03-06 17:11:24] Production.INFO: ==16001== Releasing lock... [2025-03-06 17:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 17:11:24] Production.INFO: 63.5 MB #Memory Used# [2025-03-06 17:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 14:12:05 [end_date_ymd] => 2025-03-06 17:12:05 [RateCDR] => 1 ) [2025-03-06 17: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-03-06 14:12:05' and `end` < '2025-03-06 17: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-03-06 17:12:18] Production.INFO: count ==4732 [2025-03-06 17:12:20] Production.ERROR: pbx CDR StartTime 2025-03-06 14:12:05 - End Time 2025-03-06 17:12:05 [2025-03-06 17:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 17:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621929', 'tblTempUsageDetail_20' ) start [2025-03-06 17:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621929', 'tblTempUsageDetail_20' ) end [2025-03-06 17:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621929', 'tblTempVendorCDR_20' ) start [2025-03-06 17:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621929', 'tblTempVendorCDR_20' ) end [2025-03-06 17:12:20] Production.INFO: ProcessCDR(1,14621929,1,1,2) [2025-03-06 17:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14621929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 17:12:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14621929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 17:12:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14621929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 17:12:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14621929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 17:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621929', 'tblTempUsageDetail_20' ) start [2025-03-06 17:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621929', 'tblTempUsageDetail_20' ) end [2025-03-06 17:12:25] Production.ERROR: pbx prc_insertCDR start [2025-03-06 17:12:25] Production.ERROR: pbx prc_insertCDR end [2025-03-06 17:12:25] Production.INFO: ==16075== Releasing lock... [2025-03-06 17:12:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 17:12:25] Production.INFO: 63.5 MB #Memory Used# [2025-03-06 17:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 14:13:05 [end_date_ymd] => 2025-03-06 17:13:05 [RateCDR] => 1 ) [2025-03-06 17:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 14:13:05' and `end` < '2025-03-06 17:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 17:13:18] Production.INFO: count ==4716 [2025-03-06 17:13:20] Production.ERROR: pbx CDR StartTime 2025-03-06 14:13:05 - End Time 2025-03-06 17:13:05 [2025-03-06 17:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 17:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621934', 'tblTempUsageDetail_20' ) start [2025-03-06 17:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621934', 'tblTempUsageDetail_20' ) end [2025-03-06 17:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621934', 'tblTempVendorCDR_20' ) start [2025-03-06 17:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621934', 'tblTempVendorCDR_20' ) end [2025-03-06 17:13:20] Production.INFO: ProcessCDR(1,14621934,1,1,2) [2025-03-06 17:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14621934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 17:13:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14621934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 17:13:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14621934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 17:13:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14621934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 17:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621934', 'tblTempUsageDetail_20' ) start [2025-03-06 17:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621934', 'tblTempUsageDetail_20' ) end [2025-03-06 17:13:25] Production.ERROR: pbx prc_insertCDR start [2025-03-06 17:13:25] Production.ERROR: pbx prc_insertCDR end [2025-03-06 17:13:25] Production.INFO: ==16150== Releasing lock... [2025-03-06 17:13:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 17:13:25] Production.INFO: 63.25 MB #Memory Used# [2025-03-06 17:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 14:14:05 [end_date_ymd] => 2025-03-06 17:14:05 [RateCDR] => 1 ) [2025-03-06 17:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 14:14:05' and `end` < '2025-03-06 17:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 17:14:18] Production.INFO: count ==4692 [2025-03-06 17:14:20] Production.ERROR: pbx CDR StartTime 2025-03-06 14:14:05 - End Time 2025-03-06 17:14:05 [2025-03-06 17:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 17:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621939', 'tblTempUsageDetail_20' ) start [2025-03-06 17:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621939', 'tblTempUsageDetail_20' ) end [2025-03-06 17:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621939', 'tblTempVendorCDR_20' ) start [2025-03-06 17:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621939', 'tblTempVendorCDR_20' ) end [2025-03-06 17:14:20] Production.INFO: ProcessCDR(1,14621939,1,1,2) [2025-03-06 17:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14621939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 17:14:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14621939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 17:14:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14621939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 17:14:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14621939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 17:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621939', 'tblTempUsageDetail_20' ) start [2025-03-06 17:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621939', 'tblTempUsageDetail_20' ) end [2025-03-06 17:14:25] Production.ERROR: pbx prc_insertCDR start [2025-03-06 17:14:25] Production.ERROR: pbx prc_insertCDR end [2025-03-06 17:14:25] Production.INFO: ==16223== Releasing lock... [2025-03-06 17:14:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 17:14:25] Production.INFO: 63 MB #Memory Used# [2025-03-06 17:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 14:15:05 [end_date_ymd] => 2025-03-06 17:15:05 [RateCDR] => 1 ) [2025-03-06 17: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-03-06 14:15:05' and `end` < '2025-03-06 17: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-03-06 17:15:18] Production.INFO: count ==4665 [2025-03-06 17:15:20] Production.ERROR: pbx CDR StartTime 2025-03-06 14:15:05 - End Time 2025-03-06 17:15:05 [2025-03-06 17:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 17:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621944', 'tblTempUsageDetail_20' ) start [2025-03-06 17:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621944', 'tblTempUsageDetail_20' ) end [2025-03-06 17:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621944', 'tblTempVendorCDR_20' ) start [2025-03-06 17:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621944', 'tblTempVendorCDR_20' ) end [2025-03-06 17:15:20] Production.INFO: ProcessCDR(1,14621944,1,1,2) [2025-03-06 17:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14621944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 17:15:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14621944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 17:15:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14621944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 17:15:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14621944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 17:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621944', 'tblTempUsageDetail_20' ) start [2025-03-06 17:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621944', 'tblTempUsageDetail_20' ) end [2025-03-06 17:15:25] Production.ERROR: pbx prc_insertCDR start [2025-03-06 17:15:25] Production.ERROR: pbx prc_insertCDR end [2025-03-06 17:15:25] Production.INFO: ==16301== Releasing lock... [2025-03-06 17:15:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 17:15:25] Production.INFO: 62.75 MB #Memory Used# [2025-03-06 17:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 14:16:06 [end_date_ymd] => 2025-03-06 17:16:06 [RateCDR] => 1 ) [2025-03-06 17: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-03-06 14:16:06' and `end` < '2025-03-06 17: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-03-06 17:16:19] Production.INFO: count ==4629 [2025-03-06 17:16:21] Production.ERROR: pbx CDR StartTime 2025-03-06 14:16:06 - End Time 2025-03-06 17:16:06 [2025-03-06 17:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 17:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621949', 'tblTempUsageDetail_20' ) start [2025-03-06 17:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621949', 'tblTempUsageDetail_20' ) end [2025-03-06 17:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621949', 'tblTempVendorCDR_20' ) start [2025-03-06 17:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621949', 'tblTempVendorCDR_20' ) end [2025-03-06 17:16:21] Production.INFO: ProcessCDR(1,14621949,1,1,2) [2025-03-06 17:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14621949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 17:16:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14621949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 17:16:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14621949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 17:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14621949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 17:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621949', 'tblTempUsageDetail_20' ) start [2025-03-06 17:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621949', 'tblTempUsageDetail_20' ) end [2025-03-06 17:16:25] Production.ERROR: pbx prc_insertCDR start [2025-03-06 17:16:25] Production.ERROR: pbx prc_insertCDR end [2025-03-06 17:16:25] Production.INFO: ==16372== Releasing lock... [2025-03-06 17:16:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 17:16:25] Production.INFO: 62.5 MB #Memory Used# [2025-03-06 17:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 14:17:05 [end_date_ymd] => 2025-03-06 17:17:05 [RateCDR] => 1 ) [2025-03-06 17:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 14:17:05' and `end` < '2025-03-06 17:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 17:17:18] Production.INFO: count ==4590 [2025-03-06 17:17:20] Production.ERROR: pbx CDR StartTime 2025-03-06 14:17:05 - End Time 2025-03-06 17:17:05 [2025-03-06 17:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 17:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621954', 'tblTempUsageDetail_20' ) start [2025-03-06 17:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621954', 'tblTempUsageDetail_20' ) end [2025-03-06 17:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621954', 'tblTempVendorCDR_20' ) start [2025-03-06 17:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621954', 'tblTempVendorCDR_20' ) end [2025-03-06 17:17:20] Production.INFO: ProcessCDR(1,14621954,1,1,2) [2025-03-06 17:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14621954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 17:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14621954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 17:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14621954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 17:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14621954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 17:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621954', 'tblTempUsageDetail_20' ) start [2025-03-06 17:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621954', 'tblTempUsageDetail_20' ) end [2025-03-06 17:17:24] Production.ERROR: pbx prc_insertCDR start [2025-03-06 17:17:24] Production.ERROR: pbx prc_insertCDR end [2025-03-06 17:17:24] Production.INFO: ==16484== Releasing lock... [2025-03-06 17:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 17:17:24] Production.INFO: 62.25 MB #Memory Used# [2025-03-06 17:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 14:18:06 [end_date_ymd] => 2025-03-06 17:18:06 [RateCDR] => 1 ) [2025-03-06 17: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-03-06 14:18:06' and `end` < '2025-03-06 17: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-03-06 17:18:18] Production.INFO: count ==4566 [2025-03-06 17:18:20] Production.ERROR: pbx CDR StartTime 2025-03-06 14:18:06 - End Time 2025-03-06 17:18:06 [2025-03-06 17:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 17:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621959', 'tblTempUsageDetail_20' ) start [2025-03-06 17:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621959', 'tblTempUsageDetail_20' ) end [2025-03-06 17:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621959', 'tblTempVendorCDR_20' ) start [2025-03-06 17:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621959', 'tblTempVendorCDR_20' ) end [2025-03-06 17:18:20] Production.INFO: ProcessCDR(1,14621959,1,1,2) [2025-03-06 17:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14621959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 17:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14621959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 17:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14621959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 17:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14621959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 17:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621959', 'tblTempUsageDetail_20' ) start [2025-03-06 17:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621959', 'tblTempUsageDetail_20' ) end [2025-03-06 17:18:24] Production.ERROR: pbx prc_insertCDR start [2025-03-06 17:18:24] Production.ERROR: pbx prc_insertCDR end [2025-03-06 17:18:24] Production.INFO: ==16558== Releasing lock... [2025-03-06 17:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 17:18:24] Production.INFO: 62.25 MB #Memory Used# [2025-03-06 17:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 14:19:05 [end_date_ymd] => 2025-03-06 17:19:05 [RateCDR] => 1 ) [2025-03-06 17:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 14:19:05' and `end` < '2025-03-06 17:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 17:19:18] Production.INFO: count ==4563 [2025-03-06 17:19:20] Production.ERROR: pbx CDR StartTime 2025-03-06 14:19:05 - End Time 2025-03-06 17:19:05 [2025-03-06 17:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 17:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621964', 'tblTempUsageDetail_20' ) start [2025-03-06 17:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621964', 'tblTempUsageDetail_20' ) end [2025-03-06 17:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621964', 'tblTempVendorCDR_20' ) start [2025-03-06 17:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621964', 'tblTempVendorCDR_20' ) end [2025-03-06 17:19:20] Production.INFO: ProcessCDR(1,14621964,1,1,2) [2025-03-06 17:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14621964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 17:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14621964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 17:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14621964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 17:19:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14621964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 17:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621964', 'tblTempUsageDetail_20' ) start [2025-03-06 17:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621964', 'tblTempUsageDetail_20' ) end [2025-03-06 17:19:24] Production.ERROR: pbx prc_insertCDR start [2025-03-06 17:19:24] Production.ERROR: pbx prc_insertCDR end [2025-03-06 17:19:24] Production.INFO: ==16632== Releasing lock... [2025-03-06 17:19:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 17:19:24] Production.INFO: 62 MB #Memory Used# [2025-03-06 17:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 14:20:06 [end_date_ymd] => 2025-03-06 17:20:06 [RateCDR] => 1 ) [2025-03-06 17: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-03-06 14:20:06' and `end` < '2025-03-06 17: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-03-06 17:20:19] Production.INFO: count ==4567 [2025-03-06 17:20:21] Production.ERROR: pbx CDR StartTime 2025-03-06 14:20:06 - End Time 2025-03-06 17:20:06 [2025-03-06 17:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 17:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621970', 'tblTempUsageDetail_20' ) start [2025-03-06 17:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621970', 'tblTempUsageDetail_20' ) end [2025-03-06 17:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621970', 'tblTempVendorCDR_20' ) start [2025-03-06 17:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621970', 'tblTempVendorCDR_20' ) end [2025-03-06 17:20:21] Production.INFO: ProcessCDR(1,14621970,1,1,2) [2025-03-06 17:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14621970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 17:20:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14621970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 17:20:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14621970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 17:20:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14621970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 17:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621970', 'tblTempUsageDetail_20' ) start [2025-03-06 17:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621970', 'tblTempUsageDetail_20' ) end [2025-03-06 17:20:26] Production.ERROR: pbx prc_insertCDR start [2025-03-06 17:20:26] Production.ERROR: pbx prc_insertCDR end [2025-03-06 17:20:26] Production.INFO: ==16706== Releasing lock... [2025-03-06 17:20:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 17:20:26] Production.INFO: 62.25 MB #Memory Used# [2025-03-06 17:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 14:21:05 [end_date_ymd] => 2025-03-06 17:21:05 [RateCDR] => 1 ) [2025-03-06 17:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 14:21:05' and `end` < '2025-03-06 17:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 17:21:18] Production.INFO: count ==4480 [2025-03-06 17:21:20] Production.ERROR: pbx CDR StartTime 2025-03-06 14:21:05 - End Time 2025-03-06 17:21:05 [2025-03-06 17:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 17:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621975', 'tblTempUsageDetail_20' ) start [2025-03-06 17:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621975', 'tblTempUsageDetail_20' ) end [2025-03-06 17:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621975', 'tblTempVendorCDR_20' ) start [2025-03-06 17:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621975', 'tblTempVendorCDR_20' ) end [2025-03-06 17:21:20] Production.INFO: ProcessCDR(1,14621975,1,1,2) [2025-03-06 17:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14621975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 17:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14621975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 17:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14621975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 17:21:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14621975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 17:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621975', 'tblTempUsageDetail_20' ) start [2025-03-06 17:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621975', 'tblTempUsageDetail_20' ) end [2025-03-06 17:21:24] Production.ERROR: pbx prc_insertCDR start [2025-03-06 17:21:24] Production.ERROR: pbx prc_insertCDR end [2025-03-06 17:21:24] Production.INFO: ==16779== Releasing lock... [2025-03-06 17:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 17:21:24] Production.INFO: 61.5 MB #Memory Used# [2025-03-06 17:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 14:22:06 [end_date_ymd] => 2025-03-06 17:22:06 [RateCDR] => 1 ) [2025-03-06 17:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 14:22:06' and `end` < '2025-03-06 17:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 17:22:19] Production.INFO: count ==4428 [2025-03-06 17:22:21] Production.ERROR: pbx CDR StartTime 2025-03-06 14:22:06 - End Time 2025-03-06 17:22:06 [2025-03-06 17:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 17:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621980', 'tblTempUsageDetail_20' ) start [2025-03-06 17:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621980', 'tblTempUsageDetail_20' ) end [2025-03-06 17:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621980', 'tblTempVendorCDR_20' ) start [2025-03-06 17:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621980', 'tblTempVendorCDR_20' ) end [2025-03-06 17:22:21] Production.INFO: ProcessCDR(1,14621980,1,1,2) [2025-03-06 17:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14621980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 17:22:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14621980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 17:22:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14621980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 17:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14621980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 17:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621980', 'tblTempUsageDetail_20' ) start [2025-03-06 17:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621980', 'tblTempUsageDetail_20' ) end [2025-03-06 17:22:24] Production.ERROR: pbx prc_insertCDR start [2025-03-06 17:22:24] Production.ERROR: pbx prc_insertCDR end [2025-03-06 17:22:24] Production.INFO: ==16850== Releasing lock... [2025-03-06 17:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 17:22:24] Production.INFO: 61 MB #Memory Used# [2025-03-06 17:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 14:23:05 [end_date_ymd] => 2025-03-06 17:23:05 [RateCDR] => 1 ) [2025-03-06 17:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 14:23:05' and `end` < '2025-03-06 17:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 17:23:18] Production.INFO: count ==4409 [2025-03-06 17:23:20] Production.ERROR: pbx CDR StartTime 2025-03-06 14:23:05 - End Time 2025-03-06 17:23:05 [2025-03-06 17:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 17:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621985', 'tblTempUsageDetail_20' ) start [2025-03-06 17:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621985', 'tblTempUsageDetail_20' ) end [2025-03-06 17:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621985', 'tblTempVendorCDR_20' ) start [2025-03-06 17:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621985', 'tblTempVendorCDR_20' ) end [2025-03-06 17:23:20] Production.INFO: ProcessCDR(1,14621985,1,1,2) [2025-03-06 17:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14621985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 17:23:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14621985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 17:23:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14621985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 17:23:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14621985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 17:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621985', 'tblTempUsageDetail_20' ) start [2025-03-06 17:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621985', 'tblTempUsageDetail_20' ) end [2025-03-06 17:23:25] Production.ERROR: pbx prc_insertCDR start [2025-03-06 17:23:25] Production.ERROR: pbx prc_insertCDR end [2025-03-06 17:23:25] Production.INFO: ==16928== Releasing lock... [2025-03-06 17:23:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 17:23:25] Production.INFO: 61 MB #Memory Used# [2025-03-06 17:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 14:24:06 [end_date_ymd] => 2025-03-06 17:24:06 [RateCDR] => 1 ) [2025-03-06 17: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-03-06 14:24:06' and `end` < '2025-03-06 17: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-03-06 17:24:18] Production.INFO: count ==4373 [2025-03-06 17:24:20] Production.ERROR: pbx CDR StartTime 2025-03-06 14:24:06 - End Time 2025-03-06 17:24:06 [2025-03-06 17:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 17:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621990', 'tblTempUsageDetail_20' ) start [2025-03-06 17:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621990', 'tblTempUsageDetail_20' ) end [2025-03-06 17:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621990', 'tblTempVendorCDR_20' ) start [2025-03-06 17:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621990', 'tblTempVendorCDR_20' ) end [2025-03-06 17:24:20] Production.INFO: ProcessCDR(1,14621990,1,1,2) [2025-03-06 17:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14621990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 17:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14621990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 17:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14621990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 17:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14621990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 17:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621990', 'tblTempUsageDetail_20' ) start [2025-03-06 17:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621990', 'tblTempUsageDetail_20' ) end [2025-03-06 17:24:23] Production.ERROR: pbx prc_insertCDR start [2025-03-06 17:24:24] Production.ERROR: pbx prc_insertCDR end [2025-03-06 17:24:24] Production.INFO: ==16999== Releasing lock... [2025-03-06 17:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 17:24:24] Production.INFO: 60.75 MB #Memory Used# [2025-03-06 17:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 14:25:05 [end_date_ymd] => 2025-03-06 17:25:05 [RateCDR] => 1 ) [2025-03-06 17:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 14:25:05' and `end` < '2025-03-06 17:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 17:25:18] Production.INFO: count ==4370 [2025-03-06 17:25:20] Production.ERROR: pbx CDR StartTime 2025-03-06 14:25:05 - End Time 2025-03-06 17:25:05 [2025-03-06 17:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 17:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621995', 'tblTempUsageDetail_20' ) start [2025-03-06 17:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14621995', 'tblTempUsageDetail_20' ) end [2025-03-06 17:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621995', 'tblTempVendorCDR_20' ) start [2025-03-06 17:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14621995', 'tblTempVendorCDR_20' ) end [2025-03-06 17:25:20] Production.INFO: ProcessCDR(1,14621995,1,1,2) [2025-03-06 17:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14621995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 17:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14621995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 17:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14621995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 17:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14621995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 17:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621995', 'tblTempUsageDetail_20' ) start [2025-03-06 17:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14621995', 'tblTempUsageDetail_20' ) end [2025-03-06 17:25:25] Production.ERROR: pbx prc_insertCDR start [2025-03-06 17:25:25] Production.ERROR: pbx prc_insertCDR end [2025-03-06 17:25:25] Production.INFO: ==17071== Releasing lock... [2025-03-06 17:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 17:25:25] Production.INFO: 60.75 MB #Memory Used# [2025-03-06 17:26:21] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 14:26:21 [end_date_ymd] => 2025-03-06 17:26:21 [RateCDR] => 1 ) [2025-03-06 17:26:21] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 14:26:21' and `end` < '2025-03-06 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-03-06 17:26:33] Production.INFO: count ==4345 [2025-03-06 17:27:40] Production.ERROR: pbx CDR StartTime 2025-03-06 14:26:21 - End Time 2025-03-06 17:26:21 [2025-03-06 17:27:40] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 17:27:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622000', 'tblTempUsageDetail_20' ) start [2025-03-06 17:27:45] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622000', 'tblTempUsageDetail_20' ) end [2025-03-06 17:27:45] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622000', 'tblTempVendorCDR_20' ) start [2025-03-06 17:27:45] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622000', 'tblTempVendorCDR_20' ) end [2025-03-06 17:27:45] Production.INFO: ProcessCDR(1,14622000,1,1,2) [2025-03-06 17:27:45] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14622000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 17:27:53] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14622000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 17:27:53] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14622000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 17:28:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14622000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 17:28:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622000', 'tblTempUsageDetail_20' ) start [2025-03-06 17:28:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622000', 'tblTempUsageDetail_20' ) end [2025-03-06 17:28:29] Production.ERROR: pbx prc_insertCDR start [2025-03-06 17:28:29] Production.ERROR: pbx prc_insertCDR end [2025-03-06 17:28:32] Production.INFO: ==17145== Releasing lock... [2025-03-06 17:28:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 17:28:32] Production.INFO: 60.5 MB #Memory Used# [2025-03-06 17:29:20] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 14:29:20 [end_date_ymd] => 2025-03-06 17:29:20 [RateCDR] => 1 ) [2025-03-06 17:29: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-03-06 14:29:20' and `end` < '2025-03-06 17:29: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-03-06 17:29:32] Production.INFO: count ==4302 [2025-03-06 17:30:27] Production.ERROR: pbx CDR StartTime 2025-03-06 14:29:20 - End Time 2025-03-06 17:29:20 [2025-03-06 17:30:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 17:30:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622011', 'tblTempUsageDetail_20' ) start [2025-03-06 17:30:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622011', 'tblTempUsageDetail_20' ) end [2025-03-06 17:30:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622011', 'tblTempVendorCDR_20' ) start [2025-03-06 17:30:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622011', 'tblTempVendorCDR_20' ) end [2025-03-06 17:30:29] Production.INFO: ProcessCDR(1,14622011,1,1,2) [2025-03-06 17:30:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14622011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 17:30:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14622011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 17:30:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14622011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 17:31:08] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14622011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 17:31:08] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622011', 'tblTempUsageDetail_20' ) start [2025-03-06 17:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622011', 'tblTempUsageDetail_20' ) end [2025-03-06 17:31:24] Production.ERROR: pbx prc_insertCDR start [2025-03-06 17:31:25] Production.ERROR: pbx prc_insertCDR end [2025-03-06 17:31:30] Production.INFO: ==17347== Releasing lock... [2025-03-06 17:31:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 17:31:30] Production.INFO: 60.25 MB #Memory Used# [2025-03-06 17:32:32] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 14:32:32 [end_date_ymd] => 2025-03-06 17:32:32 [RateCDR] => 1 ) [2025-03-06 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-03-06 14:32:32' and `end` < '2025-03-06 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-03-06 17:32:45] Production.INFO: count ==4290 [2025-03-06 17:32:46] Production.ERROR: pbx CDR StartTime 2025-03-06 14:32:32 - End Time 2025-03-06 17:32:32 [2025-03-06 17:32:46] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 17:32:46] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622023', 'tblTempUsageDetail_20' ) start [2025-03-06 17:32:47] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622023', 'tblTempUsageDetail_20' ) end [2025-03-06 17:32:47] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622023', 'tblTempVendorCDR_20' ) start [2025-03-06 17:32:47] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622023', 'tblTempVendorCDR_20' ) end [2025-03-06 17:32:47] Production.INFO: ProcessCDR(1,14622023,1,1,2) [2025-03-06 17:32:47] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14622023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 17:32:49] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14622023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 17:32:49] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14622023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 17:32:52] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14622023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 17:32:52] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622023', 'tblTempUsageDetail_20' ) start [2025-03-06 17:32:52] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622023', 'tblTempUsageDetail_20' ) end [2025-03-06 17:32:52] Production.ERROR: pbx prc_insertCDR start [2025-03-06 17:32:52] Production.ERROR: pbx prc_insertCDR end [2025-03-06 17:32:52] Production.INFO: ==17561== Releasing lock... [2025-03-06 17:32:52] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 17:32:52] Production.INFO: 60 MB #Memory Used# [2025-03-06 17:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 14:33:06 [end_date_ymd] => 2025-03-06 17:33:06 [RateCDR] => 1 ) [2025-03-06 17: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-03-06 14:33:06' and `end` < '2025-03-06 17: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-03-06 17:33:19] Production.INFO: count ==4290 [2025-03-06 17:33:21] Production.ERROR: pbx CDR StartTime 2025-03-06 14:33:06 - End Time 2025-03-06 17:33:06 [2025-03-06 17:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 17:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622028', 'tblTempUsageDetail_20' ) start [2025-03-06 17:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622028', 'tblTempUsageDetail_20' ) end [2025-03-06 17:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622028', 'tblTempVendorCDR_20' ) start [2025-03-06 17:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622028', 'tblTempVendorCDR_20' ) end [2025-03-06 17:33:21] Production.INFO: ProcessCDR(1,14622028,1,1,2) [2025-03-06 17:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14622028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 17:33:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14622028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 17:33:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14622028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 17:33:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14622028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 17:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622028', 'tblTempUsageDetail_20' ) start [2025-03-06 17:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622028', 'tblTempUsageDetail_20' ) end [2025-03-06 17:33:26] Production.ERROR: pbx prc_insertCDR start [2025-03-06 17:33:27] Production.ERROR: pbx prc_insertCDR end [2025-03-06 17:33:27] Production.INFO: ==17674== Releasing lock... [2025-03-06 17:33:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 17:33:27] Production.INFO: 60 MB #Memory Used# [2025-03-06 17:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 14:34:06 [end_date_ymd] => 2025-03-06 17:34:06 [RateCDR] => 1 ) [2025-03-06 17:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 14:34:06' and `end` < '2025-03-06 17:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 17:34:19] Production.INFO: count ==4240 [2025-03-06 17:34:20] Production.ERROR: pbx CDR StartTime 2025-03-06 14:34:06 - End Time 2025-03-06 17:34:06 [2025-03-06 17:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 17:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622033', 'tblTempUsageDetail_20' ) start [2025-03-06 17:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622033', 'tblTempUsageDetail_20' ) end [2025-03-06 17:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622033', 'tblTempVendorCDR_20' ) start [2025-03-06 17:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622033', 'tblTempVendorCDR_20' ) end [2025-03-06 17:34:20] Production.INFO: ProcessCDR(1,14622033,1,1,2) [2025-03-06 17:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14622033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 17:34:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14622033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 17:34:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14622033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 17:34:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14622033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 17:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622033', 'tblTempUsageDetail_20' ) start [2025-03-06 17:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622033', 'tblTempUsageDetail_20' ) end [2025-03-06 17:34:24] Production.ERROR: pbx prc_insertCDR start [2025-03-06 17:34:24] Production.ERROR: pbx prc_insertCDR end [2025-03-06 17:34:24] Production.INFO: ==17749== Releasing lock... [2025-03-06 17:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 17:34:24] Production.INFO: 59.75 MB #Memory Used# [2025-03-06 17:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 14:35:06 [end_date_ymd] => 2025-03-06 17:35:06 [RateCDR] => 1 ) [2025-03-06 17: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-03-06 14:35:06' and `end` < '2025-03-06 17: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-03-06 17:35:19] Production.INFO: count ==4213 [2025-03-06 17:35:21] Production.ERROR: pbx CDR StartTime 2025-03-06 14:35:06 - End Time 2025-03-06 17:35:06 [2025-03-06 17:35:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 17:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622038', 'tblTempUsageDetail_20' ) start [2025-03-06 17:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622038', 'tblTempUsageDetail_20' ) end [2025-03-06 17:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622038', 'tblTempVendorCDR_20' ) start [2025-03-06 17:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622038', 'tblTempVendorCDR_20' ) end [2025-03-06 17:35:21] Production.INFO: ProcessCDR(1,14622038,1,1,2) [2025-03-06 17:35:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14622038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 17:35:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14622038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 17:35:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14622038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 17:35:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14622038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 17:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622038', 'tblTempUsageDetail_20' ) start [2025-03-06 17:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622038', 'tblTempUsageDetail_20' ) end [2025-03-06 17:35:26] Production.ERROR: pbx prc_insertCDR start [2025-03-06 17:35:26] Production.ERROR: pbx prc_insertCDR end [2025-03-06 17:35:26] Production.INFO: ==17821== Releasing lock... [2025-03-06 17:35:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 17:35:26] Production.INFO: 59.5 MB #Memory Used# [2025-03-06 17:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 14:36:06 [end_date_ymd] => 2025-03-06 17:36:06 [RateCDR] => 1 ) [2025-03-06 17: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-03-06 14:36:06' and `end` < '2025-03-06 17: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-03-06 17:36:19] Production.INFO: count ==4208 [2025-03-06 17:36:20] Production.ERROR: pbx CDR StartTime 2025-03-06 14:36:06 - End Time 2025-03-06 17:36:06 [2025-03-06 17:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 17:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622043', 'tblTempUsageDetail_20' ) start [2025-03-06 17:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622043', 'tblTempUsageDetail_20' ) end [2025-03-06 17:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622043', 'tblTempVendorCDR_20' ) start [2025-03-06 17:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622043', 'tblTempVendorCDR_20' ) end [2025-03-06 17:36:20] Production.INFO: ProcessCDR(1,14622043,1,1,2) [2025-03-06 17:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14622043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 17:36:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14622043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 17:36:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14622043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 17:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14622043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 17:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622043', 'tblTempUsageDetail_20' ) start [2025-03-06 17:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622043', 'tblTempUsageDetail_20' ) end [2025-03-06 17:36:24] Production.ERROR: pbx prc_insertCDR start [2025-03-06 17:36:24] Production.ERROR: pbx prc_insertCDR end [2025-03-06 17:36:24] Production.INFO: ==17893== Releasing lock... [2025-03-06 17:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 17:36:24] Production.INFO: 59.5 MB #Memory Used# [2025-03-06 17:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 14:37:05 [end_date_ymd] => 2025-03-06 17:37:05 [RateCDR] => 1 ) [2025-03-06 17:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 14:37:05' and `end` < '2025-03-06 17:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 17:37:17] Production.INFO: count ==4208 [2025-03-06 17:37:19] Production.ERROR: pbx CDR StartTime 2025-03-06 14:37:05 - End Time 2025-03-06 17:37:05 [2025-03-06 17:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 17:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622048', 'tblTempUsageDetail_20' ) start [2025-03-06 17:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622048', 'tblTempUsageDetail_20' ) end [2025-03-06 17:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622048', 'tblTempVendorCDR_20' ) start [2025-03-06 17:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622048', 'tblTempVendorCDR_20' ) end [2025-03-06 17:37:19] Production.INFO: ProcessCDR(1,14622048,1,1,2) [2025-03-06 17:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14622048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 17:37:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14622048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 17:37:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14622048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 17:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14622048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 17:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622048', 'tblTempUsageDetail_20' ) start [2025-03-06 17:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622048', 'tblTempUsageDetail_20' ) end [2025-03-06 17:37:24] Production.ERROR: pbx prc_insertCDR start [2025-03-06 17:37:24] Production.ERROR: pbx prc_insertCDR end [2025-03-06 17:37:24] Production.INFO: ==17964== Releasing lock... [2025-03-06 17:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 17:37:24] Production.INFO: 59.5 MB #Memory Used# [2025-03-06 17:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 14:38:05 [end_date_ymd] => 2025-03-06 17:38:05 [RateCDR] => 1 ) [2025-03-06 17:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 14:38:05' and `end` < '2025-03-06 17:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 17:38:18] Production.INFO: count ==4182 [2025-03-06 17:38:20] Production.ERROR: pbx CDR StartTime 2025-03-06 14:38:05 - End Time 2025-03-06 17:38:05 [2025-03-06 17:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 17:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622053', 'tblTempUsageDetail_20' ) start [2025-03-06 17:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622053', 'tblTempUsageDetail_20' ) end [2025-03-06 17:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622053', 'tblTempVendorCDR_20' ) start [2025-03-06 17:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622053', 'tblTempVendorCDR_20' ) end [2025-03-06 17:38:20] Production.INFO: ProcessCDR(1,14622053,1,1,2) [2025-03-06 17:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14622053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 17:38:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14622053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 17:38:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14622053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 17:38:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14622053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 17:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622053', 'tblTempUsageDetail_20' ) start [2025-03-06 17:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622053', 'tblTempUsageDetail_20' ) end [2025-03-06 17:38:25] Production.ERROR: pbx prc_insertCDR start [2025-03-06 17:38:25] Production.ERROR: pbx prc_insertCDR end [2025-03-06 17:38:25] Production.INFO: ==18039== Releasing lock... [2025-03-06 17:38:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 17:38:25] Production.INFO: 59.25 MB #Memory Used# [2025-03-06 17:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 14:39:06 [end_date_ymd] => 2025-03-06 17:39:06 [RateCDR] => 1 ) [2025-03-06 17:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 14:39:06' and `end` < '2025-03-06 17:39:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 17:39:18] Production.INFO: count ==4170 [2025-03-06 17:39:20] Production.ERROR: pbx CDR StartTime 2025-03-06 14:39:06 - End Time 2025-03-06 17:39:06 [2025-03-06 17:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 17:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622058', 'tblTempUsageDetail_20' ) start [2025-03-06 17:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622058', 'tblTempUsageDetail_20' ) end [2025-03-06 17:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622058', 'tblTempVendorCDR_20' ) start [2025-03-06 17:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622058', 'tblTempVendorCDR_20' ) end [2025-03-06 17:39:20] Production.INFO: ProcessCDR(1,14622058,1,1,2) [2025-03-06 17:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14622058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 17:39:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14622058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 17:39:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14622058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 17:39:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14622058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 17:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622058', 'tblTempUsageDetail_20' ) start [2025-03-06 17:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622058', 'tblTempUsageDetail_20' ) end [2025-03-06 17:39:25] Production.ERROR: pbx prc_insertCDR start [2025-03-06 17:39:25] Production.ERROR: pbx prc_insertCDR end [2025-03-06 17:39:25] Production.INFO: ==18112== Releasing lock... [2025-03-06 17:39:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 17:39:25] Production.INFO: 59.25 MB #Memory Used# [2025-03-06 17:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 14:40:06 [end_date_ymd] => 2025-03-06 17:40:06 [RateCDR] => 1 ) [2025-03-06 17: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-03-06 14:40:06' and `end` < '2025-03-06 17: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-03-06 17:40:19] Production.INFO: count ==4182 [2025-03-06 17:40:21] Production.ERROR: pbx CDR StartTime 2025-03-06 14:40:06 - End Time 2025-03-06 17:40:06 [2025-03-06 17:40:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 17:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622064', 'tblTempUsageDetail_20' ) start [2025-03-06 17:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622064', 'tblTempUsageDetail_20' ) end [2025-03-06 17:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622064', 'tblTempVendorCDR_20' ) start [2025-03-06 17:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622064', 'tblTempVendorCDR_20' ) end [2025-03-06 17:40:21] Production.INFO: ProcessCDR(1,14622064,1,1,2) [2025-03-06 17:40:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14622064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 17:40:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14622064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 17:40:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14622064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 17:40:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14622064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 17:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622064', 'tblTempUsageDetail_20' ) start [2025-03-06 17:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622064', 'tblTempUsageDetail_20' ) end [2025-03-06 17:40:26] Production.ERROR: pbx prc_insertCDR start [2025-03-06 17:40:27] Production.ERROR: pbx prc_insertCDR end [2025-03-06 17:40:27] Production.INFO: ==18187== Releasing lock... [2025-03-06 17:40:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 17:40:27] Production.INFO: 59.25 MB #Memory Used# [2025-03-06 17:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 14:41:06 [end_date_ymd] => 2025-03-06 17:41:06 [RateCDR] => 1 ) [2025-03-06 17:41:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 14:41:06' and `end` < '2025-03-06 17:41:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 17:41:19] Production.INFO: count ==4126 [2025-03-06 17:41:20] Production.ERROR: pbx CDR StartTime 2025-03-06 14:41:06 - End Time 2025-03-06 17:41:06 [2025-03-06 17:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 17:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622069', 'tblTempUsageDetail_20' ) start [2025-03-06 17:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622069', 'tblTempUsageDetail_20' ) end [2025-03-06 17:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622069', 'tblTempVendorCDR_20' ) start [2025-03-06 17:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622069', 'tblTempVendorCDR_20' ) end [2025-03-06 17:41:20] Production.INFO: ProcessCDR(1,14622069,1,1,2) [2025-03-06 17:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14622069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 17:41:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14622069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 17:41:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14622069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 17:41:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14622069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 17:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622069', 'tblTempUsageDetail_20' ) start [2025-03-06 17:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622069', 'tblTempUsageDetail_20' ) end [2025-03-06 17:41:26] Production.ERROR: pbx prc_insertCDR start [2025-03-06 17:41:26] Production.ERROR: pbx prc_insertCDR end [2025-03-06 17:41:26] Production.INFO: ==18261== Releasing lock... [2025-03-06 17:41:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 17:41:26] Production.INFO: 58.75 MB #Memory Used# [2025-03-06 17:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 14:42:06 [end_date_ymd] => 2025-03-06 17:42:06 [RateCDR] => 1 ) [2025-03-06 17: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-03-06 14:42:06' and `end` < '2025-03-06 17: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-03-06 17:42:18] Production.INFO: count ==4123 [2025-03-06 17:42:20] Production.ERROR: pbx CDR StartTime 2025-03-06 14:42:06 - End Time 2025-03-06 17:42:06 [2025-03-06 17:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 17:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622074', 'tblTempUsageDetail_20' ) start [2025-03-06 17:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622074', 'tblTempUsageDetail_20' ) end [2025-03-06 17:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622074', 'tblTempVendorCDR_20' ) start [2025-03-06 17:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622074', 'tblTempVendorCDR_20' ) end [2025-03-06 17:42:20] Production.INFO: ProcessCDR(1,14622074,1,1,2) [2025-03-06 17:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14622074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 17:42:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14622074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 17:42:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14622074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 17:42:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14622074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 17:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622074', 'tblTempUsageDetail_20' ) start [2025-03-06 17:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622074', 'tblTempUsageDetail_20' ) end [2025-03-06 17:42:25] Production.ERROR: pbx prc_insertCDR start [2025-03-06 17:42:25] Production.ERROR: pbx prc_insertCDR end [2025-03-06 17:42:25] Production.INFO: ==18330== Releasing lock... [2025-03-06 17:42:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 17:42:25] Production.INFO: 59 MB #Memory Used# [2025-03-06 17:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 14:43:06 [end_date_ymd] => 2025-03-06 17:43:06 [RateCDR] => 1 ) [2025-03-06 17: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-03-06 14:43:06' and `end` < '2025-03-06 17: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-03-06 17:43:18] Production.INFO: count ==4119 [2025-03-06 17:43:20] Production.ERROR: pbx CDR StartTime 2025-03-06 14:43:06 - End Time 2025-03-06 17:43:06 [2025-03-06 17:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 17:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622079', 'tblTempUsageDetail_20' ) start [2025-03-06 17:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622079', 'tblTempUsageDetail_20' ) end [2025-03-06 17:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622079', 'tblTempVendorCDR_20' ) start [2025-03-06 17:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622079', 'tblTempVendorCDR_20' ) end [2025-03-06 17:43:20] Production.INFO: ProcessCDR(1,14622079,1,1,2) [2025-03-06 17:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14622079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 17:43:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14622079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 17:43:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14622079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 17:43:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14622079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 17:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622079', 'tblTempUsageDetail_20' ) start [2025-03-06 17:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622079', 'tblTempUsageDetail_20' ) end [2025-03-06 17:43:25] Production.ERROR: pbx prc_insertCDR start [2025-03-06 17:43:25] Production.ERROR: pbx prc_insertCDR end [2025-03-06 17:43:25] Production.INFO: ==18403== Releasing lock... [2025-03-06 17:43:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 17:43:25] Production.INFO: 58.75 MB #Memory Used# [2025-03-06 17:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 14:44:06 [end_date_ymd] => 2025-03-06 17:44:06 [RateCDR] => 1 ) [2025-03-06 17:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 14:44:06' and `end` < '2025-03-06 17:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 17:44:19] Production.INFO: count ==4116 [2025-03-06 17:44:20] Production.ERROR: pbx CDR StartTime 2025-03-06 14:44:06 - End Time 2025-03-06 17:44:06 [2025-03-06 17:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 17:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622084', 'tblTempUsageDetail_20' ) start [2025-03-06 17:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622084', 'tblTempUsageDetail_20' ) end [2025-03-06 17:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622084', 'tblTempVendorCDR_20' ) start [2025-03-06 17:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622084', 'tblTempVendorCDR_20' ) end [2025-03-06 17:44:20] Production.INFO: ProcessCDR(1,14622084,1,1,2) [2025-03-06 17:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14622084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 17:44:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14622084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 17:44:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14622084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 17:44:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14622084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 17:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622084', 'tblTempUsageDetail_20' ) start [2025-03-06 17:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622084', 'tblTempUsageDetail_20' ) end [2025-03-06 17:44:25] Production.ERROR: pbx prc_insertCDR start [2025-03-06 17:44:25] Production.ERROR: pbx prc_insertCDR end [2025-03-06 17:44:25] Production.INFO: ==18477== Releasing lock... [2025-03-06 17:44:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 17:44:25] Production.INFO: 59 MB #Memory Used# [2025-03-06 17:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 14:45:06 [end_date_ymd] => 2025-03-06 17:45:06 [RateCDR] => 1 ) [2025-03-06 17:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 14:45:06' and `end` < '2025-03-06 17:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 17:45:19] Production.INFO: count ==4113 [2025-03-06 17:45:20] Production.ERROR: pbx CDR StartTime 2025-03-06 14:45:06 - End Time 2025-03-06 17:45:06 [2025-03-06 17:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 17:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622089', 'tblTempUsageDetail_20' ) start [2025-03-06 17:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622089', 'tblTempUsageDetail_20' ) end [2025-03-06 17:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622089', 'tblTempVendorCDR_20' ) start [2025-03-06 17:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622089', 'tblTempVendorCDR_20' ) end [2025-03-06 17:45:21] Production.INFO: ProcessCDR(1,14622089,1,1,2) [2025-03-06 17:45:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14622089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 17:45:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14622089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 17:45:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14622089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 17:45:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14622089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 17:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622089', 'tblTempUsageDetail_20' ) start [2025-03-06 17:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622089', 'tblTempUsageDetail_20' ) end [2025-03-06 17:45:26] Production.ERROR: pbx prc_insertCDR start [2025-03-06 17:45:26] Production.ERROR: pbx prc_insertCDR end [2025-03-06 17:45:26] Production.INFO: ==18550== Releasing lock... [2025-03-06 17:45:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 17:45:26] Production.INFO: 58.75 MB #Memory Used# [2025-03-06 17:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 14:46:05 [end_date_ymd] => 2025-03-06 17:46:05 [RateCDR] => 1 ) [2025-03-06 17:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 14:46:05' and `end` < '2025-03-06 17:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 17:46:18] Production.INFO: count ==4101 [2025-03-06 17:46:20] Production.ERROR: pbx CDR StartTime 2025-03-06 14:46:05 - End Time 2025-03-06 17:46:05 [2025-03-06 17:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 17:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622094', 'tblTempUsageDetail_20' ) start [2025-03-06 17:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622094', 'tblTempUsageDetail_20' ) end [2025-03-06 17:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622094', 'tblTempVendorCDR_20' ) start [2025-03-06 17:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622094', 'tblTempVendorCDR_20' ) end [2025-03-06 17:46:20] Production.INFO: ProcessCDR(1,14622094,1,1,2) [2025-03-06 17:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14622094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 17:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14622094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 17:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14622094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 17:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14622094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 17:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622094', 'tblTempUsageDetail_20' ) start [2025-03-06 17:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622094', 'tblTempUsageDetail_20' ) end [2025-03-06 17:46:23] Production.ERROR: pbx prc_insertCDR start [2025-03-06 17:46:23] Production.ERROR: pbx prc_insertCDR end [2025-03-06 17:46:23] Production.INFO: ==18624== Releasing lock... [2025-03-06 17:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 17:46:23] Production.INFO: 58.75 MB #Memory Used# [2025-03-06 17:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 14:47:06 [end_date_ymd] => 2025-03-06 17:47:06 [RateCDR] => 1 ) [2025-03-06 17:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 14:47:06' and `end` < '2025-03-06 17:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 17:47:19] Production.INFO: count ==4095 [2025-03-06 17:47:20] Production.ERROR: pbx CDR StartTime 2025-03-06 14:47:06 - End Time 2025-03-06 17:47:06 [2025-03-06 17:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 17:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622099', 'tblTempUsageDetail_20' ) start [2025-03-06 17:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622099', 'tblTempUsageDetail_20' ) end [2025-03-06 17:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622099', 'tblTempVendorCDR_20' ) start [2025-03-06 17:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622099', 'tblTempVendorCDR_20' ) end [2025-03-06 17:47:20] Production.INFO: ProcessCDR(1,14622099,1,1,2) [2025-03-06 17:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14622099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 17:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14622099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 17:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14622099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 17:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14622099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 17:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622099', 'tblTempUsageDetail_20' ) start [2025-03-06 17:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622099', 'tblTempUsageDetail_20' ) end [2025-03-06 17:47:23] Production.ERROR: pbx prc_insertCDR start [2025-03-06 17:47:23] Production.ERROR: pbx prc_insertCDR end [2025-03-06 17:47:23] Production.INFO: ==18697== Releasing lock... [2025-03-06 17:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 17:47:23] Production.INFO: 58.5 MB #Memory Used# [2025-03-06 17:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 14:48:05 [end_date_ymd] => 2025-03-06 17:48:05 [RateCDR] => 1 ) [2025-03-06 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-03-06 14:48:05' and `end` < '2025-03-06 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-03-06 17:48:19] Production.INFO: count ==4112 [2025-03-06 17:48:20] Production.ERROR: pbx CDR StartTime 2025-03-06 14:48:05 - End Time 2025-03-06 17:48:05 [2025-03-06 17:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 17:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622104', 'tblTempUsageDetail_20' ) start [2025-03-06 17:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622104', 'tblTempUsageDetail_20' ) end [2025-03-06 17:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622104', 'tblTempVendorCDR_20' ) start [2025-03-06 17:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622104', 'tblTempVendorCDR_20' ) end [2025-03-06 17:48:20] Production.INFO: ProcessCDR(1,14622104,1,1,2) [2025-03-06 17:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14622104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 17:48:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14622104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 17:48:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14622104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 17:48:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14622104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 17:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622104', 'tblTempUsageDetail_20' ) start [2025-03-06 17:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622104', 'tblTempUsageDetail_20' ) end [2025-03-06 17:48:26] Production.ERROR: pbx prc_insertCDR start [2025-03-06 17:48:26] Production.ERROR: pbx prc_insertCDR end [2025-03-06 17:48:26] Production.INFO: ==18812== Releasing lock... [2025-03-06 17:48:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 17:48:26] Production.INFO: 58.75 MB #Memory Used# [2025-03-06 17:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 14:49:06 [end_date_ymd] => 2025-03-06 17:49:06 [RateCDR] => 1 ) [2025-03-06 17: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-03-06 14:49:06' and `end` < '2025-03-06 17: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-03-06 17:49:21] Production.INFO: count ==4117 [2025-03-06 17:49:22] Production.ERROR: pbx CDR StartTime 2025-03-06 14:49:06 - End Time 2025-03-06 17:49:06 [2025-03-06 17:49:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 17:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622109', 'tblTempUsageDetail_20' ) start [2025-03-06 17:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622109', 'tblTempUsageDetail_20' ) end [2025-03-06 17:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622109', 'tblTempVendorCDR_20' ) start [2025-03-06 17:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622109', 'tblTempVendorCDR_20' ) end [2025-03-06 17:49:22] Production.INFO: ProcessCDR(1,14622109,1,1,2) [2025-03-06 17:49:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14622109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 17:49:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14622109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 17:49:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14622109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 17:49:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14622109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 17:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622109', 'tblTempUsageDetail_20' ) start [2025-03-06 17:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622109', 'tblTempUsageDetail_20' ) end [2025-03-06 17:49:27] Production.ERROR: pbx prc_insertCDR start [2025-03-06 17:49:27] Production.ERROR: pbx prc_insertCDR end [2025-03-06 17:49:27] Production.INFO: ==18889== Releasing lock... [2025-03-06 17:49:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 17:49:27] Production.INFO: 58.75 MB #Memory Used# [2025-03-06 17:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 14:50:06 [end_date_ymd] => 2025-03-06 17:50:06 [RateCDR] => 1 ) [2025-03-06 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-03-06 14:50:06' and `end` < '2025-03-06 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-03-06 17:50:21] Production.INFO: count ==4120 [2025-03-06 17:50:22] Production.ERROR: pbx CDR StartTime 2025-03-06 14:50:06 - End Time 2025-03-06 17:50:06 [2025-03-06 17:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 17:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622115', 'tblTempUsageDetail_20' ) start [2025-03-06 17:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622115', 'tblTempUsageDetail_20' ) end [2025-03-06 17:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622115', 'tblTempVendorCDR_20' ) start [2025-03-06 17:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622115', 'tblTempVendorCDR_20' ) end [2025-03-06 17:50:22] Production.INFO: ProcessCDR(1,14622115,1,1,2) [2025-03-06 17:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14622115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 17:50:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14622115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 17:50:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14622115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 17:50:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14622115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 17:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622115', 'tblTempUsageDetail_20' ) start [2025-03-06 17:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622115', 'tblTempUsageDetail_20' ) end [2025-03-06 17:50:27] Production.ERROR: pbx prc_insertCDR start [2025-03-06 17:50:27] Production.ERROR: pbx prc_insertCDR end [2025-03-06 17:50:27] Production.INFO: ==18963== Releasing lock... [2025-03-06 17:50:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 17:50:27] Production.INFO: 58.75 MB #Memory Used# [2025-03-06 17:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 14:51:06 [end_date_ymd] => 2025-03-06 17:51:06 [RateCDR] => 1 ) [2025-03-06 17: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-03-06 14:51:06' and `end` < '2025-03-06 17: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-03-06 17:51:19] Production.INFO: count ==4090 [2025-03-06 17:51:20] Production.ERROR: pbx CDR StartTime 2025-03-06 14:51:06 - End Time 2025-03-06 17:51:06 [2025-03-06 17:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 17:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622120', 'tblTempUsageDetail_20' ) start [2025-03-06 17:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622120', 'tblTempUsageDetail_20' ) end [2025-03-06 17:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622120', 'tblTempVendorCDR_20' ) start [2025-03-06 17:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622120', 'tblTempVendorCDR_20' ) end [2025-03-06 17:51:20] Production.INFO: ProcessCDR(1,14622120,1,1,2) [2025-03-06 17:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14622120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 17:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14622120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 17:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14622120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 17:51:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14622120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 17:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622120', 'tblTempUsageDetail_20' ) start [2025-03-06 17:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622120', 'tblTempUsageDetail_20' ) end [2025-03-06 17:51:24] Production.ERROR: pbx prc_insertCDR start [2025-03-06 17:51:24] Production.ERROR: pbx prc_insertCDR end [2025-03-06 17:51:24] Production.INFO: ==19035== Releasing lock... [2025-03-06 17:51:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 17:51:24] Production.INFO: 58.5 MB #Memory Used# [2025-03-06 17:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 14:52:05 [end_date_ymd] => 2025-03-06 17:52:05 [RateCDR] => 1 ) [2025-03-06 17:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 14:52:05' and `end` < '2025-03-06 17:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 17:52:18] Production.INFO: count ==4082 [2025-03-06 17:52:19] Production.ERROR: pbx CDR StartTime 2025-03-06 14:52:05 - End Time 2025-03-06 17:52:05 [2025-03-06 17:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 17:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622125', 'tblTempUsageDetail_20' ) start [2025-03-06 17:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622125', 'tblTempUsageDetail_20' ) end [2025-03-06 17:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622125', 'tblTempVendorCDR_20' ) start [2025-03-06 17:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622125', 'tblTempVendorCDR_20' ) end [2025-03-06 17:52:19] Production.INFO: ProcessCDR(1,14622125,1,1,2) [2025-03-06 17:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14622125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 17:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14622125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 17:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14622125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 17:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14622125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 17:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622125', 'tblTempUsageDetail_20' ) start [2025-03-06 17:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622125', 'tblTempUsageDetail_20' ) end [2025-03-06 17:52:23] Production.ERROR: pbx prc_insertCDR start [2025-03-06 17:52:23] Production.ERROR: pbx prc_insertCDR end [2025-03-06 17:52:23] Production.INFO: ==19112== Releasing lock... [2025-03-06 17:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 17:52:23] Production.INFO: 58.5 MB #Memory Used# [2025-03-06 17:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 14:53:05 [end_date_ymd] => 2025-03-06 17:53:05 [RateCDR] => 1 ) [2025-03-06 17:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 14:53:05' and `end` < '2025-03-06 17:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 17:53:18] Production.INFO: count ==4062 [2025-03-06 17:53:19] Production.ERROR: pbx CDR StartTime 2025-03-06 14:53:05 - End Time 2025-03-06 17:53:05 [2025-03-06 17:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 17:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622130', 'tblTempUsageDetail_20' ) start [2025-03-06 17:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622130', 'tblTempUsageDetail_20' ) end [2025-03-06 17:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622130', 'tblTempVendorCDR_20' ) start [2025-03-06 17:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622130', 'tblTempVendorCDR_20' ) end [2025-03-06 17:53:20] Production.INFO: ProcessCDR(1,14622130,1,1,2) [2025-03-06 17:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14622130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 17:53:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14622130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 17:53:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14622130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 17:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14622130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 17:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622130', 'tblTempUsageDetail_20' ) start [2025-03-06 17:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622130', 'tblTempUsageDetail_20' ) end [2025-03-06 17:53:24] Production.ERROR: pbx prc_insertCDR start [2025-03-06 17:53:24] Production.ERROR: pbx prc_insertCDR end [2025-03-06 17:53:24] Production.INFO: ==19186== Releasing lock... [2025-03-06 17:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 17:53:24] Production.INFO: 58.25 MB #Memory Used# [2025-03-06 17:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 14:54:06 [end_date_ymd] => 2025-03-06 17:54:06 [RateCDR] => 1 ) [2025-03-06 17: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-03-06 14:54:06' and `end` < '2025-03-06 17: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-03-06 17:54:19] Production.INFO: count ==4041 [2025-03-06 17:54:20] Production.ERROR: pbx CDR StartTime 2025-03-06 14:54:06 - End Time 2025-03-06 17:54:06 [2025-03-06 17:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 17:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622135', 'tblTempUsageDetail_20' ) start [2025-03-06 17:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622135', 'tblTempUsageDetail_20' ) end [2025-03-06 17:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622135', 'tblTempVendorCDR_20' ) start [2025-03-06 17:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622135', 'tblTempVendorCDR_20' ) end [2025-03-06 17:54:20] Production.INFO: ProcessCDR(1,14622135,1,1,2) [2025-03-06 17:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14622135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 17:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14622135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 17:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14622135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 17:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14622135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 17:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622135', 'tblTempUsageDetail_20' ) start [2025-03-06 17:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622135', 'tblTempUsageDetail_20' ) end [2025-03-06 17:54:23] Production.ERROR: pbx prc_insertCDR start [2025-03-06 17:54:23] Production.ERROR: pbx prc_insertCDR end [2025-03-06 17:54:23] Production.INFO: ==19256== Releasing lock... [2025-03-06 17:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 17:54:23] Production.INFO: 58.25 MB #Memory Used# [2025-03-06 17:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 14:55:06 [end_date_ymd] => 2025-03-06 17:55:06 [RateCDR] => 1 ) [2025-03-06 17:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 14:55:06' and `end` < '2025-03-06 17:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 17:55:19] Production.INFO: count ==4011 [2025-03-06 17:55:21] Production.ERROR: pbx CDR StartTime 2025-03-06 14:55:06 - End Time 2025-03-06 17:55:06 [2025-03-06 17:55:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 17:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622140', 'tblTempUsageDetail_20' ) start [2025-03-06 17:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622140', 'tblTempUsageDetail_20' ) end [2025-03-06 17:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622140', 'tblTempVendorCDR_20' ) start [2025-03-06 17:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622140', 'tblTempVendorCDR_20' ) end [2025-03-06 17:55:21] Production.INFO: ProcessCDR(1,14622140,1,1,2) [2025-03-06 17:55:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14622140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 17:55:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14622140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 17:55:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14622140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 17:55:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14622140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 17:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622140', 'tblTempUsageDetail_20' ) start [2025-03-06 17:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622140', 'tblTempUsageDetail_20' ) end [2025-03-06 17:55:26] Production.ERROR: pbx prc_insertCDR start [2025-03-06 17:55:26] Production.ERROR: pbx prc_insertCDR end [2025-03-06 17:55:26] Production.INFO: ==19326== Releasing lock... [2025-03-06 17:55:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 17:55:26] Production.INFO: 58 MB #Memory Used# [2025-03-06 17:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 14:56:05 [end_date_ymd] => 2025-03-06 17:56:05 [RateCDR] => 1 ) [2025-03-06 17:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 14:56:05' and `end` < '2025-03-06 17:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 17:56:18] Production.INFO: count ==3943 [2025-03-06 17:56:20] Production.ERROR: pbx CDR StartTime 2025-03-06 14:56:05 - End Time 2025-03-06 17:56:05 [2025-03-06 17:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 17:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622145', 'tblTempUsageDetail_20' ) start [2025-03-06 17:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622145', 'tblTempUsageDetail_20' ) end [2025-03-06 17:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622145', 'tblTempVendorCDR_20' ) start [2025-03-06 17:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622145', 'tblTempVendorCDR_20' ) end [2025-03-06 17:56:20] Production.INFO: ProcessCDR(1,14622145,1,1,2) [2025-03-06 17:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14622145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 17:56:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14622145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 17:56:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14622145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 17:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14622145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 17:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622145', 'tblTempUsageDetail_20' ) start [2025-03-06 17:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622145', 'tblTempUsageDetail_20' ) end [2025-03-06 17:56:24] Production.ERROR: pbx prc_insertCDR start [2025-03-06 17:56:24] Production.ERROR: pbx prc_insertCDR end [2025-03-06 17:56:25] Production.INFO: ==19405== Releasing lock... [2025-03-06 17:56:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 17:56:25] Production.INFO: 57.5 MB #Memory Used# [2025-03-06 17:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 14:57:05 [end_date_ymd] => 2025-03-06 17:57:05 [RateCDR] => 1 ) [2025-03-06 17:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 14:57:05' and `end` < '2025-03-06 17:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 17:57:17] Production.INFO: count ==3920 [2025-03-06 17:57:19] Production.ERROR: pbx CDR StartTime 2025-03-06 14:57:05 - End Time 2025-03-06 17:57:05 [2025-03-06 17:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 17:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622150', 'tblTempUsageDetail_20' ) start [2025-03-06 17:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622150', 'tblTempUsageDetail_20' ) end [2025-03-06 17:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622150', 'tblTempVendorCDR_20' ) start [2025-03-06 17:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622150', 'tblTempVendorCDR_20' ) end [2025-03-06 17:57:19] Production.INFO: ProcessCDR(1,14622150,1,1,2) [2025-03-06 17:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14622150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 17:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14622150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 17:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14622150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 17:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14622150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 17:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622150', 'tblTempUsageDetail_20' ) start [2025-03-06 17:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622150', 'tblTempUsageDetail_20' ) end [2025-03-06 17:57:24] Production.ERROR: pbx prc_insertCDR start [2025-03-06 17:57:24] Production.ERROR: pbx prc_insertCDR end [2025-03-06 17:57:24] Production.INFO: ==19480== Releasing lock... [2025-03-06 17:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 17:57:24] Production.INFO: 57.25 MB #Memory Used# [2025-03-06 17:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 14:58:05 [end_date_ymd] => 2025-03-06 17:58:05 [RateCDR] => 1 ) [2025-03-06 17:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 14:58:05' and `end` < '2025-03-06 17:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 17:58:18] Production.INFO: count ==3847 [2025-03-06 17:58:19] Production.ERROR: pbx CDR StartTime 2025-03-06 14:58:05 - End Time 2025-03-06 17:58:05 [2025-03-06 17:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 17:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622155', 'tblTempUsageDetail_20' ) start [2025-03-06 17:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622155', 'tblTempUsageDetail_20' ) end [2025-03-06 17:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622155', 'tblTempVendorCDR_20' ) start [2025-03-06 17:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622155', 'tblTempVendorCDR_20' ) end [2025-03-06 17:58:20] Production.INFO: ProcessCDR(1,14622155,1,1,2) [2025-03-06 17:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14622155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 17:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14622155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 17:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14622155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 17:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14622155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 17:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622155', 'tblTempUsageDetail_20' ) start [2025-03-06 17:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622155', 'tblTempUsageDetail_20' ) end [2025-03-06 17:58:23] Production.ERROR: pbx prc_insertCDR start [2025-03-06 17:58:23] Production.ERROR: pbx prc_insertCDR end [2025-03-06 17:58:23] Production.INFO: ==19551== Releasing lock... [2025-03-06 17:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 17:58:23] Production.INFO: 57.25 MB #Memory Used# [2025-03-06 17:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 14:59:06 [end_date_ymd] => 2025-03-06 17:59:06 [RateCDR] => 1 ) [2025-03-06 17: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-03-06 14:59:06' and `end` < '2025-03-06 17: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-03-06 17:59:19] Production.INFO: count ==3791 [2025-03-06 17:59:20] Production.ERROR: pbx CDR StartTime 2025-03-06 14:59:06 - End Time 2025-03-06 17:59:06 [2025-03-06 17:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 17:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622160', 'tblTempUsageDetail_20' ) start [2025-03-06 17:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622160', 'tblTempUsageDetail_20' ) end [2025-03-06 17:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622160', 'tblTempVendorCDR_20' ) start [2025-03-06 17:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622160', 'tblTempVendorCDR_20' ) end [2025-03-06 17:59:20] Production.INFO: ProcessCDR(1,14622160,1,1,2) [2025-03-06 17:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14622160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 17:59:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14622160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 17:59:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14622160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 17:59:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14622160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 17:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622160', 'tblTempUsageDetail_20' ) start [2025-03-06 17:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622160', 'tblTempUsageDetail_20' ) end [2025-03-06 17:59:25] Production.ERROR: pbx prc_insertCDR start [2025-03-06 17:59:25] Production.ERROR: pbx prc_insertCDR end [2025-03-06 17:59:25] Production.INFO: ==19622== Releasing lock... [2025-03-06 17:59:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 17:59:25] Production.INFO: 56.25 MB #Memory Used# [2025-03-06 18:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 15:00:06 [end_date_ymd] => 2025-03-06 18:00:06 [RateCDR] => 1 ) [2025-03-06 18:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 15:00:06' and `end` < '2025-03-06 18:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 18:00:19] Production.INFO: count ==3765 [2025-03-06 18:00:20] Production.ERROR: pbx CDR StartTime 2025-03-06 15:00:06 - End Time 2025-03-06 18:00:06 [2025-03-06 18:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 18:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622166', 'tblTempUsageDetail_20' ) start [2025-03-06 18:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622166', 'tblTempUsageDetail_20' ) end [2025-03-06 18:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622166', 'tblTempVendorCDR_20' ) start [2025-03-06 18:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622166', 'tblTempVendorCDR_20' ) end [2025-03-06 18:00:20] Production.INFO: ProcessCDR(1,14622166,1,1,2) [2025-03-06 18:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14622166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 18:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14622166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 18:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14622166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 18:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14622166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 18:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622166', 'tblTempUsageDetail_20' ) start [2025-03-06 18:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622166', 'tblTempUsageDetail_20' ) end [2025-03-06 18:00:24] Production.ERROR: pbx prc_insertCDR start [2025-03-06 18:00:24] Production.ERROR: pbx prc_insertCDR end [2025-03-06 18:00:24] Production.INFO: ==19697== Releasing lock... [2025-03-06 18:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 18:00:24] Production.INFO: 56 MB #Memory Used# [2025-03-06 18:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 15:01:05 [end_date_ymd] => 2025-03-06 18:01:05 [RateCDR] => 1 ) [2025-03-06 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-03-06 15:01:05' and `end` < '2025-03-06 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-03-06 18:01:18] Production.INFO: count ==3714 [2025-03-06 18:01:19] Production.ERROR: pbx CDR StartTime 2025-03-06 15:01:05 - End Time 2025-03-06 18:01:05 [2025-03-06 18:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 18:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622171', 'tblTempUsageDetail_20' ) start [2025-03-06 18:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622171', 'tblTempUsageDetail_20' ) end [2025-03-06 18:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622171', 'tblTempVendorCDR_20' ) start [2025-03-06 18:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622171', 'tblTempVendorCDR_20' ) end [2025-03-06 18:01:19] Production.INFO: ProcessCDR(1,14622171,1,1,2) [2025-03-06 18:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14622171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 18:01:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14622171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 18:01:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14622171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 18:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14622171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 18:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622171', 'tblTempUsageDetail_20' ) start [2025-03-06 18:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622171', 'tblTempUsageDetail_20' ) end [2025-03-06 18:01:24] Production.ERROR: pbx prc_insertCDR start [2025-03-06 18:01:24] Production.ERROR: pbx prc_insertCDR end [2025-03-06 18:01:24] Production.INFO: ==19791== Releasing lock... [2025-03-06 18:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 18:01:24] Production.INFO: 55.75 MB #Memory Used# [2025-03-06 18:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 15:02:05 [end_date_ymd] => 2025-03-06 18:02:05 [RateCDR] => 1 ) [2025-03-06 18:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 15:02:05' and `end` < '2025-03-06 18:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 18:02:18] Production.INFO: count ==3695 [2025-03-06 18:02:19] Production.ERROR: pbx CDR StartTime 2025-03-06 15:02:05 - End Time 2025-03-06 18:02:05 [2025-03-06 18:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 18:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622176', 'tblTempUsageDetail_20' ) start [2025-03-06 18:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622176', 'tblTempUsageDetail_20' ) end [2025-03-06 18:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622176', 'tblTempVendorCDR_20' ) start [2025-03-06 18:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622176', 'tblTempVendorCDR_20' ) end [2025-03-06 18:02:19] Production.INFO: ProcessCDR(1,14622176,1,1,2) [2025-03-06 18:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14622176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 18:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14622176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 18:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14622176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 18:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14622176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 18:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622176', 'tblTempUsageDetail_20' ) start [2025-03-06 18:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622176', 'tblTempUsageDetail_20' ) end [2025-03-06 18:02:23] Production.ERROR: pbx prc_insertCDR start [2025-03-06 18:02:23] Production.ERROR: pbx prc_insertCDR end [2025-03-06 18:02:23] Production.INFO: ==19864== Releasing lock... [2025-03-06 18:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 18:02:23] Production.INFO: 56.5 MB #Memory Used# [2025-03-06 18:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 15:03:06 [end_date_ymd] => 2025-03-06 18:03:06 [RateCDR] => 1 ) [2025-03-06 18:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 15:03:06' and `end` < '2025-03-06 18:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 18:03:19] Production.INFO: count ==3676 [2025-03-06 18:03:20] Production.ERROR: pbx CDR StartTime 2025-03-06 15:03:06 - End Time 2025-03-06 18:03:06 [2025-03-06 18:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 18:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622181', 'tblTempUsageDetail_20' ) start [2025-03-06 18:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622181', 'tblTempUsageDetail_20' ) end [2025-03-06 18:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622181', 'tblTempVendorCDR_20' ) start [2025-03-06 18:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622181', 'tblTempVendorCDR_20' ) end [2025-03-06 18:03:20] Production.INFO: ProcessCDR(1,14622181,1,1,2) [2025-03-06 18:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14622181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 18:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14622181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 18:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14622181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 18:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14622181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 18:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622181', 'tblTempUsageDetail_20' ) start [2025-03-06 18:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622181', 'tblTempUsageDetail_20' ) end [2025-03-06 18:03:23] Production.ERROR: pbx prc_insertCDR start [2025-03-06 18:03:23] Production.ERROR: pbx prc_insertCDR end [2025-03-06 18:03:23] Production.INFO: ==19941== Releasing lock... [2025-03-06 18:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 18:03:23] Production.INFO: 55.75 MB #Memory Used# [2025-03-06 18:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 15:04:05 [end_date_ymd] => 2025-03-06 18:04:05 [RateCDR] => 1 ) [2025-03-06 18:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 15:04:05' and `end` < '2025-03-06 18:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 18:04:18] Production.INFO: count ==3665 [2025-03-06 18:04:19] Production.ERROR: pbx CDR StartTime 2025-03-06 15:04:05 - End Time 2025-03-06 18:04:05 [2025-03-06 18:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 18:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622186', 'tblTempUsageDetail_20' ) start [2025-03-06 18:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622186', 'tblTempUsageDetail_20' ) end [2025-03-06 18:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622186', 'tblTempVendorCDR_20' ) start [2025-03-06 18:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622186', 'tblTempVendorCDR_20' ) end [2025-03-06 18:04:19] Production.INFO: ProcessCDR(1,14622186,1,1,2) [2025-03-06 18:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14622186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 18:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14622186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 18:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14622186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 18:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14622186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 18:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622186', 'tblTempUsageDetail_20' ) start [2025-03-06 18:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622186', 'tblTempUsageDetail_20' ) end [2025-03-06 18:04:23] Production.ERROR: pbx prc_insertCDR start [2025-03-06 18:04:23] Production.ERROR: pbx prc_insertCDR end [2025-03-06 18:04:23] Production.INFO: ==20060== Releasing lock... [2025-03-06 18:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 18:04:23] Production.INFO: 56.25 MB #Memory Used# [2025-03-06 18:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 15:05:05 [end_date_ymd] => 2025-03-06 18:05:05 [RateCDR] => 1 ) [2025-03-06 18:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 15:05:05' and `end` < '2025-03-06 18:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 18:05:18] Production.INFO: count ==3661 [2025-03-06 18:05:19] Production.ERROR: pbx CDR StartTime 2025-03-06 15:05:05 - End Time 2025-03-06 18:05:05 [2025-03-06 18:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 18:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622191', 'tblTempUsageDetail_20' ) start [2025-03-06 18:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622191', 'tblTempUsageDetail_20' ) end [2025-03-06 18:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622191', 'tblTempVendorCDR_20' ) start [2025-03-06 18:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622191', 'tblTempVendorCDR_20' ) end [2025-03-06 18:05:20] Production.INFO: ProcessCDR(1,14622191,1,1,2) [2025-03-06 18:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14622191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 18:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14622191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 18:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14622191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 18:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14622191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 18:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622191', 'tblTempUsageDetail_20' ) start [2025-03-06 18:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622191', 'tblTempUsageDetail_20' ) end [2025-03-06 18:05:23] Production.ERROR: pbx prc_insertCDR start [2025-03-06 18:05:23] Production.ERROR: pbx prc_insertCDR end [2025-03-06 18:05:23] Production.INFO: ==20134== Releasing lock... [2025-03-06 18:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 18:05:23] Production.INFO: 55.75 MB #Memory Used# [2025-03-06 18:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 15:06:05 [end_date_ymd] => 2025-03-06 18:06:05 [RateCDR] => 1 ) [2025-03-06 18:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 15:06:05' and `end` < '2025-03-06 18:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 18:06:18] Production.INFO: count ==3658 [2025-03-06 18:06:19] Production.ERROR: pbx CDR StartTime 2025-03-06 15:06:05 - End Time 2025-03-06 18:06:05 [2025-03-06 18:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 18:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622196', 'tblTempUsageDetail_20' ) start [2025-03-06 18:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622196', 'tblTempUsageDetail_20' ) end [2025-03-06 18:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622196', 'tblTempVendorCDR_20' ) start [2025-03-06 18:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622196', 'tblTempVendorCDR_20' ) end [2025-03-06 18:06:19] Production.INFO: ProcessCDR(1,14622196,1,1,2) [2025-03-06 18:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14622196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 18:06:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14622196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 18:06:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14622196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 18:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14622196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 18:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622196', 'tblTempUsageDetail_20' ) start [2025-03-06 18:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622196', 'tblTempUsageDetail_20' ) end [2025-03-06 18:06:24] Production.ERROR: pbx prc_insertCDR start [2025-03-06 18:06:24] Production.ERROR: pbx prc_insertCDR end [2025-03-06 18:06:24] Production.INFO: ==20208== Releasing lock... [2025-03-06 18:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 18:06:24] Production.INFO: 56.25 MB #Memory Used# [2025-03-06 18:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 15:07:06 [end_date_ymd] => 2025-03-06 18:07:06 [RateCDR] => 1 ) [2025-03-06 18: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-03-06 15:07:06' and `end` < '2025-03-06 18: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-03-06 18:07:19] Production.INFO: count ==3653 [2025-03-06 18:07:20] Production.ERROR: pbx CDR StartTime 2025-03-06 15:07:06 - End Time 2025-03-06 18:07:06 [2025-03-06 18:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 18:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622201', 'tblTempUsageDetail_20' ) start [2025-03-06 18:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622201', 'tblTempUsageDetail_20' ) end [2025-03-06 18:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622201', 'tblTempVendorCDR_20' ) start [2025-03-06 18:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622201', 'tblTempVendorCDR_20' ) end [2025-03-06 18:07:20] Production.INFO: ProcessCDR(1,14622201,1,1,2) [2025-03-06 18:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14622201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 18:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14622201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 18:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14622201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 18:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14622201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 18:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622201', 'tblTempUsageDetail_20' ) start [2025-03-06 18:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622201', 'tblTempUsageDetail_20' ) end [2025-03-06 18:07:23] Production.ERROR: pbx prc_insertCDR start [2025-03-06 18:07:23] Production.ERROR: pbx prc_insertCDR end [2025-03-06 18:07:23] Production.INFO: ==20283== Releasing lock... [2025-03-06 18:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 18:07:23] Production.INFO: 55.5 MB #Memory Used# [2025-03-06 18:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 15:08:05 [end_date_ymd] => 2025-03-06 18:08:05 [RateCDR] => 1 ) [2025-03-06 18:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 15:08:05' and `end` < '2025-03-06 18:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 18:08:18] Production.INFO: count ==3636 [2025-03-06 18:08:19] Production.ERROR: pbx CDR StartTime 2025-03-06 15:08:05 - End Time 2025-03-06 18:08:05 [2025-03-06 18:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 18:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622206', 'tblTempUsageDetail_20' ) start [2025-03-06 18:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622206', 'tblTempUsageDetail_20' ) end [2025-03-06 18:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622206', 'tblTempVendorCDR_20' ) start [2025-03-06 18:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622206', 'tblTempVendorCDR_20' ) end [2025-03-06 18:08:19] Production.INFO: ProcessCDR(1,14622206,1,1,2) [2025-03-06 18:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14622206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 18:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14622206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 18:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14622206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 18:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14622206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 18:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622206', 'tblTempUsageDetail_20' ) start [2025-03-06 18:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622206', 'tblTempUsageDetail_20' ) end [2025-03-06 18:08:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 18:08:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 18:08:22] Production.INFO: ==20366== Releasing lock... [2025-03-06 18:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 18:08:22] Production.INFO: 55.25 MB #Memory Used# [2025-03-06 18:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 15:09:06 [end_date_ymd] => 2025-03-06 18:09:06 [RateCDR] => 1 ) [2025-03-06 18: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-03-06 15:09:06' and `end` < '2025-03-06 18: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-03-06 18:09:18] Production.INFO: count ==3628 [2025-03-06 18:09:19] Production.ERROR: pbx CDR StartTime 2025-03-06 15:09:06 - End Time 2025-03-06 18:09:06 [2025-03-06 18:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 18:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622211', 'tblTempUsageDetail_20' ) start [2025-03-06 18:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622211', 'tblTempUsageDetail_20' ) end [2025-03-06 18:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622211', 'tblTempVendorCDR_20' ) start [2025-03-06 18:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622211', 'tblTempVendorCDR_20' ) end [2025-03-06 18:09:20] Production.INFO: ProcessCDR(1,14622211,1,1,2) [2025-03-06 18:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14622211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 18:09:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14622211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 18:09:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14622211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 18:09:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14622211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 18:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622211', 'tblTempUsageDetail_20' ) start [2025-03-06 18:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622211', 'tblTempUsageDetail_20' ) end [2025-03-06 18:09:25] Production.ERROR: pbx prc_insertCDR start [2025-03-06 18:09:25] Production.ERROR: pbx prc_insertCDR end [2025-03-06 18:09:25] Production.INFO: ==20444== Releasing lock... [2025-03-06 18:09:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 18:09:25] Production.INFO: 55.25 MB #Memory Used# [2025-03-06 18:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 15:10:06 [end_date_ymd] => 2025-03-06 18:10:06 [RateCDR] => 1 ) [2025-03-06 18:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 15:10:06' and `end` < '2025-03-06 18:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 18:10:19] Production.INFO: count ==3627 [2025-03-06 18:10:20] Production.ERROR: pbx CDR StartTime 2025-03-06 15:10:06 - End Time 2025-03-06 18:10:06 [2025-03-06 18:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 18:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622217', 'tblTempUsageDetail_20' ) start [2025-03-06 18:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622217', 'tblTempUsageDetail_20' ) end [2025-03-06 18:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622217', 'tblTempVendorCDR_20' ) start [2025-03-06 18:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622217', 'tblTempVendorCDR_20' ) end [2025-03-06 18:10:20] Production.INFO: ProcessCDR(1,14622217,1,1,2) [2025-03-06 18:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14622217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 18:10:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14622217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 18:10:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14622217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 18:10:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14622217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 18:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622217', 'tblTempUsageDetail_20' ) start [2025-03-06 18:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622217', 'tblTempUsageDetail_20' ) end [2025-03-06 18:10:25] Production.ERROR: pbx prc_insertCDR start [2025-03-06 18:10:25] Production.ERROR: pbx prc_insertCDR end [2025-03-06 18:10:25] Production.INFO: ==20523== Releasing lock... [2025-03-06 18:10:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 18:10:25] Production.INFO: 55.75 MB #Memory Used# [2025-03-06 18:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 15:11:05 [end_date_ymd] => 2025-03-06 18:11:05 [RateCDR] => 1 ) [2025-03-06 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-03-06 15:11:05' and `end` < '2025-03-06 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-03-06 18:11:18] Production.INFO: count ==3593 [2025-03-06 18:11:19] Production.ERROR: pbx CDR StartTime 2025-03-06 15:11:05 - End Time 2025-03-06 18:11:05 [2025-03-06 18:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 18:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622222', 'tblTempUsageDetail_20' ) start [2025-03-06 18:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622222', 'tblTempUsageDetail_20' ) end [2025-03-06 18:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622222', 'tblTempVendorCDR_20' ) start [2025-03-06 18:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622222', 'tblTempVendorCDR_20' ) end [2025-03-06 18:11:19] Production.INFO: ProcessCDR(1,14622222,1,1,2) [2025-03-06 18:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14622222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 18:11:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14622222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 18:11:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14622222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 18:11:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14622222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 18:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622222', 'tblTempUsageDetail_20' ) start [2025-03-06 18:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622222', 'tblTempUsageDetail_20' ) end [2025-03-06 18:11:24] Production.ERROR: pbx prc_insertCDR start [2025-03-06 18:11:24] Production.ERROR: pbx prc_insertCDR end [2025-03-06 18:11:24] Production.INFO: ==20599== Releasing lock... [2025-03-06 18:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 18:11:24] Production.INFO: 55.25 MB #Memory Used# [2025-03-06 18:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 15:12:05 [end_date_ymd] => 2025-03-06 18:12:05 [RateCDR] => 1 ) [2025-03-06 18:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 15:12:05' and `end` < '2025-03-06 18:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 18:12:18] Production.INFO: count ==3578 [2025-03-06 18:12:19] Production.ERROR: pbx CDR StartTime 2025-03-06 15:12:05 - End Time 2025-03-06 18:12:05 [2025-03-06 18:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 18:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622227', 'tblTempUsageDetail_20' ) start [2025-03-06 18:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622227', 'tblTempUsageDetail_20' ) end [2025-03-06 18:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622227', 'tblTempVendorCDR_20' ) start [2025-03-06 18:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622227', 'tblTempVendorCDR_20' ) end [2025-03-06 18:12:19] Production.INFO: ProcessCDR(1,14622227,1,1,2) [2025-03-06 18:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14622227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 18:12:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14622227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 18:12:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14622227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 18:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14622227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 18:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622227', 'tblTempUsageDetail_20' ) start [2025-03-06 18:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622227', 'tblTempUsageDetail_20' ) end [2025-03-06 18:12:24] Production.ERROR: pbx prc_insertCDR start [2025-03-06 18:12:24] Production.ERROR: pbx prc_insertCDR end [2025-03-06 18:12:24] Production.INFO: ==20678== Releasing lock... [2025-03-06 18:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 18:12:24] Production.INFO: 55.5 MB #Memory Used# [2025-03-06 18:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 15:13:05 [end_date_ymd] => 2025-03-06 18:13:05 [RateCDR] => 1 ) [2025-03-06 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-03-06 15:13:05' and `end` < '2025-03-06 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-03-06 18:13:18] Production.INFO: count ==3552 [2025-03-06 18:13:19] Production.ERROR: pbx CDR StartTime 2025-03-06 15:13:05 - End Time 2025-03-06 18:13:05 [2025-03-06 18:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 18:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622232', 'tblTempUsageDetail_20' ) start [2025-03-06 18:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622232', 'tblTempUsageDetail_20' ) end [2025-03-06 18:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622232', 'tblTempVendorCDR_20' ) start [2025-03-06 18:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622232', 'tblTempVendorCDR_20' ) end [2025-03-06 18:13:19] Production.INFO: ProcessCDR(1,14622232,1,1,2) [2025-03-06 18:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14622232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 18:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14622232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 18:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14622232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 18:13:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14622232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 18:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622232', 'tblTempUsageDetail_20' ) start [2025-03-06 18:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622232', 'tblTempUsageDetail_20' ) end [2025-03-06 18:13:24] Production.ERROR: pbx prc_insertCDR start [2025-03-06 18:13:24] Production.ERROR: pbx prc_insertCDR end [2025-03-06 18:13:24] Production.INFO: ==20757== Releasing lock... [2025-03-06 18:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 18:13:24] Production.INFO: 55.5 MB #Memory Used# [2025-03-06 18:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 15:14:06 [end_date_ymd] => 2025-03-06 18:14:06 [RateCDR] => 1 ) [2025-03-06 18: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-03-06 15:14:06' and `end` < '2025-03-06 18: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-03-06 18:14:19] Production.INFO: count ==3536 [2025-03-06 18:14:20] Production.ERROR: pbx CDR StartTime 2025-03-06 15:14:06 - End Time 2025-03-06 18:14:06 [2025-03-06 18:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 18:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622237', 'tblTempUsageDetail_20' ) start [2025-03-06 18:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622237', 'tblTempUsageDetail_20' ) end [2025-03-06 18:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622237', 'tblTempVendorCDR_20' ) start [2025-03-06 18:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622237', 'tblTempVendorCDR_20' ) end [2025-03-06 18:14:20] Production.INFO: ProcessCDR(1,14622237,1,1,2) [2025-03-06 18:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14622237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 18:14:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14622237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 18:14:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14622237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 18:14:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14622237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 18:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622237', 'tblTempUsageDetail_20' ) start [2025-03-06 18:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622237', 'tblTempUsageDetail_20' ) end [2025-03-06 18:14:25] Production.ERROR: pbx prc_insertCDR start [2025-03-06 18:14:25] Production.ERROR: pbx prc_insertCDR end [2025-03-06 18:14:25] Production.INFO: ==20836== Releasing lock... [2025-03-06 18:14:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 18:14:25] Production.INFO: 54.5 MB #Memory Used# [2025-03-06 18:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 15:15:05 [end_date_ymd] => 2025-03-06 18:15:05 [RateCDR] => 1 ) [2025-03-06 18: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-03-06 15:15:05' and `end` < '2025-03-06 18: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-03-06 18:15:18] Production.INFO: count ==3519 [2025-03-06 18:15:19] Production.ERROR: pbx CDR StartTime 2025-03-06 15:15:05 - End Time 2025-03-06 18:15:05 [2025-03-06 18:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 18:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622242', 'tblTempUsageDetail_20' ) start [2025-03-06 18:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622242', 'tblTempUsageDetail_20' ) end [2025-03-06 18:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622242', 'tblTempVendorCDR_20' ) start [2025-03-06 18:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622242', 'tblTempVendorCDR_20' ) end [2025-03-06 18:15:19] Production.INFO: ProcessCDR(1,14622242,1,1,2) [2025-03-06 18:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14622242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 18:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14622242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 18:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14622242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 18:15:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14622242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 18:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622242', 'tblTempUsageDetail_20' ) start [2025-03-06 18:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622242', 'tblTempUsageDetail_20' ) end [2025-03-06 18:15:24] Production.ERROR: pbx prc_insertCDR start [2025-03-06 18:15:24] Production.ERROR: pbx prc_insertCDR end [2025-03-06 18:15:24] Production.INFO: ==20913== Releasing lock... [2025-03-06 18:15:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 18:15:24] Production.INFO: 55 MB #Memory Used# [2025-03-06 18:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 15:16:05 [end_date_ymd] => 2025-03-06 18:16:05 [RateCDR] => 1 ) [2025-03-06 18:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 15:16:05' and `end` < '2025-03-06 18:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 18:16:17] Production.INFO: count ==3521 [2025-03-06 18:16:19] Production.ERROR: pbx CDR StartTime 2025-03-06 15:16:05 - End Time 2025-03-06 18:16:05 [2025-03-06 18:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 18:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622247', 'tblTempUsageDetail_20' ) start [2025-03-06 18:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622247', 'tblTempUsageDetail_20' ) end [2025-03-06 18:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622247', 'tblTempVendorCDR_20' ) start [2025-03-06 18:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622247', 'tblTempVendorCDR_20' ) end [2025-03-06 18:16:19] Production.INFO: ProcessCDR(1,14622247,1,1,2) [2025-03-06 18:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14622247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 18:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14622247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 18:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14622247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 18:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14622247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 18:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622247', 'tblTempUsageDetail_20' ) start [2025-03-06 18:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622247', 'tblTempUsageDetail_20' ) end [2025-03-06 18:16:24] Production.ERROR: pbx prc_insertCDR start [2025-03-06 18:16:24] Production.ERROR: pbx prc_insertCDR end [2025-03-06 18:16:24] Production.INFO: ==20989== Releasing lock... [2025-03-06 18:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 18:16:24] Production.INFO: 55.25 MB #Memory Used# [2025-03-06 18:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 15:17:05 [end_date_ymd] => 2025-03-06 18:17:05 [RateCDR] => 1 ) [2025-03-06 18:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 15:17:05' and `end` < '2025-03-06 18:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 18:17:18] Production.INFO: count ==3537 [2025-03-06 18:17:19] Production.ERROR: pbx CDR StartTime 2025-03-06 15:17:05 - End Time 2025-03-06 18:17:05 [2025-03-06 18:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 18:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622252', 'tblTempUsageDetail_20' ) start [2025-03-06 18:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622252', 'tblTempUsageDetail_20' ) end [2025-03-06 18:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622252', 'tblTempVendorCDR_20' ) start [2025-03-06 18:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622252', 'tblTempVendorCDR_20' ) end [2025-03-06 18:17:20] Production.INFO: ProcessCDR(1,14622252,1,1,2) [2025-03-06 18:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14622252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 18:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14622252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 18:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14622252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 18:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14622252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 18:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622252', 'tblTempUsageDetail_20' ) start [2025-03-06 18:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622252', 'tblTempUsageDetail_20' ) end [2025-03-06 18:17:23] Production.ERROR: pbx prc_insertCDR start [2025-03-06 18:17:23] Production.ERROR: pbx prc_insertCDR end [2025-03-06 18:17:23] Production.INFO: ==21067== Releasing lock... [2025-03-06 18:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 18:17:23] Production.INFO: 55 MB #Memory Used# [2025-03-06 18:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 15:18:05 [end_date_ymd] => 2025-03-06 18:18:05 [RateCDR] => 1 ) [2025-03-06 18:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 15:18:05' and `end` < '2025-03-06 18:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 18:18:18] Production.INFO: count ==3543 [2025-03-06 18:18:19] Production.ERROR: pbx CDR StartTime 2025-03-06 15:18:05 - End Time 2025-03-06 18:18:05 [2025-03-06 18:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 18:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622257', 'tblTempUsageDetail_20' ) start [2025-03-06 18:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622257', 'tblTempUsageDetail_20' ) end [2025-03-06 18:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622257', 'tblTempVendorCDR_20' ) start [2025-03-06 18:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622257', 'tblTempVendorCDR_20' ) end [2025-03-06 18:18:19] Production.INFO: ProcessCDR(1,14622257,1,1,2) [2025-03-06 18:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14622257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 18:18:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14622257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 18:18:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14622257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 18:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14622257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 18:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622257', 'tblTempUsageDetail_20' ) start [2025-03-06 18:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622257', 'tblTempUsageDetail_20' ) end [2025-03-06 18:18:24] Production.ERROR: pbx prc_insertCDR start [2025-03-06 18:18:24] Production.ERROR: pbx prc_insertCDR end [2025-03-06 18:18:24] Production.INFO: ==21143== Releasing lock... [2025-03-06 18:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 18:18:24] Production.INFO: 55.5 MB #Memory Used# [2025-03-06 18:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 15:19:05 [end_date_ymd] => 2025-03-06 18:19:05 [RateCDR] => 1 ) [2025-03-06 18:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 15:19:05' and `end` < '2025-03-06 18:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 18:19:18] Production.INFO: count ==3538 [2025-03-06 18:19:19] Production.ERROR: pbx CDR StartTime 2025-03-06 15:19:05 - End Time 2025-03-06 18:19:05 [2025-03-06 18:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 18:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622262', 'tblTempUsageDetail_20' ) start [2025-03-06 18:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622262', 'tblTempUsageDetail_20' ) end [2025-03-06 18:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622262', 'tblTempVendorCDR_20' ) start [2025-03-06 18:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622262', 'tblTempVendorCDR_20' ) end [2025-03-06 18:19:19] Production.INFO: ProcessCDR(1,14622262,1,1,2) [2025-03-06 18:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14622262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 18:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14622262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 18:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14622262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 18:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14622262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 18:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622262', 'tblTempUsageDetail_20' ) start [2025-03-06 18:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622262', 'tblTempUsageDetail_20' ) end [2025-03-06 18:19:23] Production.ERROR: pbx prc_insertCDR start [2025-03-06 18:19:23] Production.ERROR: pbx prc_insertCDR end [2025-03-06 18:19:23] Production.INFO: ==21261== Releasing lock... [2025-03-06 18:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 18:19:23] Production.INFO: 54.5 MB #Memory Used# [2025-03-06 18:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 15:20:06 [end_date_ymd] => 2025-03-06 18:20:06 [RateCDR] => 1 ) [2025-03-06 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-03-06 15:20:06' and `end` < '2025-03-06 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-03-06 18:20:19] Production.INFO: count ==3531 [2025-03-06 18:20:20] Production.ERROR: pbx CDR StartTime 2025-03-06 15:20:06 - End Time 2025-03-06 18:20:06 [2025-03-06 18:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 18:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622268', 'tblTempUsageDetail_20' ) start [2025-03-06 18:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622268', 'tblTempUsageDetail_20' ) end [2025-03-06 18:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622268', 'tblTempVendorCDR_20' ) start [2025-03-06 18:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622268', 'tblTempVendorCDR_20' ) end [2025-03-06 18:20:20] Production.INFO: ProcessCDR(1,14622268,1,1,2) [2025-03-06 18:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14622268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 18:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14622268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 18:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14622268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 18:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14622268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 18:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622268', 'tblTempUsageDetail_20' ) start [2025-03-06 18:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622268', 'tblTempUsageDetail_20' ) end [2025-03-06 18:20:23] Production.ERROR: pbx prc_insertCDR start [2025-03-06 18:20:23] Production.ERROR: pbx prc_insertCDR end [2025-03-06 18:20:23] Production.INFO: ==21340== Releasing lock... [2025-03-06 18:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 18:20:23] Production.INFO: 55 MB #Memory Used# [2025-03-06 18:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 15:21:05 [end_date_ymd] => 2025-03-06 18:21:05 [RateCDR] => 1 ) [2025-03-06 18:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 15:21:05' and `end` < '2025-03-06 18:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 18:21:18] Production.INFO: count ==3476 [2025-03-06 18:21:19] Production.ERROR: pbx CDR StartTime 2025-03-06 15:21:05 - End Time 2025-03-06 18:21:05 [2025-03-06 18:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 18:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622273', 'tblTempUsageDetail_20' ) start [2025-03-06 18:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622273', 'tblTempUsageDetail_20' ) end [2025-03-06 18:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622273', 'tblTempVendorCDR_20' ) start [2025-03-06 18:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622273', 'tblTempVendorCDR_20' ) end [2025-03-06 18:21:19] Production.INFO: ProcessCDR(1,14622273,1,1,2) [2025-03-06 18:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14622273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 18:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14622273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 18:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14622273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 18:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14622273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 18:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622273', 'tblTempUsageDetail_20' ) start [2025-03-06 18:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622273', 'tblTempUsageDetail_20' ) end [2025-03-06 18:21:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 18:21:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 18:21:22] Production.INFO: ==21420== Releasing lock... [2025-03-06 18:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 18:21:22] Production.INFO: 54.25 MB #Memory Used# [2025-03-06 18:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 15:22:05 [end_date_ymd] => 2025-03-06 18:22:05 [RateCDR] => 1 ) [2025-03-06 18:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 15:22:05' and `end` < '2025-03-06 18:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 18:22:18] Production.INFO: count ==3467 [2025-03-06 18:22:19] Production.ERROR: pbx CDR StartTime 2025-03-06 15:22:05 - End Time 2025-03-06 18:22:05 [2025-03-06 18:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 18:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622278', 'tblTempUsageDetail_20' ) start [2025-03-06 18:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622278', 'tblTempUsageDetail_20' ) end [2025-03-06 18:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622278', 'tblTempVendorCDR_20' ) start [2025-03-06 18:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622278', 'tblTempVendorCDR_20' ) end [2025-03-06 18:22:20] Production.INFO: ProcessCDR(1,14622278,1,1,2) [2025-03-06 18:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14622278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 18:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14622278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 18:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14622278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 18:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14622278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 18:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622278', 'tblTempUsageDetail_20' ) start [2025-03-06 18:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622278', 'tblTempUsageDetail_20' ) end [2025-03-06 18:22:23] Production.ERROR: pbx prc_insertCDR start [2025-03-06 18:22:23] Production.ERROR: pbx prc_insertCDR end [2025-03-06 18:22:23] Production.INFO: ==21499== Releasing lock... [2025-03-06 18:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 18:22:23] Production.INFO: 54.5 MB #Memory Used# [2025-03-06 18:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 15:23:05 [end_date_ymd] => 2025-03-06 18:23:05 [RateCDR] => 1 ) [2025-03-06 18:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 15:23:05' and `end` < '2025-03-06 18:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 18:23:18] Production.INFO: count ==3459 [2025-03-06 18:23:19] Production.ERROR: pbx CDR StartTime 2025-03-06 15:23:05 - End Time 2025-03-06 18:23:05 [2025-03-06 18:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 18:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622283', 'tblTempUsageDetail_20' ) start [2025-03-06 18:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622283', 'tblTempUsageDetail_20' ) end [2025-03-06 18:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622283', 'tblTempVendorCDR_20' ) start [2025-03-06 18:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622283', 'tblTempVendorCDR_20' ) end [2025-03-06 18:23:19] Production.INFO: ProcessCDR(1,14622283,1,1,2) [2025-03-06 18:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14622283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 18:23:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14622283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 18:23:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14622283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 18:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14622283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 18:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622283', 'tblTempUsageDetail_20' ) start [2025-03-06 18:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622283', 'tblTempUsageDetail_20' ) end [2025-03-06 18:23:24] Production.ERROR: pbx prc_insertCDR start [2025-03-06 18:23:24] Production.ERROR: pbx prc_insertCDR end [2025-03-06 18:23:24] Production.INFO: ==21576== Releasing lock... [2025-03-06 18:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 18:23:24] Production.INFO: 54.75 MB #Memory Used# [2025-03-06 18:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 15:24:06 [end_date_ymd] => 2025-03-06 18:24:06 [RateCDR] => 1 ) [2025-03-06 18: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-03-06 15:24:06' and `end` < '2025-03-06 18: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-03-06 18:24:19] Production.INFO: count ==3447 [2025-03-06 18:24:20] Production.ERROR: pbx CDR StartTime 2025-03-06 15:24:06 - End Time 2025-03-06 18:24:06 [2025-03-06 18:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 18:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622288', 'tblTempUsageDetail_20' ) start [2025-03-06 18:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622288', 'tblTempUsageDetail_20' ) end [2025-03-06 18:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622288', 'tblTempVendorCDR_20' ) start [2025-03-06 18:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622288', 'tblTempVendorCDR_20' ) end [2025-03-06 18:24:20] Production.INFO: ProcessCDR(1,14622288,1,1,2) [2025-03-06 18:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14622288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 18:24:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14622288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 18:24:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14622288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 18:24:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14622288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 18:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622288', 'tblTempUsageDetail_20' ) start [2025-03-06 18:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622288', 'tblTempUsageDetail_20' ) end [2025-03-06 18:24:25] Production.ERROR: pbx prc_insertCDR start [2025-03-06 18:24:25] Production.ERROR: pbx prc_insertCDR end [2025-03-06 18:24:25] Production.INFO: ==21653== Releasing lock... [2025-03-06 18:24:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 18:24:25] Production.INFO: 53.75 MB #Memory Used# [2025-03-06 18:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 15:25:05 [end_date_ymd] => 2025-03-06 18:25:05 [RateCDR] => 1 ) [2025-03-06 18:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 15:25:05' and `end` < '2025-03-06 18:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 18:25:18] Production.INFO: count ==3428 [2025-03-06 18:25:19] Production.ERROR: pbx CDR StartTime 2025-03-06 15:25:05 - End Time 2025-03-06 18:25:05 [2025-03-06 18:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 18:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622293', 'tblTempUsageDetail_20' ) start [2025-03-06 18:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622293', 'tblTempUsageDetail_20' ) end [2025-03-06 18:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622293', 'tblTempVendorCDR_20' ) start [2025-03-06 18:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622293', 'tblTempVendorCDR_20' ) end [2025-03-06 18:25:19] Production.INFO: ProcessCDR(1,14622293,1,1,2) [2025-03-06 18:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14622293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 18:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14622293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 18:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14622293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 18:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14622293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 18:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622293', 'tblTempUsageDetail_20' ) start [2025-03-06 18:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622293', 'tblTempUsageDetail_20' ) end [2025-03-06 18:25:24] Production.ERROR: pbx prc_insertCDR start [2025-03-06 18:25:24] Production.ERROR: pbx prc_insertCDR end [2025-03-06 18:25:24] Production.INFO: ==21727== Releasing lock... [2025-03-06 18:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 18:25:24] Production.INFO: 53.75 MB #Memory Used# [2025-03-06 18:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 15:26:05 [end_date_ymd] => 2025-03-06 18:26:05 [RateCDR] => 1 ) [2025-03-06 18:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 15:26:05' and `end` < '2025-03-06 18:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 18:26:18] Production.INFO: count ==3417 [2025-03-06 18:26:19] Production.ERROR: pbx CDR StartTime 2025-03-06 15:26:05 - End Time 2025-03-06 18:26:05 [2025-03-06 18:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 18:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622298', 'tblTempUsageDetail_20' ) start [2025-03-06 18:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622298', 'tblTempUsageDetail_20' ) end [2025-03-06 18:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622298', 'tblTempVendorCDR_20' ) start [2025-03-06 18:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622298', 'tblTempVendorCDR_20' ) end [2025-03-06 18:26:19] Production.INFO: ProcessCDR(1,14622298,1,1,2) [2025-03-06 18:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14622298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 18:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14622298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 18:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14622298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 18:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14622298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 18:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622298', 'tblTempUsageDetail_20' ) start [2025-03-06 18:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622298', 'tblTempUsageDetail_20' ) end [2025-03-06 18:26:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 18:26:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 18:26:22] Production.INFO: ==21802== Releasing lock... [2025-03-06 18:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 18:26:22] Production.INFO: 54 MB #Memory Used# [2025-03-06 18:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 15:27:05 [end_date_ymd] => 2025-03-06 18:27:05 [RateCDR] => 1 ) [2025-03-06 18:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 15:27:05' and `end` < '2025-03-06 18:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 18:27:17] Production.INFO: count ==3407 [2025-03-06 18:27:19] Production.ERROR: pbx CDR StartTime 2025-03-06 15:27:05 - End Time 2025-03-06 18:27:05 [2025-03-06 18:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 18:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622303', 'tblTempUsageDetail_20' ) start [2025-03-06 18:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622303', 'tblTempUsageDetail_20' ) end [2025-03-06 18:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622303', 'tblTempVendorCDR_20' ) start [2025-03-06 18:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622303', 'tblTempVendorCDR_20' ) end [2025-03-06 18:27:19] Production.INFO: ProcessCDR(1,14622303,1,1,2) [2025-03-06 18:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14622303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 18:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14622303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 18:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14622303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 18:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14622303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 18:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622303', 'tblTempUsageDetail_20' ) start [2025-03-06 18:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622303', 'tblTempUsageDetail_20' ) end [2025-03-06 18:27:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 18:27:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 18:27:22] Production.INFO: ==21883== Releasing lock... [2025-03-06 18:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 18:27:22] Production.INFO: 53.75 MB #Memory Used# [2025-03-06 18:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 15:28:05 [end_date_ymd] => 2025-03-06 18:28:05 [RateCDR] => 1 ) [2025-03-06 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-03-06 15:28:05' and `end` < '2025-03-06 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-03-06 18:28:17] Production.INFO: count ==3400 [2025-03-06 18:28:18] Production.ERROR: pbx CDR StartTime 2025-03-06 15:28:05 - End Time 2025-03-06 18:28:05 [2025-03-06 18:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 18:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622308', 'tblTempUsageDetail_20' ) start [2025-03-06 18:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622308', 'tblTempUsageDetail_20' ) end [2025-03-06 18:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622308', 'tblTempVendorCDR_20' ) start [2025-03-06 18:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622308', 'tblTempVendorCDR_20' ) end [2025-03-06 18:28:18] Production.INFO: ProcessCDR(1,14622308,1,1,2) [2025-03-06 18:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14622308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 18:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14622308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 18:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14622308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 18:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14622308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 18:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622308', 'tblTempUsageDetail_20' ) start [2025-03-06 18:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622308', 'tblTempUsageDetail_20' ) end [2025-03-06 18:28:23] Production.ERROR: pbx prc_insertCDR start [2025-03-06 18:28:23] Production.ERROR: pbx prc_insertCDR end [2025-03-06 18:28:23] Production.INFO: ==21961== Releasing lock... [2025-03-06 18:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 18:28:23] Production.INFO: 53.25 MB #Memory Used# [2025-03-06 18:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 15:29:05 [end_date_ymd] => 2025-03-06 18:29:05 [RateCDR] => 1 ) [2025-03-06 18:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 15:29:05' and `end` < '2025-03-06 18:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 18:29:18] Production.INFO: count ==3368 [2025-03-06 18:29:19] Production.ERROR: pbx CDR StartTime 2025-03-06 15:29:05 - End Time 2025-03-06 18:29:05 [2025-03-06 18:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 18:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622313', 'tblTempUsageDetail_20' ) start [2025-03-06 18:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622313', 'tblTempUsageDetail_20' ) end [2025-03-06 18:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622313', 'tblTempVendorCDR_20' ) start [2025-03-06 18:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622313', 'tblTempVendorCDR_20' ) end [2025-03-06 18:29:19] Production.INFO: ProcessCDR(1,14622313,1,1,2) [2025-03-06 18:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14622313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 18:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14622313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 18:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14622313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 18:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14622313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 18:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622313', 'tblTempUsageDetail_20' ) start [2025-03-06 18:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622313', 'tblTempUsageDetail_20' ) end [2025-03-06 18:29:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 18:29:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 18:29:22] Production.INFO: ==22043== Releasing lock... [2025-03-06 18:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 18:29:22] Production.INFO: 53.25 MB #Memory Used# [2025-03-06 18:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 15:30:06 [end_date_ymd] => 2025-03-06 18:30:06 [RateCDR] => 1 ) [2025-03-06 18:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 15:30:06' and `end` < '2025-03-06 18:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 18:30:19] Production.INFO: count ==3372 [2025-03-06 18:30:20] Production.ERROR: pbx CDR StartTime 2025-03-06 15:30:06 - End Time 2025-03-06 18:30:06 [2025-03-06 18:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 18:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622319', 'tblTempUsageDetail_20' ) start [2025-03-06 18:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622319', 'tblTempUsageDetail_20' ) end [2025-03-06 18:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622319', 'tblTempVendorCDR_20' ) start [2025-03-06 18:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622319', 'tblTempVendorCDR_20' ) end [2025-03-06 18:30:20] Production.INFO: ProcessCDR(1,14622319,1,1,2) [2025-03-06 18:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14622319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 18:30:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14622319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 18:30:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14622319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 18:30:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14622319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 18:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622319', 'tblTempUsageDetail_20' ) start [2025-03-06 18:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622319', 'tblTempUsageDetail_20' ) end [2025-03-06 18:30:25] Production.ERROR: pbx prc_insertCDR start [2025-03-06 18:30:25] Production.ERROR: pbx prc_insertCDR end [2025-03-06 18:30:25] Production.INFO: ==22120== Releasing lock... [2025-03-06 18:30:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 18:30:25] Production.INFO: 53.25 MB #Memory Used# [2025-03-06 18:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 15:31:05 [end_date_ymd] => 2025-03-06 18:31:05 [RateCDR] => 1 ) [2025-03-06 18: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-03-06 15:31:05' and `end` < '2025-03-06 18: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-03-06 18:31:18] Production.INFO: count ==3366 [2025-03-06 18:31:19] Production.ERROR: pbx CDR StartTime 2025-03-06 15:31:05 - End Time 2025-03-06 18:31:05 [2025-03-06 18:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 18:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622324', 'tblTempUsageDetail_20' ) start [2025-03-06 18:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622324', 'tblTempUsageDetail_20' ) end [2025-03-06 18:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622324', 'tblTempVendorCDR_20' ) start [2025-03-06 18:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622324', 'tblTempVendorCDR_20' ) end [2025-03-06 18:31:19] Production.INFO: ProcessCDR(1,14622324,1,1,2) [2025-03-06 18:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14622324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 18:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14622324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 18:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14622324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 18:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14622324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 18:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622324', 'tblTempUsageDetail_20' ) start [2025-03-06 18:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622324', 'tblTempUsageDetail_20' ) end [2025-03-06 18:31:23] Production.ERROR: pbx prc_insertCDR start [2025-03-06 18:31:23] Production.ERROR: pbx prc_insertCDR end [2025-03-06 18:31:23] Production.INFO: ==22198== Releasing lock... [2025-03-06 18:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 18:31:23] Production.INFO: 53 MB #Memory Used# [2025-03-06 18:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 15:32:05 [end_date_ymd] => 2025-03-06 18:32:05 [RateCDR] => 1 ) [2025-03-06 18:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 15:32:05' and `end` < '2025-03-06 18:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 18:32:18] Production.INFO: count ==3336 [2025-03-06 18:32:19] Production.ERROR: pbx CDR StartTime 2025-03-06 15:32:05 - End Time 2025-03-06 18:32:05 [2025-03-06 18:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 18:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622329', 'tblTempUsageDetail_20' ) start [2025-03-06 18:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622329', 'tblTempUsageDetail_20' ) end [2025-03-06 18:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622329', 'tblTempVendorCDR_20' ) start [2025-03-06 18:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622329', 'tblTempVendorCDR_20' ) end [2025-03-06 18:32:19] Production.INFO: ProcessCDR(1,14622329,1,1,2) [2025-03-06 18:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14622329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 18:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14622329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 18:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14622329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 18:32:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14622329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 18:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622329', 'tblTempUsageDetail_20' ) start [2025-03-06 18:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622329', 'tblTempUsageDetail_20' ) end [2025-03-06 18:32:24] Production.ERROR: pbx prc_insertCDR start [2025-03-06 18:32:24] Production.ERROR: pbx prc_insertCDR end [2025-03-06 18:32:24] Production.INFO: ==22277== Releasing lock... [2025-03-06 18:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 18:32:24] Production.INFO: 53.25 MB #Memory Used# [2025-03-06 18:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 15:33:06 [end_date_ymd] => 2025-03-06 18:33:06 [RateCDR] => 1 ) [2025-03-06 18: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-03-06 15:33:06' and `end` < '2025-03-06 18: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-03-06 18:33:18] Production.INFO: count ==3336 [2025-03-06 18:33:19] Production.ERROR: pbx CDR StartTime 2025-03-06 15:33:06 - End Time 2025-03-06 18:33:06 [2025-03-06 18:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 18:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622334', 'tblTempUsageDetail_20' ) start [2025-03-06 18:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622334', 'tblTempUsageDetail_20' ) end [2025-03-06 18:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622334', 'tblTempVendorCDR_20' ) start [2025-03-06 18:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622334', 'tblTempVendorCDR_20' ) end [2025-03-06 18:33:20] Production.INFO: ProcessCDR(1,14622334,1,1,2) [2025-03-06 18:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14622334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 18:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14622334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 18:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14622334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 18:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14622334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 18:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622334', 'tblTempUsageDetail_20' ) start [2025-03-06 18:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622334', 'tblTempUsageDetail_20' ) end [2025-03-06 18:33:23] Production.ERROR: pbx prc_insertCDR start [2025-03-06 18:33:23] Production.ERROR: pbx prc_insertCDR end [2025-03-06 18:33:23] Production.INFO: ==22351== Releasing lock... [2025-03-06 18:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 18:33:23] Production.INFO: 53 MB #Memory Used# [2025-03-06 18:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 15:34:05 [end_date_ymd] => 2025-03-06 18:34:05 [RateCDR] => 1 ) [2025-03-06 18:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 15:34:05' and `end` < '2025-03-06 18:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 18:34:18] Production.INFO: count ==3326 [2025-03-06 18:34:19] Production.ERROR: pbx CDR StartTime 2025-03-06 15:34:05 - End Time 2025-03-06 18:34:05 [2025-03-06 18:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 18:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622339', 'tblTempUsageDetail_20' ) start [2025-03-06 18:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622339', 'tblTempUsageDetail_20' ) end [2025-03-06 18:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622339', 'tblTempVendorCDR_20' ) start [2025-03-06 18:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622339', 'tblTempVendorCDR_20' ) end [2025-03-06 18:34:19] Production.INFO: ProcessCDR(1,14622339,1,1,2) [2025-03-06 18:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14622339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 18:34:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14622339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 18:34:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14622339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 18:34:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14622339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 18:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622339', 'tblTempUsageDetail_20' ) start [2025-03-06 18:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622339', 'tblTempUsageDetail_20' ) end [2025-03-06 18:34:24] Production.ERROR: pbx prc_insertCDR start [2025-03-06 18:34:24] Production.ERROR: pbx prc_insertCDR end [2025-03-06 18:34:24] Production.INFO: ==22431== Releasing lock... [2025-03-06 18:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 18:34:24] Production.INFO: 52.75 MB #Memory Used# [2025-03-06 18:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 15:35:05 [end_date_ymd] => 2025-03-06 18:35:05 [RateCDR] => 1 ) [2025-03-06 18:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 15:35:05' and `end` < '2025-03-06 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-03-06 18:35:18] Production.INFO: count ==3306 [2025-03-06 18:35:19] Production.ERROR: pbx CDR StartTime 2025-03-06 15:35:05 - End Time 2025-03-06 18:35:05 [2025-03-06 18:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 18:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622344', 'tblTempUsageDetail_20' ) start [2025-03-06 18:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622344', 'tblTempUsageDetail_20' ) end [2025-03-06 18:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622344', 'tblTempVendorCDR_20' ) start [2025-03-06 18:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622344', 'tblTempVendorCDR_20' ) end [2025-03-06 18:35:19] Production.INFO: ProcessCDR(1,14622344,1,1,2) [2025-03-06 18:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14622344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 18:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14622344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 18:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14622344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 18:35:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14622344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 18:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622344', 'tblTempUsageDetail_20' ) start [2025-03-06 18:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622344', 'tblTempUsageDetail_20' ) end [2025-03-06 18:35:24] Production.ERROR: pbx prc_insertCDR start [2025-03-06 18:35:24] Production.ERROR: pbx prc_insertCDR end [2025-03-06 18:35:24] Production.INFO: ==22547== Releasing lock... [2025-03-06 18:35:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 18:35:24] Production.INFO: 52.75 MB #Memory Used# [2025-03-06 18:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 15:36:05 [end_date_ymd] => 2025-03-06 18:36:05 [RateCDR] => 1 ) [2025-03-06 18:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 15:36:05' and `end` < '2025-03-06 18:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 18:36:18] Production.INFO: count ==3293 [2025-03-06 18:36:19] Production.ERROR: pbx CDR StartTime 2025-03-06 15:36:05 - End Time 2025-03-06 18:36:05 [2025-03-06 18:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 18:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622349', 'tblTempUsageDetail_20' ) start [2025-03-06 18:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622349', 'tblTempUsageDetail_20' ) end [2025-03-06 18:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622349', 'tblTempVendorCDR_20' ) start [2025-03-06 18:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622349', 'tblTempVendorCDR_20' ) end [2025-03-06 18:36:19] Production.INFO: ProcessCDR(1,14622349,1,1,2) [2025-03-06 18:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14622349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 18:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14622349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 18:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14622349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 18:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14622349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 18:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622349', 'tblTempUsageDetail_20' ) start [2025-03-06 18:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622349', 'tblTempUsageDetail_20' ) end [2025-03-06 18:36:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 18:36:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 18:36:22] Production.INFO: ==22623== Releasing lock... [2025-03-06 18:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 18:36:22] Production.INFO: 53.25 MB #Memory Used# [2025-03-06 18:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 15:37:05 [end_date_ymd] => 2025-03-06 18:37:05 [RateCDR] => 1 ) [2025-03-06 18:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 15:37:05' and `end` < '2025-03-06 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-03-06 18:37:18] Production.INFO: count ==3286 [2025-03-06 18:37:19] Production.ERROR: pbx CDR StartTime 2025-03-06 15:37:05 - End Time 2025-03-06 18:37:05 [2025-03-06 18:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 18:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622354', 'tblTempUsageDetail_20' ) start [2025-03-06 18:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622354', 'tblTempUsageDetail_20' ) end [2025-03-06 18:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622354', 'tblTempVendorCDR_20' ) start [2025-03-06 18:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622354', 'tblTempVendorCDR_20' ) end [2025-03-06 18:37:19] Production.INFO: ProcessCDR(1,14622354,1,1,2) [2025-03-06 18:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14622354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 18:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14622354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 18:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14622354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 18:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14622354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 18:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622354', 'tblTempUsageDetail_20' ) start [2025-03-06 18:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622354', 'tblTempUsageDetail_20' ) end [2025-03-06 18:37:23] Production.ERROR: pbx prc_insertCDR start [2025-03-06 18:37:23] Production.ERROR: pbx prc_insertCDR end [2025-03-06 18:37:23] Production.INFO: ==22702== Releasing lock... [2025-03-06 18:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 18:37:23] Production.INFO: 52.75 MB #Memory Used# [2025-03-06 18:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 15:38:05 [end_date_ymd] => 2025-03-06 18:38:05 [RateCDR] => 1 ) [2025-03-06 18:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 15:38:05' and `end` < '2025-03-06 18:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 18:38:17] Production.INFO: count ==3279 [2025-03-06 18:38:18] Production.ERROR: pbx CDR StartTime 2025-03-06 15:38:05 - End Time 2025-03-06 18:38:05 [2025-03-06 18:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 18:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622359', 'tblTempUsageDetail_20' ) start [2025-03-06 18:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622359', 'tblTempUsageDetail_20' ) end [2025-03-06 18:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622359', 'tblTempVendorCDR_20' ) start [2025-03-06 18:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622359', 'tblTempVendorCDR_20' ) end [2025-03-06 18:38:18] Production.INFO: ProcessCDR(1,14622359,1,1,2) [2025-03-06 18:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14622359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 18:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14622359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 18:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14622359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 18:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14622359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 18:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622359', 'tblTempUsageDetail_20' ) start [2025-03-06 18:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622359', 'tblTempUsageDetail_20' ) end [2025-03-06 18:38:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 18:38:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 18:38:22] Production.INFO: ==22778== Releasing lock... [2025-03-06 18:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 18:38:22] Production.INFO: 52.5 MB #Memory Used# [2025-03-06 18:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 15:39:05 [end_date_ymd] => 2025-03-06 18:39:05 [RateCDR] => 1 ) [2025-03-06 18:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 15:39:05' and `end` < '2025-03-06 18:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 18:39:18] Production.INFO: count ==3276 [2025-03-06 18:39:19] Production.ERROR: pbx CDR StartTime 2025-03-06 15:39:05 - End Time 2025-03-06 18:39:05 [2025-03-06 18:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 18:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622364', 'tblTempUsageDetail_20' ) start [2025-03-06 18:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622364', 'tblTempUsageDetail_20' ) end [2025-03-06 18:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622364', 'tblTempVendorCDR_20' ) start [2025-03-06 18:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622364', 'tblTempVendorCDR_20' ) end [2025-03-06 18:39:19] Production.INFO: ProcessCDR(1,14622364,1,1,2) [2025-03-06 18:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14622364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 18:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14622364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 18:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14622364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 18:39:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14622364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 18:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622364', 'tblTempUsageDetail_20' ) start [2025-03-06 18:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622364', 'tblTempUsageDetail_20' ) end [2025-03-06 18:39:24] Production.ERROR: pbx prc_insertCDR start [2025-03-06 18:39:24] Production.ERROR: pbx prc_insertCDR end [2025-03-06 18:39:24] Production.INFO: ==22855== Releasing lock... [2025-03-06 18:39:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 18:39:24] Production.INFO: 52.75 MB #Memory Used# [2025-03-06 18:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 15:40:06 [end_date_ymd] => 2025-03-06 18:40:06 [RateCDR] => 1 ) [2025-03-06 18: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-03-06 15:40:06' and `end` < '2025-03-06 18: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-03-06 18:40:19] Production.INFO: count ==3268 [2025-03-06 18:40:20] Production.ERROR: pbx CDR StartTime 2025-03-06 15:40:06 - End Time 2025-03-06 18:40:06 [2025-03-06 18:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 18:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622369', 'tblTempUsageDetail_20' ) start [2025-03-06 18:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622369', 'tblTempUsageDetail_20' ) end [2025-03-06 18:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622369', 'tblTempVendorCDR_20' ) start [2025-03-06 18:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622369', 'tblTempVendorCDR_20' ) end [2025-03-06 18:40:20] Production.INFO: ProcessCDR(1,14622369,1,1,2) [2025-03-06 18:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14622369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 18:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14622369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 18:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14622369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 18:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14622369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 18:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622369', 'tblTempUsageDetail_20' ) start [2025-03-06 18:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622369', 'tblTempUsageDetail_20' ) end [2025-03-06 18:40:23] Production.ERROR: pbx prc_insertCDR start [2025-03-06 18:40:23] Production.ERROR: pbx prc_insertCDR end [2025-03-06 18:40:23] Production.INFO: ==22936== Releasing lock... [2025-03-06 18:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 18:40:23] Production.INFO: 52.5 MB #Memory Used# [2025-03-06 18:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 15:41:05 [end_date_ymd] => 2025-03-06 18:41:05 [RateCDR] => 1 ) [2025-03-06 18:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 15:41:05' and `end` < '2025-03-06 18:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 18:41:18] Production.INFO: count ==3211 [2025-03-06 18:41:19] Production.ERROR: pbx CDR StartTime 2025-03-06 15:41:05 - End Time 2025-03-06 18:41:05 [2025-03-06 18:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 18:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622375', 'tblTempUsageDetail_20' ) start [2025-03-06 18:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622375', 'tblTempUsageDetail_20' ) end [2025-03-06 18:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622375', 'tblTempVendorCDR_20' ) start [2025-03-06 18:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622375', 'tblTempVendorCDR_20' ) end [2025-03-06 18:41:19] Production.INFO: ProcessCDR(1,14622375,1,1,2) [2025-03-06 18:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14622375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 18:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14622375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 18:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14622375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 18:41:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14622375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 18:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622375', 'tblTempUsageDetail_20' ) start [2025-03-06 18:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622375', 'tblTempUsageDetail_20' ) end [2025-03-06 18:41:24] Production.ERROR: pbx prc_insertCDR start [2025-03-06 18:41:24] Production.ERROR: pbx prc_insertCDR end [2025-03-06 18:41:24] Production.INFO: ==23009== Releasing lock... [2025-03-06 18:41:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 18:41:24] Production.INFO: 52 MB #Memory Used# [2025-03-06 18:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 15:42:06 [end_date_ymd] => 2025-03-06 18:42:06 [RateCDR] => 1 ) [2025-03-06 18: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-03-06 15:42:06' and `end` < '2025-03-06 18: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-03-06 18:42:18] Production.INFO: count ==3194 [2025-03-06 18:42:19] Production.ERROR: pbx CDR StartTime 2025-03-06 15:42:06 - End Time 2025-03-06 18:42:06 [2025-03-06 18:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 18:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622380', 'tblTempUsageDetail_20' ) start [2025-03-06 18:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622380', 'tblTempUsageDetail_20' ) end [2025-03-06 18:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622380', 'tblTempVendorCDR_20' ) start [2025-03-06 18:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622380', 'tblTempVendorCDR_20' ) end [2025-03-06 18:42:19] Production.INFO: ProcessCDR(1,14622380,1,1,2) [2025-03-06 18:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14622380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 18:42:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14622380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 18:42:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14622380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 18:42:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14622380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 18:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622380', 'tblTempUsageDetail_20' ) start [2025-03-06 18:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622380', 'tblTempUsageDetail_20' ) end [2025-03-06 18:42:24] Production.ERROR: pbx prc_insertCDR start [2025-03-06 18:42:24] Production.ERROR: pbx prc_insertCDR end [2025-03-06 18:42:24] Production.INFO: ==23087== Releasing lock... [2025-03-06 18:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 18:42:24] Production.INFO: 51.75 MB #Memory Used# [2025-03-06 18:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 15:43:05 [end_date_ymd] => 2025-03-06 18:43:05 [RateCDR] => 1 ) [2025-03-06 18:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 15:43:05' and `end` < '2025-03-06 18:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 18:43:17] Production.INFO: count ==3180 [2025-03-06 18:43:18] Production.ERROR: pbx CDR StartTime 2025-03-06 15:43:05 - End Time 2025-03-06 18:43:05 [2025-03-06 18:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 18:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622385', 'tblTempUsageDetail_20' ) start [2025-03-06 18:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622385', 'tblTempUsageDetail_20' ) end [2025-03-06 18:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622385', 'tblTempVendorCDR_20' ) start [2025-03-06 18:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622385', 'tblTempVendorCDR_20' ) end [2025-03-06 18:43:18] Production.INFO: ProcessCDR(1,14622385,1,1,2) [2025-03-06 18:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14622385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 18:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14622385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 18:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14622385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 18:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14622385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 18:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622385', 'tblTempUsageDetail_20' ) start [2025-03-06 18:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622385', 'tblTempUsageDetail_20' ) end [2025-03-06 18:43:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 18:43:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 18:43:22] Production.INFO: ==23163== Releasing lock... [2025-03-06 18:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 18:43:22] Production.INFO: 52.5 MB #Memory Used# [2025-03-06 18:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 15:44:06 [end_date_ymd] => 2025-03-06 18:44:06 [RateCDR] => 1 ) [2025-03-06 18:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 15:44:06' and `end` < '2025-03-06 18:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 18:44:18] Production.INFO: count ==3169 [2025-03-06 18:44:19] Production.ERROR: pbx CDR StartTime 2025-03-06 15:44:06 - End Time 2025-03-06 18:44:06 [2025-03-06 18:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 18:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622390', 'tblTempUsageDetail_20' ) start [2025-03-06 18:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622390', 'tblTempUsageDetail_20' ) end [2025-03-06 18:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622390', 'tblTempVendorCDR_20' ) start [2025-03-06 18:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622390', 'tblTempVendorCDR_20' ) end [2025-03-06 18:44:19] Production.INFO: ProcessCDR(1,14622390,1,1,2) [2025-03-06 18:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14622390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 18:44:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14622390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 18:44:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14622390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 18:44:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14622390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 18:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622390', 'tblTempUsageDetail_20' ) start [2025-03-06 18:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622390', 'tblTempUsageDetail_20' ) end [2025-03-06 18:44:24] Production.ERROR: pbx prc_insertCDR start [2025-03-06 18:44:24] Production.ERROR: pbx prc_insertCDR end [2025-03-06 18:44:24] Production.INFO: ==23247== Releasing lock... [2025-03-06 18:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 18:44:24] Production.INFO: 51.75 MB #Memory Used# [2025-03-06 18:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 15:45:05 [end_date_ymd] => 2025-03-06 18:45:05 [RateCDR] => 1 ) [2025-03-06 18:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 15:45:05' and `end` < '2025-03-06 18:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 18:45:18] Production.INFO: count ==3160 [2025-03-06 18:45:19] Production.ERROR: pbx CDR StartTime 2025-03-06 15:45:05 - End Time 2025-03-06 18:45:05 [2025-03-06 18:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 18:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622395', 'tblTempUsageDetail_20' ) start [2025-03-06 18:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622395', 'tblTempUsageDetail_20' ) end [2025-03-06 18:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622395', 'tblTempVendorCDR_20' ) start [2025-03-06 18:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622395', 'tblTempVendorCDR_20' ) end [2025-03-06 18:45:19] Production.INFO: ProcessCDR(1,14622395,1,1,2) [2025-03-06 18:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14622395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 18:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14622395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 18:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14622395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 18:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14622395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 18:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622395', 'tblTempUsageDetail_20' ) start [2025-03-06 18:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622395', 'tblTempUsageDetail_20' ) end [2025-03-06 18:45:24] Production.ERROR: pbx prc_insertCDR start [2025-03-06 18:45:24] Production.ERROR: pbx prc_insertCDR end [2025-03-06 18:45:24] Production.INFO: ==23324== Releasing lock... [2025-03-06 18:45:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 18:45:24] Production.INFO: 51.5 MB #Memory Used# [2025-03-06 18:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 15:46:05 [end_date_ymd] => 2025-03-06 18:46:05 [RateCDR] => 1 ) [2025-03-06 18:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 15:46:05' and `end` < '2025-03-06 18:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 18:46:17] Production.INFO: count ==3147 [2025-03-06 18:46:18] Production.ERROR: pbx CDR StartTime 2025-03-06 15:46:05 - End Time 2025-03-06 18:46:05 [2025-03-06 18:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 18:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622400', 'tblTempUsageDetail_20' ) start [2025-03-06 18:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622400', 'tblTempUsageDetail_20' ) end [2025-03-06 18:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622400', 'tblTempVendorCDR_20' ) start [2025-03-06 18:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622400', 'tblTempVendorCDR_20' ) end [2025-03-06 18:46:19] Production.INFO: ProcessCDR(1,14622400,1,1,2) [2025-03-06 18:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14622400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 18:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14622400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 18:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14622400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 18:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14622400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 18:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622400', 'tblTempUsageDetail_20' ) start [2025-03-06 18:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622400', 'tblTempUsageDetail_20' ) end [2025-03-06 18:46:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 18:46:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 18:46:22] Production.INFO: ==23399== Releasing lock... [2025-03-06 18:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 18:46:22] Production.INFO: 52 MB #Memory Used# [2025-03-06 18:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 15:47:06 [end_date_ymd] => 2025-03-06 18:47:06 [RateCDR] => 1 ) [2025-03-06 18:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 15:47:06' and `end` < '2025-03-06 18:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 18:47:18] Production.INFO: count ==3116 [2025-03-06 18:47:19] Production.ERROR: pbx CDR StartTime 2025-03-06 15:47:06 - End Time 2025-03-06 18:47:06 [2025-03-06 18:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 18:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622405', 'tblTempUsageDetail_20' ) start [2025-03-06 18:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622405', 'tblTempUsageDetail_20' ) end [2025-03-06 18:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622405', 'tblTempVendorCDR_20' ) start [2025-03-06 18:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622405', 'tblTempVendorCDR_20' ) end [2025-03-06 18:47:19] Production.INFO: ProcessCDR(1,14622405,1,1,2) [2025-03-06 18:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14622405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 18:47:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14622405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 18:47:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14622405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 18:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14622405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 18:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622405', 'tblTempUsageDetail_20' ) start [2025-03-06 18:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622405', 'tblTempUsageDetail_20' ) end [2025-03-06 18:47:24] Production.ERROR: pbx prc_insertCDR start [2025-03-06 18:47:24] Production.ERROR: pbx prc_insertCDR end [2025-03-06 18:47:24] Production.INFO: ==23476== Releasing lock... [2025-03-06 18:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 18:47:24] Production.INFO: 51.5 MB #Memory Used# [2025-03-06 18:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 15:48:05 [end_date_ymd] => 2025-03-06 18:48:05 [RateCDR] => 1 ) [2025-03-06 18:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 15:48:05' and `end` < '2025-03-06 18:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 18:48:17] Production.INFO: count ==3092 [2025-03-06 18:48:18] Production.ERROR: pbx CDR StartTime 2025-03-06 15:48:05 - End Time 2025-03-06 18:48:05 [2025-03-06 18:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 18:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622410', 'tblTempUsageDetail_20' ) start [2025-03-06 18:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622410', 'tblTempUsageDetail_20' ) end [2025-03-06 18:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622410', 'tblTempVendorCDR_20' ) start [2025-03-06 18:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622410', 'tblTempVendorCDR_20' ) end [2025-03-06 18:48:19] Production.INFO: ProcessCDR(1,14622410,1,1,2) [2025-03-06 18:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14622410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 18:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14622410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 18:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14622410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 18:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14622410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 18:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622410', 'tblTempUsageDetail_20' ) start [2025-03-06 18:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622410', 'tblTempUsageDetail_20' ) end [2025-03-06 18:48:23] Production.ERROR: pbx prc_insertCDR start [2025-03-06 18:48:23] Production.ERROR: pbx prc_insertCDR end [2025-03-06 18:48:23] Production.INFO: ==23549== Releasing lock... [2025-03-06 18:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 18:48:23] Production.INFO: 51 MB #Memory Used# [2025-03-06 18:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 15:49:05 [end_date_ymd] => 2025-03-06 18:49:05 [RateCDR] => 1 ) [2025-03-06 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-03-06 15:49:05' and `end` < '2025-03-06 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-03-06 18:49:18] Production.INFO: count ==3060 [2025-03-06 18:49:18] Production.ERROR: pbx CDR StartTime 2025-03-06 15:49:05 - End Time 2025-03-06 18:49:05 [2025-03-06 18:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 18:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622415', 'tblTempUsageDetail_20' ) start [2025-03-06 18:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622415', 'tblTempUsageDetail_20' ) end [2025-03-06 18:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622415', 'tblTempVendorCDR_20' ) start [2025-03-06 18:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622415', 'tblTempVendorCDR_20' ) end [2025-03-06 18:49:19] Production.INFO: ProcessCDR(1,14622415,1,1,2) [2025-03-06 18:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14622415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 18:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14622415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 18:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14622415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 18:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14622415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 18:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622415', 'tblTempUsageDetail_20' ) start [2025-03-06 18:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622415', 'tblTempUsageDetail_20' ) end [2025-03-06 18:49:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 18:49:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 18:49:22] Production.INFO: ==23621== Releasing lock... [2025-03-06 18:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 18:49:22] Production.INFO: 50.75 MB #Memory Used# [2025-03-06 18:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 15:50:06 [end_date_ymd] => 2025-03-06 18:50:06 [RateCDR] => 1 ) [2025-03-06 18:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 15:50:06' and `end` < '2025-03-06 18:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 18:50:18] Production.INFO: count ==3056 [2025-03-06 18:50:19] Production.ERROR: pbx CDR StartTime 2025-03-06 15:50:06 - End Time 2025-03-06 18:50:06 [2025-03-06 18:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 18:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622421', 'tblTempUsageDetail_20' ) start [2025-03-06 18:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622421', 'tblTempUsageDetail_20' ) end [2025-03-06 18:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622421', 'tblTempVendorCDR_20' ) start [2025-03-06 18:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622421', 'tblTempVendorCDR_20' ) end [2025-03-06 18:50:19] Production.INFO: ProcessCDR(1,14622421,1,1,2) [2025-03-06 18:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14622421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 18:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14622421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 18:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14622421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 18:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14622421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 18:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622421', 'tblTempUsageDetail_20' ) start [2025-03-06 18:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622421', 'tblTempUsageDetail_20' ) end [2025-03-06 18:50:24] Production.ERROR: pbx prc_insertCDR start [2025-03-06 18:50:24] Production.ERROR: pbx prc_insertCDR end [2025-03-06 18:50:24] Production.INFO: ==23731== Releasing lock... [2025-03-06 18:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 18:50:24] Production.INFO: 51.75 MB #Memory Used# [2025-03-06 18:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 15:51:06 [end_date_ymd] => 2025-03-06 18:51:06 [RateCDR] => 1 ) [2025-03-06 18: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-03-06 15:51:06' and `end` < '2025-03-06 18: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-03-06 18:51:19] Production.INFO: count ==3013 [2025-03-06 18:51:20] Production.ERROR: pbx CDR StartTime 2025-03-06 15:51:06 - End Time 2025-03-06 18:51:06 [2025-03-06 18:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 18:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622426', 'tblTempUsageDetail_20' ) start [2025-03-06 18:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622426', 'tblTempUsageDetail_20' ) end [2025-03-06 18:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622426', 'tblTempVendorCDR_20' ) start [2025-03-06 18:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622426', 'tblTempVendorCDR_20' ) end [2025-03-06 18:51:20] Production.INFO: ProcessCDR(1,14622426,1,1,2) [2025-03-06 18:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14622426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 18:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14622426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 18:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14622426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 18:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14622426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 18:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622426', 'tblTempUsageDetail_20' ) start [2025-03-06 18:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622426', 'tblTempUsageDetail_20' ) end [2025-03-06 18:51:23] Production.ERROR: pbx prc_insertCDR start [2025-03-06 18:51:23] Production.ERROR: pbx prc_insertCDR end [2025-03-06 18:51:23] Production.INFO: ==23805== Releasing lock... [2025-03-06 18:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 18:51:23] Production.INFO: 50.5 MB #Memory Used# [2025-03-06 18:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 15:52:06 [end_date_ymd] => 2025-03-06 18:52:06 [RateCDR] => 1 ) [2025-03-06 18: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-03-06 15:52:06' and `end` < '2025-03-06 18: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-03-06 18:52:18] Production.INFO: count ==3004 [2025-03-06 18:52:19] Production.ERROR: pbx CDR StartTime 2025-03-06 15:52:06 - End Time 2025-03-06 18:52:06 [2025-03-06 18:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 18:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622431', 'tblTempUsageDetail_20' ) start [2025-03-06 18:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622431', 'tblTempUsageDetail_20' ) end [2025-03-06 18:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622431', 'tblTempVendorCDR_20' ) start [2025-03-06 18:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622431', 'tblTempVendorCDR_20' ) end [2025-03-06 18:52:19] Production.INFO: ProcessCDR(1,14622431,1,1,2) [2025-03-06 18:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14622431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 18:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14622431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 18:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14622431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 18:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14622431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 18:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622431', 'tblTempUsageDetail_20' ) start [2025-03-06 18:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622431', 'tblTempUsageDetail_20' ) end [2025-03-06 18:52:24] Production.ERROR: pbx prc_insertCDR start [2025-03-06 18:52:24] Production.ERROR: pbx prc_insertCDR end [2025-03-06 18:52:24] Production.INFO: ==23880== Releasing lock... [2025-03-06 18:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 18:52:24] Production.INFO: 50.5 MB #Memory Used# [2025-03-06 18:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 15:53:05 [end_date_ymd] => 2025-03-06 18:53:05 [RateCDR] => 1 ) [2025-03-06 18:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 15:53:05' and `end` < '2025-03-06 18:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 18:53:18] Production.INFO: count ==2987 [2025-03-06 18:53:18] Production.ERROR: pbx CDR StartTime 2025-03-06 15:53:05 - End Time 2025-03-06 18:53:05 [2025-03-06 18:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 18:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622436', 'tblTempUsageDetail_20' ) start [2025-03-06 18:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622436', 'tblTempUsageDetail_20' ) end [2025-03-06 18:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622436', 'tblTempVendorCDR_20' ) start [2025-03-06 18:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622436', 'tblTempVendorCDR_20' ) end [2025-03-06 18:53:19] Production.INFO: ProcessCDR(1,14622436,1,1,2) [2025-03-06 18:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14622436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 18:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14622436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 18:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14622436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 18:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14622436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 18:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622436', 'tblTempUsageDetail_20' ) start [2025-03-06 18:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622436', 'tblTempUsageDetail_20' ) end [2025-03-06 18:53:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 18:53:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 18:53:22] Production.INFO: ==23952== Releasing lock... [2025-03-06 18:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 18:53:22] Production.INFO: 50.25 MB #Memory Used# [2025-03-06 18:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 15:54:05 [end_date_ymd] => 2025-03-06 18:54:05 [RateCDR] => 1 ) [2025-03-06 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-03-06 15:54:05' and `end` < '2025-03-06 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-03-06 18:54:18] Production.INFO: count ==2975 [2025-03-06 18:54:19] Production.ERROR: pbx CDR StartTime 2025-03-06 15:54:05 - End Time 2025-03-06 18:54:05 [2025-03-06 18:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 18:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622441', 'tblTempUsageDetail_20' ) start [2025-03-06 18:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622441', 'tblTempUsageDetail_20' ) end [2025-03-06 18:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622441', 'tblTempVendorCDR_20' ) start [2025-03-06 18:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622441', 'tblTempVendorCDR_20' ) end [2025-03-06 18:54:19] Production.INFO: ProcessCDR(1,14622441,1,1,2) [2025-03-06 18:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14622441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 18:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14622441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 18:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14622441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 18:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14622441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 18:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622441', 'tblTempUsageDetail_20' ) start [2025-03-06 18:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622441', 'tblTempUsageDetail_20' ) end [2025-03-06 18:54:23] Production.ERROR: pbx prc_insertCDR start [2025-03-06 18:54:23] Production.ERROR: pbx prc_insertCDR end [2025-03-06 18:54:23] Production.INFO: ==24027== Releasing lock... [2025-03-06 18:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 18:54:23] Production.INFO: 50 MB #Memory Used# [2025-03-06 18:55:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 15:55:04 [end_date_ymd] => 2025-03-06 18:55:04 [RateCDR] => 1 ) [2025-03-06 18: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-03-06 15:55:04' and `end` < '2025-03-06 18: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-03-06 18:55:17] Production.INFO: count ==2955 [2025-03-06 18:55:18] Production.ERROR: pbx CDR StartTime 2025-03-06 15:55:04 - End Time 2025-03-06 18:55:04 [2025-03-06 18:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 18:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622446', 'tblTempUsageDetail_20' ) start [2025-03-06 18:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622446', 'tblTempUsageDetail_20' ) end [2025-03-06 18:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622446', 'tblTempVendorCDR_20' ) start [2025-03-06 18:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622446', 'tblTempVendorCDR_20' ) end [2025-03-06 18:55:18] Production.INFO: ProcessCDR(1,14622446,1,1,2) [2025-03-06 18:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14622446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 18:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14622446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 18:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14622446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 18:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14622446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 18:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622446', 'tblTempUsageDetail_20' ) start [2025-03-06 18:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622446', 'tblTempUsageDetail_20' ) end [2025-03-06 18:55:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 18:55:23] Production.ERROR: pbx prc_insertCDR end [2025-03-06 18:55:23] Production.INFO: ==24098== Releasing lock... [2025-03-06 18:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 18:55:23] Production.INFO: 49.75 MB #Memory Used# [2025-03-06 18:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 15:56:05 [end_date_ymd] => 2025-03-06 18:56:05 [RateCDR] => 1 ) [2025-03-06 18:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 15:56:05' and `end` < '2025-03-06 18:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 18:56:18] Production.INFO: count ==2956 [2025-03-06 18:56:19] Production.ERROR: pbx CDR StartTime 2025-03-06 15:56:05 - End Time 2025-03-06 18:56:05 [2025-03-06 18:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 18:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622451', 'tblTempUsageDetail_20' ) start [2025-03-06 18:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622451', 'tblTempUsageDetail_20' ) end [2025-03-06 18:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622451', 'tblTempVendorCDR_20' ) start [2025-03-06 18:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622451', 'tblTempVendorCDR_20' ) end [2025-03-06 18:56:19] Production.INFO: ProcessCDR(1,14622451,1,1,2) [2025-03-06 18:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14622451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 18:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14622451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 18:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14622451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 18:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14622451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 18:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622451', 'tblTempUsageDetail_20' ) start [2025-03-06 18:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622451', 'tblTempUsageDetail_20' ) end [2025-03-06 18:56:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 18:56:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 18:56:22] Production.INFO: ==24170== Releasing lock... [2025-03-06 18:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 18:56:22] Production.INFO: 49.75 MB #Memory Used# [2025-03-06 18:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 15:57:05 [end_date_ymd] => 2025-03-06 18:57:05 [RateCDR] => 1 ) [2025-03-06 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-03-06 15:57:05' and `end` < '2025-03-06 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-03-06 18:57:17] Production.INFO: count ==2947 [2025-03-06 18:57:18] Production.ERROR: pbx CDR StartTime 2025-03-06 15:57:05 - End Time 2025-03-06 18:57:05 [2025-03-06 18:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 18:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622456', 'tblTempUsageDetail_20' ) start [2025-03-06 18:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622456', 'tblTempUsageDetail_20' ) end [2025-03-06 18:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622456', 'tblTempVendorCDR_20' ) start [2025-03-06 18:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622456', 'tblTempVendorCDR_20' ) end [2025-03-06 18:57:18] Production.INFO: ProcessCDR(1,14622456,1,1,2) [2025-03-06 18:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14622456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 18:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14622456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 18:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14622456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 18:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14622456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 18:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622456', 'tblTempUsageDetail_20' ) start [2025-03-06 18:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622456', 'tblTempUsageDetail_20' ) end [2025-03-06 18:57:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 18:57:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 18:57:21] Production.INFO: ==24240== Releasing lock... [2025-03-06 18:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 18:57:21] Production.INFO: 49.75 MB #Memory Used# [2025-03-06 18:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 15:58:05 [end_date_ymd] => 2025-03-06 18:58:05 [RateCDR] => 1 ) [2025-03-06 18: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-03-06 15:58:05' and `end` < '2025-03-06 18: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-03-06 18:58:17] Production.INFO: count ==2939 [2025-03-06 18:58:18] Production.ERROR: pbx CDR StartTime 2025-03-06 15:58:05 - End Time 2025-03-06 18:58:05 [2025-03-06 18:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 18:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622461', 'tblTempUsageDetail_20' ) start [2025-03-06 18:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622461', 'tblTempUsageDetail_20' ) end [2025-03-06 18:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622461', 'tblTempVendorCDR_20' ) start [2025-03-06 18:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622461', 'tblTempVendorCDR_20' ) end [2025-03-06 18:58:18] Production.INFO: ProcessCDR(1,14622461,1,1,2) [2025-03-06 18:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14622461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 18:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14622461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 18:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14622461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 18:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14622461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 18:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622461', 'tblTempUsageDetail_20' ) start [2025-03-06 18:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622461', 'tblTempUsageDetail_20' ) end [2025-03-06 18:58:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 18:58:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 18:58:22] Production.INFO: ==24311== Releasing lock... [2025-03-06 18:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 18:58:22] Production.INFO: 49.75 MB #Memory Used# [2025-03-06 18:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 15:59:05 [end_date_ymd] => 2025-03-06 18:59:05 [RateCDR] => 1 ) [2025-03-06 18:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 15:59:05' and `end` < '2025-03-06 18:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 18:59:18] Production.INFO: count ==2934 [2025-03-06 18:59:19] Production.ERROR: pbx CDR StartTime 2025-03-06 15:59:05 - End Time 2025-03-06 18:59:05 [2025-03-06 18:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 18:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622466', 'tblTempUsageDetail_20' ) start [2025-03-06 18:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622466', 'tblTempUsageDetail_20' ) end [2025-03-06 18:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622466', 'tblTempVendorCDR_20' ) start [2025-03-06 18:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622466', 'tblTempVendorCDR_20' ) end [2025-03-06 18:59:19] Production.INFO: ProcessCDR(1,14622466,1,1,2) [2025-03-06 18:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14622466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 18:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14622466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 18:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14622466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 18:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14622466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 18:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622466', 'tblTempUsageDetail_20' ) start [2025-03-06 18:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622466', 'tblTempUsageDetail_20' ) end [2025-03-06 18:59:24] Production.ERROR: pbx prc_insertCDR start [2025-03-06 18:59:24] Production.ERROR: pbx prc_insertCDR end [2025-03-06 18:59:24] Production.INFO: ==24383== Releasing lock... [2025-03-06 18:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 18:59:24] Production.INFO: 49.75 MB #Memory Used# [2025-03-06 19:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 16:00:06 [end_date_ymd] => 2025-03-06 19:00:06 [RateCDR] => 1 ) [2025-03-06 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-03-06 16:00:06' and `end` < '2025-03-06 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-03-06 19:00:19] Production.INFO: count ==2929 [2025-03-06 19:00:19] Production.ERROR: pbx CDR StartTime 2025-03-06 16:00:06 - End Time 2025-03-06 19:00:06 [2025-03-06 19:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 19:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622472', 'tblTempUsageDetail_20' ) start [2025-03-06 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622472', 'tblTempUsageDetail_20' ) end [2025-03-06 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622472', 'tblTempVendorCDR_20' ) start [2025-03-06 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622472', 'tblTempVendorCDR_20' ) end [2025-03-06 19:00:20] Production.INFO: ProcessCDR(1,14622472,1,1,2) [2025-03-06 19:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14622472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 19:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14622472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 19:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14622472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 19:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14622472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 19:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622472', 'tblTempUsageDetail_20' ) start [2025-03-06 19:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622472', 'tblTempUsageDetail_20' ) end [2025-03-06 19:00:24] Production.ERROR: pbx prc_insertCDR start [2025-03-06 19:00:24] Production.ERROR: pbx prc_insertCDR end [2025-03-06 19:00:24] Production.INFO: ==24459== Releasing lock... [2025-03-06 19:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 19:00:24] Production.INFO: 49.75 MB #Memory Used# [2025-03-06 19:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 16:01:06 [end_date_ymd] => 2025-03-06 19:01:06 [RateCDR] => 1 ) [2025-03-06 19: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-03-06 16:01:06' and `end` < '2025-03-06 19: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-03-06 19:01:18] Production.INFO: count ==2877 [2025-03-06 19:01:19] Production.ERROR: pbx CDR StartTime 2025-03-06 16:01:06 - End Time 2025-03-06 19:01:06 [2025-03-06 19:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 19:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622477', 'tblTempUsageDetail_20' ) start [2025-03-06 19:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622477', 'tblTempUsageDetail_20' ) end [2025-03-06 19:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622477', 'tblTempVendorCDR_20' ) start [2025-03-06 19:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622477', 'tblTempVendorCDR_20' ) end [2025-03-06 19:01:19] Production.INFO: ProcessCDR(1,14622477,1,1,2) [2025-03-06 19:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14622477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 19:01:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14622477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 19:01:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14622477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 19:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14622477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 19:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622477', 'tblTempUsageDetail_20' ) start [2025-03-06 19:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622477', 'tblTempUsageDetail_20' ) end [2025-03-06 19:01:24] Production.ERROR: pbx prc_insertCDR start [2025-03-06 19:01:24] Production.ERROR: pbx prc_insertCDR end [2025-03-06 19:01:24] Production.INFO: ==24622== Releasing lock... [2025-03-06 19:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 19:01:24] Production.INFO: 49.5 MB #Memory Used# [2025-03-06 19:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 16:02:06 [end_date_ymd] => 2025-03-06 19:02:06 [RateCDR] => 1 ) [2025-03-06 19: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-03-06 16:02:06' and `end` < '2025-03-06 19: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-03-06 19:02:18] Production.INFO: count ==2866 [2025-03-06 19:02:19] Production.ERROR: pbx CDR StartTime 2025-03-06 16:02:06 - End Time 2025-03-06 19:02:06 [2025-03-06 19:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 19:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622482', 'tblTempUsageDetail_20' ) start [2025-03-06 19:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622482', 'tblTempUsageDetail_20' ) end [2025-03-06 19:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622482', 'tblTempVendorCDR_20' ) start [2025-03-06 19:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622482', 'tblTempVendorCDR_20' ) end [2025-03-06 19:02:19] Production.INFO: ProcessCDR(1,14622482,1,1,2) [2025-03-06 19:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14622482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 19:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14622482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 19:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14622482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 19:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14622482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 19:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622482', 'tblTempUsageDetail_20' ) start [2025-03-06 19:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622482', 'tblTempUsageDetail_20' ) end [2025-03-06 19:02:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 19:02:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 19:02:22] Production.INFO: ==24698== Releasing lock... [2025-03-06 19:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 19:02:22] Production.INFO: 49.75 MB #Memory Used# [2025-03-06 19:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 16:03:05 [end_date_ymd] => 2025-03-06 19:03:05 [RateCDR] => 1 ) [2025-03-06 19:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 16:03:05' and `end` < '2025-03-06 19:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 19:03:18] Production.INFO: count ==2851 [2025-03-06 19:03:19] Production.ERROR: pbx CDR StartTime 2025-03-06 16:03:05 - End Time 2025-03-06 19:03:05 [2025-03-06 19:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 19:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622487', 'tblTempUsageDetail_20' ) start [2025-03-06 19:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622487', 'tblTempUsageDetail_20' ) end [2025-03-06 19:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622487', 'tblTempVendorCDR_20' ) start [2025-03-06 19:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622487', 'tblTempVendorCDR_20' ) end [2025-03-06 19:03:19] Production.INFO: ProcessCDR(1,14622487,1,1,2) [2025-03-06 19:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14622487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 19:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14622487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 19:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14622487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 19:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14622487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 19:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622487', 'tblTempUsageDetail_20' ) start [2025-03-06 19:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622487', 'tblTempUsageDetail_20' ) end [2025-03-06 19:03:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 19:03:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 19:03:22] Production.INFO: ==24773== Releasing lock... [2025-03-06 19:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 19:03:22] Production.INFO: 49.5 MB #Memory Used# [2025-03-06 19:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 16:04:05 [end_date_ymd] => 2025-03-06 19:04:05 [RateCDR] => 1 ) [2025-03-06 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-03-06 16:04:05' and `end` < '2025-03-06 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-03-06 19:04:18] Production.INFO: count ==2842 [2025-03-06 19:04:19] Production.ERROR: pbx CDR StartTime 2025-03-06 16:04:05 - End Time 2025-03-06 19:04:05 [2025-03-06 19:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 19:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622492', 'tblTempUsageDetail_20' ) start [2025-03-06 19:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622492', 'tblTempUsageDetail_20' ) end [2025-03-06 19:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622492', 'tblTempVendorCDR_20' ) start [2025-03-06 19:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622492', 'tblTempVendorCDR_20' ) end [2025-03-06 19:04:19] Production.INFO: ProcessCDR(1,14622492,1,1,2) [2025-03-06 19:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14622492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 19:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14622492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 19:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14622492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 19:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14622492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 19:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622492', 'tblTempUsageDetail_20' ) start [2025-03-06 19:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622492', 'tblTempUsageDetail_20' ) end [2025-03-06 19:04:24] Production.ERROR: pbx prc_insertCDR start [2025-03-06 19:04:24] Production.ERROR: pbx prc_insertCDR end [2025-03-06 19:04:24] Production.INFO: ==24845== Releasing lock... [2025-03-06 19:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 19:04:24] Production.INFO: 49.25 MB #Memory Used# [2025-03-06 19:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 16:05:05 [end_date_ymd] => 2025-03-06 19:05:05 [RateCDR] => 1 ) [2025-03-06 19:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 16:05:05' and `end` < '2025-03-06 19:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 19:05:18] Production.INFO: count ==2839 [2025-03-06 19:05:19] Production.ERROR: pbx CDR StartTime 2025-03-06 16:05:05 - End Time 2025-03-06 19:05:05 [2025-03-06 19:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 19:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622497', 'tblTempUsageDetail_20' ) start [2025-03-06 19:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622497', 'tblTempUsageDetail_20' ) end [2025-03-06 19:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622497', 'tblTempVendorCDR_20' ) start [2025-03-06 19:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622497', 'tblTempVendorCDR_20' ) end [2025-03-06 19:05:19] Production.INFO: ProcessCDR(1,14622497,1,1,2) [2025-03-06 19:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14622497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 19:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14622497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 19:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14622497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 19:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14622497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 19:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622497', 'tblTempUsageDetail_20' ) start [2025-03-06 19:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622497', 'tblTempUsageDetail_20' ) end [2025-03-06 19:05:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 19:05:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 19:05:22] Production.INFO: ==24996== Releasing lock... [2025-03-06 19:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 19:05:22] Production.INFO: 49.5 MB #Memory Used# [2025-03-06 19:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 16:06:05 [end_date_ymd] => 2025-03-06 19:06:05 [RateCDR] => 1 ) [2025-03-06 19:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 16:06:05' and `end` < '2025-03-06 19:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 19:06:18] Production.INFO: count ==2834 [2025-03-06 19:06:18] Production.ERROR: pbx CDR StartTime 2025-03-06 16:06:05 - End Time 2025-03-06 19:06:05 [2025-03-06 19:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 19:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622502', 'tblTempUsageDetail_20' ) start [2025-03-06 19:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622502', 'tblTempUsageDetail_20' ) end [2025-03-06 19:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622502', 'tblTempVendorCDR_20' ) start [2025-03-06 19:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622502', 'tblTempVendorCDR_20' ) end [2025-03-06 19:06:19] Production.INFO: ProcessCDR(1,14622502,1,1,2) [2025-03-06 19:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14622502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 19:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14622502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 19:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14622502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 19:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14622502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 19:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622502', 'tblTempUsageDetail_20' ) start [2025-03-06 19:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622502', 'tblTempUsageDetail_20' ) end [2025-03-06 19:06:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 19:06:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 19:06:22] Production.INFO: ==25110== Releasing lock... [2025-03-06 19:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 19:06:22] Production.INFO: 49.25 MB #Memory Used# [2025-03-06 19:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 16:07:05 [end_date_ymd] => 2025-03-06 19:07:05 [RateCDR] => 1 ) [2025-03-06 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-03-06 16:07:05' and `end` < '2025-03-06 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-03-06 19:07:18] Production.INFO: count ==2824 [2025-03-06 19:07:18] Production.ERROR: pbx CDR StartTime 2025-03-06 16:07:05 - End Time 2025-03-06 19:07:05 [2025-03-06 19:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 19:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622507', 'tblTempUsageDetail_20' ) start [2025-03-06 19:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622507', 'tblTempUsageDetail_20' ) end [2025-03-06 19:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622507', 'tblTempVendorCDR_20' ) start [2025-03-06 19:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622507', 'tblTempVendorCDR_20' ) end [2025-03-06 19:07:19] Production.INFO: ProcessCDR(1,14622507,1,1,2) [2025-03-06 19:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14622507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 19:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14622507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 19:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14622507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 19:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14622507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 19:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622507', 'tblTempUsageDetail_20' ) start [2025-03-06 19:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622507', 'tblTempUsageDetail_20' ) end [2025-03-06 19:07:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 19:07:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 19:07:22] Production.INFO: ==25179== Releasing lock... [2025-03-06 19:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 19:07:22] Production.INFO: 49.25 MB #Memory Used# [2025-03-06 19:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 16:08:05 [end_date_ymd] => 2025-03-06 19:08:05 [RateCDR] => 1 ) [2025-03-06 19:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 16:08:05' and `end` < '2025-03-06 19:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 19:08:18] Production.INFO: count ==2821 [2025-03-06 19:08:18] Production.ERROR: pbx CDR StartTime 2025-03-06 16:08:05 - End Time 2025-03-06 19:08:05 [2025-03-06 19:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 19:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622512', 'tblTempUsageDetail_20' ) start [2025-03-06 19:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622512', 'tblTempUsageDetail_20' ) end [2025-03-06 19:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622512', 'tblTempVendorCDR_20' ) start [2025-03-06 19:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622512', 'tblTempVendorCDR_20' ) end [2025-03-06 19:08:18] Production.INFO: ProcessCDR(1,14622512,1,1,2) [2025-03-06 19:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14622512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 19:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14622512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 19:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14622512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 19:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14622512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 19:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622512', 'tblTempUsageDetail_20' ) start [2025-03-06 19:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622512', 'tblTempUsageDetail_20' ) end [2025-03-06 19:08:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 19:08:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 19:08:22] Production.INFO: ==25329== Releasing lock... [2025-03-06 19:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 19:08:22] Production.INFO: 49.25 MB #Memory Used# [2025-03-06 19:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 16:09:05 [end_date_ymd] => 2025-03-06 19:09:05 [RateCDR] => 1 ) [2025-03-06 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-03-06 16:09:05' and `end` < '2025-03-06 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-03-06 19:09:18] Production.INFO: count ==2794 [2025-03-06 19:09:19] Production.ERROR: pbx CDR StartTime 2025-03-06 16:09:05 - End Time 2025-03-06 19:09:05 [2025-03-06 19:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 19:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622517', 'tblTempUsageDetail_20' ) start [2025-03-06 19:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622517', 'tblTempUsageDetail_20' ) end [2025-03-06 19:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622517', 'tblTempVendorCDR_20' ) start [2025-03-06 19:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622517', 'tblTempVendorCDR_20' ) end [2025-03-06 19:09:19] Production.INFO: ProcessCDR(1,14622517,1,1,2) [2025-03-06 19:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14622517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 19:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14622517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 19:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14622517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 19:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14622517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 19:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622517', 'tblTempUsageDetail_20' ) start [2025-03-06 19:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622517', 'tblTempUsageDetail_20' ) end [2025-03-06 19:09:23] Production.ERROR: pbx prc_insertCDR start [2025-03-06 19:09:23] Production.ERROR: pbx prc_insertCDR end [2025-03-06 19:09:23] Production.INFO: ==25400== Releasing lock... [2025-03-06 19:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 19:09:23] Production.INFO: 49 MB #Memory Used# [2025-03-06 19:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 16:10:05 [end_date_ymd] => 2025-03-06 19:10:05 [RateCDR] => 1 ) [2025-03-06 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-03-06 16:10:05' and `end` < '2025-03-06 19:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 19:10:18] Production.INFO: count ==2775 [2025-03-06 19:10:19] Production.ERROR: pbx CDR StartTime 2025-03-06 16:10:05 - End Time 2025-03-06 19:10:05 [2025-03-06 19:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 19:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622522', 'tblTempUsageDetail_20' ) start [2025-03-06 19:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622522', 'tblTempUsageDetail_20' ) end [2025-03-06 19:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622522', 'tblTempVendorCDR_20' ) start [2025-03-06 19:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622522', 'tblTempVendorCDR_20' ) end [2025-03-06 19:10:19] Production.INFO: ProcessCDR(1,14622522,1,1,2) [2025-03-06 19:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14622522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 19:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14622522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 19:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14622522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 19:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14622522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 19:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622522', 'tblTempUsageDetail_20' ) start [2025-03-06 19:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622522', 'tblTempUsageDetail_20' ) end [2025-03-06 19:10:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 19:10:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 19:10:22] Production.INFO: ==25477== Releasing lock... [2025-03-06 19:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 19:10:22] Production.INFO: 49.5 MB #Memory Used# [2025-03-06 19:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 16:11:06 [end_date_ymd] => 2025-03-06 19:11:06 [RateCDR] => 1 ) [2025-03-06 19: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-03-06 16:11:06' and `end` < '2025-03-06 19: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-03-06 19:11:18] Production.INFO: count ==2678 [2025-03-06 19:11:19] Production.ERROR: pbx CDR StartTime 2025-03-06 16:11:06 - End Time 2025-03-06 19:11:06 [2025-03-06 19:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 19:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622528', 'tblTempUsageDetail_20' ) start [2025-03-06 19:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622528', 'tblTempUsageDetail_20' ) end [2025-03-06 19:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622528', 'tblTempVendorCDR_20' ) start [2025-03-06 19:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622528', 'tblTempVendorCDR_20' ) end [2025-03-06 19:11:19] Production.INFO: ProcessCDR(1,14622528,1,1,2) [2025-03-06 19:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14622528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 19:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14622528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 19:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14622528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 19:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14622528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 19:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622528', 'tblTempUsageDetail_20' ) start [2025-03-06 19:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622528', 'tblTempUsageDetail_20' ) end [2025-03-06 19:11:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 19:11:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 19:11:22] Production.INFO: ==25550== Releasing lock... [2025-03-06 19:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 19:11:22] Production.INFO: 48.5 MB #Memory Used# [2025-03-06 19:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 16:12:05 [end_date_ymd] => 2025-03-06 19:12:05 [RateCDR] => 1 ) [2025-03-06 19:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 16:12:05' and `end` < '2025-03-06 19:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 19:12:18] Production.INFO: count ==2678 [2025-03-06 19:12:19] Production.ERROR: pbx CDR StartTime 2025-03-06 16:12:05 - End Time 2025-03-06 19:12:05 [2025-03-06 19:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 19:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622533', 'tblTempUsageDetail_20' ) start [2025-03-06 19:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622533', 'tblTempUsageDetail_20' ) end [2025-03-06 19:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622533', 'tblTempVendorCDR_20' ) start [2025-03-06 19:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622533', 'tblTempVendorCDR_20' ) end [2025-03-06 19:12:19] Production.INFO: ProcessCDR(1,14622533,1,1,2) [2025-03-06 19:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14622533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 19:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14622533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 19:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14622533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 19:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14622533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 19:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622533', 'tblTempUsageDetail_20' ) start [2025-03-06 19:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622533', 'tblTempUsageDetail_20' ) end [2025-03-06 19:12:24] Production.ERROR: pbx prc_insertCDR start [2025-03-06 19:12:24] Production.ERROR: pbx prc_insertCDR end [2025-03-06 19:12:24] Production.INFO: ==25703== Releasing lock... [2025-03-06 19:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 19:12:24] Production.INFO: 48.25 MB #Memory Used# [2025-03-06 19:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 16:13:05 [end_date_ymd] => 2025-03-06 19:13:05 [RateCDR] => 1 ) [2025-03-06 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-03-06 16:13:05' and `end` < '2025-03-06 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-03-06 19:13:17] Production.INFO: count ==2668 [2025-03-06 19:13:18] Production.ERROR: pbx CDR StartTime 2025-03-06 16:13:05 - End Time 2025-03-06 19:13:05 [2025-03-06 19:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 19:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622538', 'tblTempUsageDetail_20' ) start [2025-03-06 19:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622538', 'tblTempUsageDetail_20' ) end [2025-03-06 19:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622538', 'tblTempVendorCDR_20' ) start [2025-03-06 19:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622538', 'tblTempVendorCDR_20' ) end [2025-03-06 19:13:18] Production.INFO: ProcessCDR(1,14622538,1,1,2) [2025-03-06 19:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14622538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 19:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14622538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 19:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14622538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 19:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14622538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 19:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622538', 'tblTempUsageDetail_20' ) start [2025-03-06 19:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622538', 'tblTempUsageDetail_20' ) end [2025-03-06 19:13:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 19:13:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 19:13:21] Production.INFO: ==25772== Releasing lock... [2025-03-06 19:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 19:13:21] Production.INFO: 48 MB #Memory Used# [2025-03-06 19:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 16:14:06 [end_date_ymd] => 2025-03-06 19:14:06 [RateCDR] => 1 ) [2025-03-06 19: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-03-06 16:14:06' and `end` < '2025-03-06 19: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-03-06 19:14:18] Production.INFO: count ==2662 [2025-03-06 19:14:19] Production.ERROR: pbx CDR StartTime 2025-03-06 16:14:06 - End Time 2025-03-06 19:14:06 [2025-03-06 19:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 19:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622543', 'tblTempUsageDetail_20' ) start [2025-03-06 19:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622543', 'tblTempUsageDetail_20' ) end [2025-03-06 19:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622543', 'tblTempVendorCDR_20' ) start [2025-03-06 19:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622543', 'tblTempVendorCDR_20' ) end [2025-03-06 19:14:19] Production.INFO: ProcessCDR(1,14622543,1,1,2) [2025-03-06 19:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14622543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 19:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14622543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 19:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14622543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 19:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14622543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 19:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622543', 'tblTempUsageDetail_20' ) start [2025-03-06 19:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622543', 'tblTempUsageDetail_20' ) end [2025-03-06 19:14:24] Production.ERROR: pbx prc_insertCDR start [2025-03-06 19:14:24] Production.ERROR: pbx prc_insertCDR end [2025-03-06 19:14:24] Production.INFO: ==25843== Releasing lock... [2025-03-06 19:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 19:14:24] Production.INFO: 48 MB #Memory Used# [2025-03-06 19:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 16:15:05 [end_date_ymd] => 2025-03-06 19:15:05 [RateCDR] => 1 ) [2025-03-06 19:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 16:15:05' and `end` < '2025-03-06 19:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 19:15:18] Production.INFO: count ==2634 [2025-03-06 19:15:18] Production.ERROR: pbx CDR StartTime 2025-03-06 16:15:05 - End Time 2025-03-06 19:15:05 [2025-03-06 19:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 19:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622548', 'tblTempUsageDetail_20' ) start [2025-03-06 19:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622548', 'tblTempUsageDetail_20' ) end [2025-03-06 19:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622548', 'tblTempVendorCDR_20' ) start [2025-03-06 19:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622548', 'tblTempVendorCDR_20' ) end [2025-03-06 19:15:18] Production.INFO: ProcessCDR(1,14622548,1,1,2) [2025-03-06 19:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14622548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 19:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14622548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 19:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14622548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 19:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14622548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 19:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622548', 'tblTempUsageDetail_20' ) start [2025-03-06 19:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622548', 'tblTempUsageDetail_20' ) end [2025-03-06 19:15:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 19:15:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 19:15:22] Production.INFO: ==25993== Releasing lock... [2025-03-06 19:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 19:15:22] Production.INFO: 47.75 MB #Memory Used# [2025-03-06 19:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 16:16:05 [end_date_ymd] => 2025-03-06 19:16:05 [RateCDR] => 1 ) [2025-03-06 19:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 16:16:05' and `end` < '2025-03-06 19:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 19:16:18] Production.INFO: count ==2625 [2025-03-06 19:16:19] Production.ERROR: pbx CDR StartTime 2025-03-06 16:16:05 - End Time 2025-03-06 19:16:05 [2025-03-06 19:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 19:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622553', 'tblTempUsageDetail_20' ) start [2025-03-06 19:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622553', 'tblTempUsageDetail_20' ) end [2025-03-06 19:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622553', 'tblTempVendorCDR_20' ) start [2025-03-06 19:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622553', 'tblTempVendorCDR_20' ) end [2025-03-06 19:16:19] Production.INFO: ProcessCDR(1,14622553,1,1,2) [2025-03-06 19:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14622553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 19:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14622553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 19:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14622553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 19:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14622553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 19:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622553', 'tblTempUsageDetail_20' ) start [2025-03-06 19:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622553', 'tblTempUsageDetail_20' ) end [2025-03-06 19:16:23] Production.ERROR: pbx prc_insertCDR start [2025-03-06 19:16:23] Production.ERROR: pbx prc_insertCDR end [2025-03-06 19:16:23] Production.INFO: ==26064== Releasing lock... [2025-03-06 19:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 19:16:23] Production.INFO: 47.75 MB #Memory Used# [2025-03-06 19:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 16:17:05 [end_date_ymd] => 2025-03-06 19:17:05 [RateCDR] => 1 ) [2025-03-06 19:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 16:17:05' and `end` < '2025-03-06 19:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 19:17:17] Production.INFO: count ==2611 [2025-03-06 19:17:18] Production.ERROR: pbx CDR StartTime 2025-03-06 16:17:05 - End Time 2025-03-06 19:17:05 [2025-03-06 19:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 19:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622558', 'tblTempUsageDetail_20' ) start [2025-03-06 19:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622558', 'tblTempUsageDetail_20' ) end [2025-03-06 19:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622558', 'tblTempVendorCDR_20' ) start [2025-03-06 19:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622558', 'tblTempVendorCDR_20' ) end [2025-03-06 19:17:18] Production.INFO: ProcessCDR(1,14622558,1,1,2) [2025-03-06 19:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14622558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 19:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14622558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 19:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14622558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 19:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14622558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 19:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622558', 'tblTempUsageDetail_20' ) start [2025-03-06 19:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622558', 'tblTempUsageDetail_20' ) end [2025-03-06 19:17:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 19:17:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 19:17:22] Production.INFO: ==26134== Releasing lock... [2025-03-06 19:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 19:17:22] Production.INFO: 48 MB #Memory Used# [2025-03-06 19:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 16:18:05 [end_date_ymd] => 2025-03-06 19:18:05 [RateCDR] => 1 ) [2025-03-06 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-03-06 16:18:05' and `end` < '2025-03-06 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-03-06 19:18:18] Production.INFO: count ==2596 [2025-03-06 19:18:19] Production.ERROR: pbx CDR StartTime 2025-03-06 16:18:05 - End Time 2025-03-06 19:18:05 [2025-03-06 19:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 19:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622563', 'tblTempUsageDetail_20' ) start [2025-03-06 19:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622563', 'tblTempUsageDetail_20' ) end [2025-03-06 19:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622563', 'tblTempVendorCDR_20' ) start [2025-03-06 19:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622563', 'tblTempVendorCDR_20' ) end [2025-03-06 19:18:19] Production.INFO: ProcessCDR(1,14622563,1,1,2) [2025-03-06 19:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14622563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 19:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14622563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 19:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14622563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 19:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14622563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 19:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622563', 'tblTempUsageDetail_20' ) start [2025-03-06 19:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622563', 'tblTempUsageDetail_20' ) end [2025-03-06 19:18:23] Production.ERROR: pbx prc_insertCDR start [2025-03-06 19:18:23] Production.ERROR: pbx prc_insertCDR end [2025-03-06 19:18:23] Production.INFO: ==26210== Releasing lock... [2025-03-06 19:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 19:18:23] Production.INFO: 47.5 MB #Memory Used# [2025-03-06 19:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 16:19:05 [end_date_ymd] => 2025-03-06 19:19:05 [RateCDR] => 1 ) [2025-03-06 19:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 16:19:05' and `end` < '2025-03-06 19:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 19:19:17] Production.INFO: count ==2576 [2025-03-06 19:19:18] Production.ERROR: pbx CDR StartTime 2025-03-06 16:19:05 - End Time 2025-03-06 19:19:05 [2025-03-06 19:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 19:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622568', 'tblTempUsageDetail_20' ) start [2025-03-06 19:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622568', 'tblTempUsageDetail_20' ) end [2025-03-06 19:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622568', 'tblTempVendorCDR_20' ) start [2025-03-06 19:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622568', 'tblTempVendorCDR_20' ) end [2025-03-06 19:19:18] Production.INFO: ProcessCDR(1,14622568,1,1,2) [2025-03-06 19:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14622568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 19:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14622568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 19:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14622568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 19:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14622568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 19:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622568', 'tblTempUsageDetail_20' ) start [2025-03-06 19:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622568', 'tblTempUsageDetail_20' ) end [2025-03-06 19:19:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 19:19:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 19:19:21] Production.INFO: ==26288== Releasing lock... [2025-03-06 19:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 19:19:21] Production.INFO: 47.5 MB #Memory Used# [2025-03-06 19:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 16:20:06 [end_date_ymd] => 2025-03-06 19:20:06 [RateCDR] => 1 ) [2025-03-06 19:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 16:20:06' and `end` < '2025-03-06 19:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 19:20:18] Production.INFO: count ==2560 [2025-03-06 19:20:19] Production.ERROR: pbx CDR StartTime 2025-03-06 16:20:06 - End Time 2025-03-06 19:20:06 [2025-03-06 19:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 19:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622574', 'tblTempUsageDetail_20' ) start [2025-03-06 19:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622574', 'tblTempUsageDetail_20' ) end [2025-03-06 19:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622574', 'tblTempVendorCDR_20' ) start [2025-03-06 19:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622574', 'tblTempVendorCDR_20' ) end [2025-03-06 19:20:19] Production.INFO: ProcessCDR(1,14622574,1,1,2) [2025-03-06 19:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14622574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 19:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14622574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 19:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14622574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 19:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14622574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 19:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622574', 'tblTempUsageDetail_20' ) start [2025-03-06 19:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622574', 'tblTempUsageDetail_20' ) end [2025-03-06 19:20:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 19:20:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 19:20:22] Production.INFO: ==26366== Releasing lock... [2025-03-06 19:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 19:20:22] Production.INFO: 47.25 MB #Memory Used# [2025-03-06 19:21:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 16:21:04 [end_date_ymd] => 2025-03-06 19:21:04 [RateCDR] => 1 ) [2025-03-06 19: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-03-06 16:21:04' and `end` < '2025-03-06 19: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-03-06 19:21:17] Production.INFO: count ==2516 [2025-03-06 19:21:18] Production.ERROR: pbx CDR StartTime 2025-03-06 16:21:04 - End Time 2025-03-06 19:21:04 [2025-03-06 19:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 19:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622579', 'tblTempUsageDetail_20' ) start [2025-03-06 19:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622579', 'tblTempUsageDetail_20' ) end [2025-03-06 19:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622579', 'tblTempVendorCDR_20' ) start [2025-03-06 19:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622579', 'tblTempVendorCDR_20' ) end [2025-03-06 19:21:18] Production.INFO: ProcessCDR(1,14622579,1,1,2) [2025-03-06 19:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14622579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 19:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14622579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 19:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14622579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 19:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14622579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 19:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622579', 'tblTempUsageDetail_20' ) start [2025-03-06 19:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622579', 'tblTempUsageDetail_20' ) end [2025-03-06 19:21:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 19:21:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 19:21:21] Production.INFO: ==26486== Releasing lock... [2025-03-06 19:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 19:21:21] Production.INFO: 47 MB #Memory Used# [2025-03-06 19:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 16:22:05 [end_date_ymd] => 2025-03-06 19:22:05 [RateCDR] => 1 ) [2025-03-06 19:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 16:22:05' and `end` < '2025-03-06 19:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 19:22:18] Production.INFO: count ==2509 [2025-03-06 19:22:18] Production.ERROR: pbx CDR StartTime 2025-03-06 16:22:05 - End Time 2025-03-06 19:22:05 [2025-03-06 19:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 19:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622584', 'tblTempUsageDetail_20' ) start [2025-03-06 19:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622584', 'tblTempUsageDetail_20' ) end [2025-03-06 19:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622584', 'tblTempVendorCDR_20' ) start [2025-03-06 19:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622584', 'tblTempVendorCDR_20' ) end [2025-03-06 19:22:18] Production.INFO: ProcessCDR(1,14622584,1,1,2) [2025-03-06 19:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14622584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 19:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14622584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 19:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14622584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 19:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14622584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 19:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622584', 'tblTempUsageDetail_20' ) start [2025-03-06 19:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622584', 'tblTempUsageDetail_20' ) end [2025-03-06 19:22:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 19:22:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 19:22:22] Production.INFO: ==26563== Releasing lock... [2025-03-06 19:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 19:22:22] Production.INFO: 47 MB #Memory Used# [2025-03-06 19:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 16:23:05 [end_date_ymd] => 2025-03-06 19:23:05 [RateCDR] => 1 ) [2025-03-06 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-03-06 16:23:05' and `end` < '2025-03-06 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-03-06 19:23:18] Production.INFO: count ==2501 [2025-03-06 19:23:19] Production.ERROR: pbx CDR StartTime 2025-03-06 16:23:05 - End Time 2025-03-06 19:23:05 [2025-03-06 19:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 19:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622589', 'tblTempUsageDetail_20' ) start [2025-03-06 19:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622589', 'tblTempUsageDetail_20' ) end [2025-03-06 19:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622589', 'tblTempVendorCDR_20' ) start [2025-03-06 19:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622589', 'tblTempVendorCDR_20' ) end [2025-03-06 19:23:19] Production.INFO: ProcessCDR(1,14622589,1,1,2) [2025-03-06 19:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14622589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 19:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14622589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 19:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14622589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 19:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14622589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 19:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622589', 'tblTempUsageDetail_20' ) start [2025-03-06 19:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622589', 'tblTempUsageDetail_20' ) end [2025-03-06 19:23:23] Production.ERROR: pbx prc_insertCDR start [2025-03-06 19:23:23] Production.ERROR: pbx prc_insertCDR end [2025-03-06 19:23:23] Production.INFO: ==26640== Releasing lock... [2025-03-06 19:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 19:23:23] Production.INFO: 46.75 MB #Memory Used# [2025-03-06 19:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 16:24:06 [end_date_ymd] => 2025-03-06 19:24:06 [RateCDR] => 1 ) [2025-03-06 19: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-03-06 16:24:06' and `end` < '2025-03-06 19: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-03-06 19:24:18] Production.INFO: count ==2497 [2025-03-06 19:24:19] Production.ERROR: pbx CDR StartTime 2025-03-06 16:24:06 - End Time 2025-03-06 19:24:06 [2025-03-06 19:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 19:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622594', 'tblTempUsageDetail_20' ) start [2025-03-06 19:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622594', 'tblTempUsageDetail_20' ) end [2025-03-06 19:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622594', 'tblTempVendorCDR_20' ) start [2025-03-06 19:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622594', 'tblTempVendorCDR_20' ) end [2025-03-06 19:24:19] Production.INFO: ProcessCDR(1,14622594,1,1,2) [2025-03-06 19:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14622594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 19:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14622594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 19:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14622594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 19:24:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14622594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 19:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622594', 'tblTempUsageDetail_20' ) start [2025-03-06 19:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622594', 'tblTempUsageDetail_20' ) end [2025-03-06 19:24:24] Production.ERROR: pbx prc_insertCDR start [2025-03-06 19:24:24] Production.ERROR: pbx prc_insertCDR end [2025-03-06 19:24:24] Production.INFO: ==26715== Releasing lock... [2025-03-06 19:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 19:24:24] Production.INFO: 46.75 MB #Memory Used# [2025-03-06 19:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 16:25:05 [end_date_ymd] => 2025-03-06 19:25:05 [RateCDR] => 1 ) [2025-03-06 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-03-06 16:25:05' and `end` < '2025-03-06 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-03-06 19:25:17] Production.INFO: count ==2470 [2025-03-06 19:25:18] Production.ERROR: pbx CDR StartTime 2025-03-06 16:25:05 - End Time 2025-03-06 19:25:05 [2025-03-06 19:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 19:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622599', 'tblTempUsageDetail_20' ) start [2025-03-06 19:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622599', 'tblTempUsageDetail_20' ) end [2025-03-06 19:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622599', 'tblTempVendorCDR_20' ) start [2025-03-06 19:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622599', 'tblTempVendorCDR_20' ) end [2025-03-06 19:25:18] Production.INFO: ProcessCDR(1,14622599,1,1,2) [2025-03-06 19:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14622599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 19:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14622599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 19:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14622599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 19:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14622599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 19:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622599', 'tblTempUsageDetail_20' ) start [2025-03-06 19:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622599', 'tblTempUsageDetail_20' ) end [2025-03-06 19:25:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 19:25:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 19:25:21] Production.INFO: ==26797== Releasing lock... [2025-03-06 19:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 19:25:21] Production.INFO: 46.75 MB #Memory Used# [2025-03-06 19:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 16:26:05 [end_date_ymd] => 2025-03-06 19:26:05 [RateCDR] => 1 ) [2025-03-06 19:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 16:26:05' and `end` < '2025-03-06 19:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 19:26:17] Production.INFO: count ==2468 [2025-03-06 19:26:18] Production.ERROR: pbx CDR StartTime 2025-03-06 16:26:05 - End Time 2025-03-06 19:26:05 [2025-03-06 19:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 19:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622604', 'tblTempUsageDetail_20' ) start [2025-03-06 19:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622604', 'tblTempUsageDetail_20' ) end [2025-03-06 19:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622604', 'tblTempVendorCDR_20' ) start [2025-03-06 19:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622604', 'tblTempVendorCDR_20' ) end [2025-03-06 19:26:18] Production.INFO: ProcessCDR(1,14622604,1,1,2) [2025-03-06 19:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14622604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 19:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14622604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 19:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14622604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 19:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14622604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 19:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622604', 'tblTempUsageDetail_20' ) start [2025-03-06 19:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622604', 'tblTempUsageDetail_20' ) end [2025-03-06 19:26:23] Production.ERROR: pbx prc_insertCDR start [2025-03-06 19:26:23] Production.ERROR: pbx prc_insertCDR end [2025-03-06 19:26:23] Production.INFO: ==26874== Releasing lock... [2025-03-06 19:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 19:26:23] Production.INFO: 46.5 MB #Memory Used# [2025-03-06 19:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 16:27:06 [end_date_ymd] => 2025-03-06 19:27:06 [RateCDR] => 1 ) [2025-03-06 19:27:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 16:27:06' and `end` < '2025-03-06 19:27:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 19:27:18] Production.INFO: count ==2449 [2025-03-06 19:27:19] Production.ERROR: pbx CDR StartTime 2025-03-06 16:27:06 - End Time 2025-03-06 19:27:06 [2025-03-06 19:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 19:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622609', 'tblTempUsageDetail_20' ) start [2025-03-06 19:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622609', 'tblTempUsageDetail_20' ) end [2025-03-06 19:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622609', 'tblTempVendorCDR_20' ) start [2025-03-06 19:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622609', 'tblTempVendorCDR_20' ) end [2025-03-06 19:27:19] Production.INFO: ProcessCDR(1,14622609,1,1,2) [2025-03-06 19:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14622609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 19:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14622609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 19:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14622609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 19:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14622609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 19:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622609', 'tblTempUsageDetail_20' ) start [2025-03-06 19:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622609', 'tblTempUsageDetail_20' ) end [2025-03-06 19:27:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 19:27:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 19:27:22] Production.INFO: ==26958== Releasing lock... [2025-03-06 19:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 19:27:22] Production.INFO: 46.5 MB #Memory Used# [2025-03-06 19:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 16:28:05 [end_date_ymd] => 2025-03-06 19:28:05 [RateCDR] => 1 ) [2025-03-06 19:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 16:28:05' and `end` < '2025-03-06 19:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 19:28:18] Production.INFO: count ==2440 [2025-03-06 19:28:18] Production.ERROR: pbx CDR StartTime 2025-03-06 16:28:05 - End Time 2025-03-06 19:28:05 [2025-03-06 19:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 19:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622614', 'tblTempUsageDetail_20' ) start [2025-03-06 19:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622614', 'tblTempUsageDetail_20' ) end [2025-03-06 19:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622614', 'tblTempVendorCDR_20' ) start [2025-03-06 19:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622614', 'tblTempVendorCDR_20' ) end [2025-03-06 19:28:18] Production.INFO: ProcessCDR(1,14622614,1,1,2) [2025-03-06 19:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14622614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 19:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14622614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 19:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14622614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 19:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14622614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 19:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622614', 'tblTempUsageDetail_20' ) start [2025-03-06 19:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622614', 'tblTempUsageDetail_20' ) end [2025-03-06 19:28:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 19:28:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 19:28:22] Production.INFO: ==27034== Releasing lock... [2025-03-06 19:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 19:28:22] Production.INFO: 46.25 MB #Memory Used# [2025-03-06 19:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 16:29:05 [end_date_ymd] => 2025-03-06 19:29:05 [RateCDR] => 1 ) [2025-03-06 19:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 16:29:05' and `end` < '2025-03-06 19:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 19:29:18] Production.INFO: count ==2433 [2025-03-06 19:29:18] Production.ERROR: pbx CDR StartTime 2025-03-06 16:29:05 - End Time 2025-03-06 19:29:05 [2025-03-06 19:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 19:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622619', 'tblTempUsageDetail_20' ) start [2025-03-06 19:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622619', 'tblTempUsageDetail_20' ) end [2025-03-06 19:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622619', 'tblTempVendorCDR_20' ) start [2025-03-06 19:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622619', 'tblTempVendorCDR_20' ) end [2025-03-06 19:29:18] Production.INFO: ProcessCDR(1,14622619,1,1,2) [2025-03-06 19:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14622619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 19:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14622619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 19:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14622619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 19:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14622619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 19:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622619', 'tblTempUsageDetail_20' ) start [2025-03-06 19:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622619', 'tblTempUsageDetail_20' ) end [2025-03-06 19:29:23] Production.ERROR: pbx prc_insertCDR start [2025-03-06 19:29:23] Production.ERROR: pbx prc_insertCDR end [2025-03-06 19:29:23] Production.INFO: ==27111== Releasing lock... [2025-03-06 19:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 19:29:23] Production.INFO: 46.5 MB #Memory Used# [2025-03-06 19:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 16:30:06 [end_date_ymd] => 2025-03-06 19:30:06 [RateCDR] => 1 ) [2025-03-06 19: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-03-06 16:30:06' and `end` < '2025-03-06 19: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-03-06 19:30:18] Production.INFO: count ==2410 [2025-03-06 19:30:19] Production.ERROR: pbx CDR StartTime 2025-03-06 16:30:06 - End Time 2025-03-06 19:30:06 [2025-03-06 19:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 19:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622624', 'tblTempUsageDetail_20' ) start [2025-03-06 19:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622624', 'tblTempUsageDetail_20' ) end [2025-03-06 19:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622624', 'tblTempVendorCDR_20' ) start [2025-03-06 19:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622624', 'tblTempVendorCDR_20' ) end [2025-03-06 19:30:19] Production.INFO: ProcessCDR(1,14622624,1,1,2) [2025-03-06 19:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14622624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 19:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14622624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 19:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14622624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 19:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14622624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 19:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622624', 'tblTempUsageDetail_20' ) start [2025-03-06 19:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622624', 'tblTempUsageDetail_20' ) end [2025-03-06 19:30:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 19:30:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 19:30:22] Production.INFO: ==27188== Releasing lock... [2025-03-06 19:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 19:30:22] Production.INFO: 46.25 MB #Memory Used# [2025-03-06 19:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 16:31:06 [end_date_ymd] => 2025-03-06 19:31:06 [RateCDR] => 1 ) [2025-03-06 19:31:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 16:31:06' and `end` < '2025-03-06 19:31:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 19:31:18] Production.INFO: count ==2350 [2025-03-06 19:31:19] Production.ERROR: pbx CDR StartTime 2025-03-06 16:31:06 - End Time 2025-03-06 19:31:06 [2025-03-06 19:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 19:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622630', 'tblTempUsageDetail_20' ) start [2025-03-06 19:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622630', 'tblTempUsageDetail_20' ) end [2025-03-06 19:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622630', 'tblTempVendorCDR_20' ) start [2025-03-06 19:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622630', 'tblTempVendorCDR_20' ) end [2025-03-06 19:31:19] Production.INFO: ProcessCDR(1,14622630,1,1,2) [2025-03-06 19:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14622630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 19:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14622630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 19:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14622630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 19:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14622630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 19:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622630', 'tblTempUsageDetail_20' ) start [2025-03-06 19:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622630', 'tblTempUsageDetail_20' ) end [2025-03-06 19:31:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 19:31:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 19:31:22] Production.INFO: ==27268== Releasing lock... [2025-03-06 19:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 19:31:22] Production.INFO: 45.75 MB #Memory Used# [2025-03-06 19:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 16:32:05 [end_date_ymd] => 2025-03-06 19:32:05 [RateCDR] => 1 ) [2025-03-06 19:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 16:32:05' and `end` < '2025-03-06 19:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 19:32:17] Production.INFO: count ==2337 [2025-03-06 19:32:18] Production.ERROR: pbx CDR StartTime 2025-03-06 16:32:05 - End Time 2025-03-06 19:32:05 [2025-03-06 19:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 19:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622635', 'tblTempUsageDetail_20' ) start [2025-03-06 19:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622635', 'tblTempUsageDetail_20' ) end [2025-03-06 19:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622635', 'tblTempVendorCDR_20' ) start [2025-03-06 19:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622635', 'tblTempVendorCDR_20' ) end [2025-03-06 19:32:18] Production.INFO: ProcessCDR(1,14622635,1,1,2) [2025-03-06 19:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14622635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 19:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14622635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 19:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14622635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 19:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14622635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 19:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622635', 'tblTempUsageDetail_20' ) start [2025-03-06 19:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622635', 'tblTempUsageDetail_20' ) end [2025-03-06 19:32:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 19:32:23] Production.ERROR: pbx prc_insertCDR end [2025-03-06 19:32:23] Production.INFO: ==27344== Releasing lock... [2025-03-06 19:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 19:32:23] Production.INFO: 45.5 MB #Memory Used# [2025-03-06 19:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 16:33:05 [end_date_ymd] => 2025-03-06 19:33:05 [RateCDR] => 1 ) [2025-03-06 19:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 16:33:05' and `end` < '2025-03-06 19:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 19:33:18] Production.INFO: count ==2326 [2025-03-06 19:33:18] Production.ERROR: pbx CDR StartTime 2025-03-06 16:33:05 - End Time 2025-03-06 19:33:05 [2025-03-06 19:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 19:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622640', 'tblTempUsageDetail_20' ) start [2025-03-06 19:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622640', 'tblTempUsageDetail_20' ) end [2025-03-06 19:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622640', 'tblTempVendorCDR_20' ) start [2025-03-06 19:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622640', 'tblTempVendorCDR_20' ) end [2025-03-06 19:33:18] Production.INFO: ProcessCDR(1,14622640,1,1,2) [2025-03-06 19:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14622640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 19:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14622640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 19:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14622640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 19:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14622640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 19:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622640', 'tblTempUsageDetail_20' ) start [2025-03-06 19:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622640', 'tblTempUsageDetail_20' ) end [2025-03-06 19:33:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 19:33:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 19:33:22] Production.INFO: ==27421== Releasing lock... [2025-03-06 19:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 19:33:22] Production.INFO: 45.5 MB #Memory Used# [2025-03-06 19:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 16:34:05 [end_date_ymd] => 2025-03-06 19:34:05 [RateCDR] => 1 ) [2025-03-06 19: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-03-06 16:34:05' and `end` < '2025-03-06 19: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-03-06 19:34:18] Production.INFO: count ==2301 [2025-03-06 19:34:18] Production.ERROR: pbx CDR StartTime 2025-03-06 16:34:05 - End Time 2025-03-06 19:34:05 [2025-03-06 19:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 19:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622645', 'tblTempUsageDetail_20' ) start [2025-03-06 19:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622645', 'tblTempUsageDetail_20' ) end [2025-03-06 19:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622645', 'tblTempVendorCDR_20' ) start [2025-03-06 19:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622645', 'tblTempVendorCDR_20' ) end [2025-03-06 19:34:18] Production.INFO: ProcessCDR(1,14622645,1,1,2) [2025-03-06 19:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14622645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 19:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14622645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 19:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14622645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 19:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14622645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 19:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622645', 'tblTempUsageDetail_20' ) start [2025-03-06 19:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622645', 'tblTempUsageDetail_20' ) end [2025-03-06 19:34:23] Production.ERROR: pbx prc_insertCDR start [2025-03-06 19:34:23] Production.ERROR: pbx prc_insertCDR end [2025-03-06 19:34:23] Production.INFO: ==27498== Releasing lock... [2025-03-06 19:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 19:34:23] Production.INFO: 45.25 MB #Memory Used# [2025-03-06 19:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 16:35:05 [end_date_ymd] => 2025-03-06 19:35:05 [RateCDR] => 1 ) [2025-03-06 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-03-06 16:35:05' and `end` < '2025-03-06 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-03-06 19:35:18] Production.INFO: count ==2291 [2025-03-06 19:35:18] Production.ERROR: pbx CDR StartTime 2025-03-06 16:35:05 - End Time 2025-03-06 19:35:05 [2025-03-06 19:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 19:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622650', 'tblTempUsageDetail_20' ) start [2025-03-06 19:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622650', 'tblTempUsageDetail_20' ) end [2025-03-06 19:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622650', 'tblTempVendorCDR_20' ) start [2025-03-06 19:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622650', 'tblTempVendorCDR_20' ) end [2025-03-06 19:35:18] Production.INFO: ProcessCDR(1,14622650,1,1,2) [2025-03-06 19:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14622650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 19:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14622650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 19:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14622650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 19:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14622650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 19:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622650', 'tblTempUsageDetail_20' ) start [2025-03-06 19:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622650', 'tblTempUsageDetail_20' ) end [2025-03-06 19:35:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 19:35:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 19:35:22] Production.INFO: ==27577== Releasing lock... [2025-03-06 19:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 19:35:22] Production.INFO: 45.25 MB #Memory Used# [2025-03-06 19:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 16:36:06 [end_date_ymd] => 2025-03-06 19:36:06 [RateCDR] => 1 ) [2025-03-06 19: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-03-06 16:36:06' and `end` < '2025-03-06 19: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-03-06 19:36:18] Production.INFO: count ==2294 [2025-03-06 19:36:19] Production.ERROR: pbx CDR StartTime 2025-03-06 16:36:06 - End Time 2025-03-06 19:36:06 [2025-03-06 19:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622655', 'tblTempUsageDetail_20' ) start [2025-03-06 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622655', 'tblTempUsageDetail_20' ) end [2025-03-06 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622655', 'tblTempVendorCDR_20' ) start [2025-03-06 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622655', 'tblTempVendorCDR_20' ) end [2025-03-06 19:36:19] Production.INFO: ProcessCDR(1,14622655,1,1,2) [2025-03-06 19:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14622655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 19:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14622655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 19:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14622655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 19:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14622655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 19:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622655', 'tblTempUsageDetail_20' ) start [2025-03-06 19:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622655', 'tblTempUsageDetail_20' ) end [2025-03-06 19:36:24] Production.ERROR: pbx prc_insertCDR start [2025-03-06 19:36:24] Production.ERROR: pbx prc_insertCDR end [2025-03-06 19:36:24] Production.INFO: ==27657== Releasing lock... [2025-03-06 19:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 19:36:24] Production.INFO: 45.25 MB #Memory Used# [2025-03-06 19:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 16:37:05 [end_date_ymd] => 2025-03-06 19:37:05 [RateCDR] => 1 ) [2025-03-06 19:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 16:37:05' and `end` < '2025-03-06 19:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 19:37:18] Production.INFO: count ==2286 [2025-03-06 19:37:18] Production.ERROR: pbx CDR StartTime 2025-03-06 16:37:05 - End Time 2025-03-06 19:37:05 [2025-03-06 19:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 19:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622660', 'tblTempUsageDetail_20' ) start [2025-03-06 19:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622660', 'tblTempUsageDetail_20' ) end [2025-03-06 19:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622660', 'tblTempVendorCDR_20' ) start [2025-03-06 19:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622660', 'tblTempVendorCDR_20' ) end [2025-03-06 19:37:18] Production.INFO: ProcessCDR(1,14622660,1,1,2) [2025-03-06 19:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14622660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 19:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14622660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 19:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14622660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 19:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14622660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 19:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622660', 'tblTempUsageDetail_20' ) start [2025-03-06 19:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622660', 'tblTempUsageDetail_20' ) end [2025-03-06 19:37:23] Production.ERROR: pbx prc_insertCDR start [2025-03-06 19:37:23] Production.ERROR: pbx prc_insertCDR end [2025-03-06 19:37:23] Production.INFO: ==27771== Releasing lock... [2025-03-06 19:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 19:37:23] Production.INFO: 45.25 MB #Memory Used# [2025-03-06 19:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 16:38:06 [end_date_ymd] => 2025-03-06 19:38:06 [RateCDR] => 1 ) [2025-03-06 19: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-03-06 16:38:06' and `end` < '2025-03-06 19: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-03-06 19:38:18] Production.INFO: count ==2265 [2025-03-06 19:38:19] Production.ERROR: pbx CDR StartTime 2025-03-06 16:38:06 - End Time 2025-03-06 19:38:06 [2025-03-06 19:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 19:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622665', 'tblTempUsageDetail_20' ) start [2025-03-06 19:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622665', 'tblTempUsageDetail_20' ) end [2025-03-06 19:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622665', 'tblTempVendorCDR_20' ) start [2025-03-06 19:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622665', 'tblTempVendorCDR_20' ) end [2025-03-06 19:38:19] Production.INFO: ProcessCDR(1,14622665,1,1,2) [2025-03-06 19:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14622665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 19:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14622665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 19:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14622665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 19:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14622665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 19:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622665', 'tblTempUsageDetail_20' ) start [2025-03-06 19:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622665', 'tblTempUsageDetail_20' ) end [2025-03-06 19:38:23] Production.ERROR: pbx prc_insertCDR start [2025-03-06 19:38:23] Production.ERROR: pbx prc_insertCDR end [2025-03-06 19:38:23] Production.INFO: ==27850== Releasing lock... [2025-03-06 19:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 19:38:23] Production.INFO: 45 MB #Memory Used# [2025-03-06 19:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 16:39:05 [end_date_ymd] => 2025-03-06 19:39:05 [RateCDR] => 1 ) [2025-03-06 19:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 16:39:05' and `end` < '2025-03-06 19:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 19:39:17] Production.INFO: count ==2241 [2025-03-06 19:39:18] Production.ERROR: pbx CDR StartTime 2025-03-06 16:39:05 - End Time 2025-03-06 19:39:05 [2025-03-06 19:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 19:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622670', 'tblTempUsageDetail_20' ) start [2025-03-06 19:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622670', 'tblTempUsageDetail_20' ) end [2025-03-06 19:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622670', 'tblTempVendorCDR_20' ) start [2025-03-06 19:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622670', 'tblTempVendorCDR_20' ) end [2025-03-06 19:39:18] Production.INFO: ProcessCDR(1,14622670,1,1,2) [2025-03-06 19:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14622670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 19:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14622670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 19:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14622670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 19:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14622670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 19:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622670', 'tblTempUsageDetail_20' ) start [2025-03-06 19:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622670', 'tblTempUsageDetail_20' ) end [2025-03-06 19:39:23] Production.ERROR: pbx prc_insertCDR start [2025-03-06 19:39:23] Production.ERROR: pbx prc_insertCDR end [2025-03-06 19:39:23] Production.INFO: ==27946== Releasing lock... [2025-03-06 19:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 19:39:23] Production.INFO: 44.75 MB #Memory Used# [2025-03-06 19:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 16:40:06 [end_date_ymd] => 2025-03-06 19:40:06 [RateCDR] => 1 ) [2025-03-06 19: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-03-06 16:40:06' and `end` < '2025-03-06 19: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-03-06 19:40:19] Production.INFO: count ==2224 [2025-03-06 19:40:19] Production.ERROR: pbx CDR StartTime 2025-03-06 16:40:06 - End Time 2025-03-06 19:40:06 [2025-03-06 19:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 19:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622676', 'tblTempUsageDetail_20' ) start [2025-03-06 19:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622676', 'tblTempUsageDetail_20' ) end [2025-03-06 19:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622676', 'tblTempVendorCDR_20' ) start [2025-03-06 19:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622676', 'tblTempVendorCDR_20' ) end [2025-03-06 19:40:19] Production.INFO: ProcessCDR(1,14622676,1,1,2) [2025-03-06 19:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14622676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 19:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14622676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 19:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14622676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 19:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14622676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 19:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622676', 'tblTempUsageDetail_20' ) start [2025-03-06 19:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622676', 'tblTempUsageDetail_20' ) end [2025-03-06 19:40:24] Production.ERROR: pbx prc_insertCDR start [2025-03-06 19:40:24] Production.ERROR: pbx prc_insertCDR end [2025-03-06 19:40:24] Production.INFO: ==28029== Releasing lock... [2025-03-06 19:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 19:40:24] Production.INFO: 44.75 MB #Memory Used# [2025-03-06 19:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 16:41:05 [end_date_ymd] => 2025-03-06 19:41:05 [RateCDR] => 1 ) [2025-03-06 19:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 16:41:05' and `end` < '2025-03-06 19:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 19:41:17] Production.INFO: count ==2172 [2025-03-06 19:41:18] Production.ERROR: pbx CDR StartTime 2025-03-06 16:41:05 - End Time 2025-03-06 19:41:05 [2025-03-06 19:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 19:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622681', 'tblTempUsageDetail_20' ) start [2025-03-06 19:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622681', 'tblTempUsageDetail_20' ) end [2025-03-06 19:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622681', 'tblTempVendorCDR_20' ) start [2025-03-06 19:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622681', 'tblTempVendorCDR_20' ) end [2025-03-06 19:41:18] Production.INFO: ProcessCDR(1,14622681,1,1,2) [2025-03-06 19:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14622681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 19:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14622681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 19:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14622681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 19:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14622681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 19:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622681', 'tblTempUsageDetail_20' ) start [2025-03-06 19:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622681', 'tblTempUsageDetail_20' ) end [2025-03-06 19:41:23] Production.ERROR: pbx prc_insertCDR start [2025-03-06 19:41:23] Production.ERROR: pbx prc_insertCDR end [2025-03-06 19:41:23] Production.INFO: ==28116== Releasing lock... [2025-03-06 19:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 19:41:23] Production.INFO: 44.25 MB #Memory Used# [2025-03-06 19:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 16:42:06 [end_date_ymd] => 2025-03-06 19:42:06 [RateCDR] => 1 ) [2025-03-06 19: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-03-06 16:42:06' and `end` < '2025-03-06 19: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-03-06 19:42:18] Production.INFO: count ==2158 [2025-03-06 19:42:19] Production.ERROR: pbx CDR StartTime 2025-03-06 16:42:06 - End Time 2025-03-06 19:42:06 [2025-03-06 19:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 19:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622686', 'tblTempUsageDetail_20' ) start [2025-03-06 19:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622686', 'tblTempUsageDetail_20' ) end [2025-03-06 19:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622686', 'tblTempVendorCDR_20' ) start [2025-03-06 19:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622686', 'tblTempVendorCDR_20' ) end [2025-03-06 19:42:19] Production.INFO: ProcessCDR(1,14622686,1,1,2) [2025-03-06 19:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14622686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 19:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14622686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 19:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14622686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 19:42:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14622686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 19:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622686', 'tblTempUsageDetail_20' ) start [2025-03-06 19:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622686', 'tblTempUsageDetail_20' ) end [2025-03-06 19:42:24] Production.ERROR: pbx prc_insertCDR start [2025-03-06 19:42:24] Production.ERROR: pbx prc_insertCDR end [2025-03-06 19:42:24] Production.INFO: ==28199== Releasing lock... [2025-03-06 19:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 19:42:24] Production.INFO: 44.5 MB #Memory Used# [2025-03-06 19:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 16:43:05 [end_date_ymd] => 2025-03-06 19:43:05 [RateCDR] => 1 ) [2025-03-06 19:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 16:43:05' and `end` < '2025-03-06 19:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 19:43:17] Production.INFO: count ==2131 [2025-03-06 19:43:18] Production.ERROR: pbx CDR StartTime 2025-03-06 16:43:05 - End Time 2025-03-06 19:43:05 [2025-03-06 19:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 19:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622691', 'tblTempUsageDetail_20' ) start [2025-03-06 19:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622691', 'tblTempUsageDetail_20' ) end [2025-03-06 19:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622691', 'tblTempVendorCDR_20' ) start [2025-03-06 19:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622691', 'tblTempVendorCDR_20' ) end [2025-03-06 19:43:18] Production.INFO: ProcessCDR(1,14622691,1,1,2) [2025-03-06 19:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14622691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 19:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14622691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 19:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14622691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 19:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14622691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 19:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622691', 'tblTempUsageDetail_20' ) start [2025-03-06 19:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622691', 'tblTempUsageDetail_20' ) end [2025-03-06 19:43:23] Production.ERROR: pbx prc_insertCDR start [2025-03-06 19:43:23] Production.ERROR: pbx prc_insertCDR end [2025-03-06 19:43:23] Production.INFO: ==28278== Releasing lock... [2025-03-06 19:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 19:43:23] Production.INFO: 44.5 MB #Memory Used# [2025-03-06 19:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 16:44:05 [end_date_ymd] => 2025-03-06 19:44:05 [RateCDR] => 1 ) [2025-03-06 19:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 16:44:05' and `end` < '2025-03-06 19:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 19:44:18] Production.INFO: count ==2105 [2025-03-06 19:44:18] Production.ERROR: pbx CDR StartTime 2025-03-06 16:44:05 - End Time 2025-03-06 19:44:05 [2025-03-06 19:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 19:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622696', 'tblTempUsageDetail_20' ) start [2025-03-06 19:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622696', 'tblTempUsageDetail_20' ) end [2025-03-06 19:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622696', 'tblTempVendorCDR_20' ) start [2025-03-06 19:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622696', 'tblTempVendorCDR_20' ) end [2025-03-06 19:44:18] Production.INFO: ProcessCDR(1,14622696,1,1,2) [2025-03-06 19:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14622696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 19:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14622696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 19:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14622696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 19:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14622696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 19:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622696', 'tblTempUsageDetail_20' ) start [2025-03-06 19:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622696', 'tblTempUsageDetail_20' ) end [2025-03-06 19:44:23] Production.ERROR: pbx prc_insertCDR start [2025-03-06 19:44:23] Production.ERROR: pbx prc_insertCDR end [2025-03-06 19:44:23] Production.INFO: ==28356== Releasing lock... [2025-03-06 19:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 19:44:23] Production.INFO: 44 MB #Memory Used# [2025-03-06 19:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 16:45:05 [end_date_ymd] => 2025-03-06 19:45:05 [RateCDR] => 1 ) [2025-03-06 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-03-06 16:45:05' and `end` < '2025-03-06 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-03-06 19:45:17] Production.INFO: count ==2080 [2025-03-06 19:45:18] Production.ERROR: pbx CDR StartTime 2025-03-06 16:45:05 - End Time 2025-03-06 19:45:05 [2025-03-06 19:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 19:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622701', 'tblTempUsageDetail_20' ) start [2025-03-06 19:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622701', 'tblTempUsageDetail_20' ) end [2025-03-06 19:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622701', 'tblTempVendorCDR_20' ) start [2025-03-06 19:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622701', 'tblTempVendorCDR_20' ) end [2025-03-06 19:45:18] Production.INFO: ProcessCDR(1,14622701,1,1,2) [2025-03-06 19:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14622701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 19:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14622701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 19:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14622701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 19:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14622701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 19:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622701', 'tblTempUsageDetail_20' ) start [2025-03-06 19:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622701', 'tblTempUsageDetail_20' ) end [2025-03-06 19:45:23] Production.ERROR: pbx prc_insertCDR start [2025-03-06 19:45:23] Production.ERROR: pbx prc_insertCDR end [2025-03-06 19:45:23] Production.INFO: ==28444== Releasing lock... [2025-03-06 19:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 19:45:23] Production.INFO: 43.5 MB #Memory Used# [2025-03-06 19:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 16:46:05 [end_date_ymd] => 2025-03-06 19:46:05 [RateCDR] => 1 ) [2025-03-06 19: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-03-06 16:46:05' and `end` < '2025-03-06 19: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-03-06 19:46:18] Production.INFO: count ==2053 [2025-03-06 19:46:18] Production.ERROR: pbx CDR StartTime 2025-03-06 16:46:05 - End Time 2025-03-06 19:46:05 [2025-03-06 19:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 19:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622706', 'tblTempUsageDetail_20' ) start [2025-03-06 19:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622706', 'tblTempUsageDetail_20' ) end [2025-03-06 19:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622706', 'tblTempVendorCDR_20' ) start [2025-03-06 19:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622706', 'tblTempVendorCDR_20' ) end [2025-03-06 19:46:18] Production.INFO: ProcessCDR(1,14622706,1,1,2) [2025-03-06 19:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14622706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 19:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14622706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 19:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14622706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 19:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14622706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 19:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622706', 'tblTempUsageDetail_20' ) start [2025-03-06 19:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622706', 'tblTempUsageDetail_20' ) end [2025-03-06 19:46:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 19:46:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 19:46:21] Production.INFO: ==28521== Releasing lock... [2025-03-06 19:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 19:46:21] Production.INFO: 43.5 MB #Memory Used# [2025-03-06 19:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 16:47:05 [end_date_ymd] => 2025-03-06 19:47:05 [RateCDR] => 1 ) [2025-03-06 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-03-06 16:47:05' and `end` < '2025-03-06 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-03-06 19:47:17] Production.INFO: count ==2026 [2025-03-06 19:47:17] Production.ERROR: pbx CDR StartTime 2025-03-06 16:47:05 - End Time 2025-03-06 19:47:05 [2025-03-06 19:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 19:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622711', 'tblTempUsageDetail_20' ) start [2025-03-06 19:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622711', 'tblTempUsageDetail_20' ) end [2025-03-06 19:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622711', 'tblTempVendorCDR_20' ) start [2025-03-06 19:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622711', 'tblTempVendorCDR_20' ) end [2025-03-06 19:47:17] Production.INFO: ProcessCDR(1,14622711,1,1,2) [2025-03-06 19:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14622711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 19:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14622711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 19:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14622711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 19:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14622711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 19:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622711', 'tblTempUsageDetail_20' ) start [2025-03-06 19:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622711', 'tblTempUsageDetail_20' ) end [2025-03-06 19:47:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 19:47:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 19:47:22] Production.INFO: ==28603== Releasing lock... [2025-03-06 19:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 19:47:22] Production.INFO: 43 MB #Memory Used# [2025-03-06 19:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 16:48:05 [end_date_ymd] => 2025-03-06 19:48:05 [RateCDR] => 1 ) [2025-03-06 19: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-03-06 16:48:05' and `end` < '2025-03-06 19: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-03-06 19:48:18] Production.INFO: count ==1984 [2025-03-06 19:48:18] Production.ERROR: pbx CDR StartTime 2025-03-06 16:48:05 - End Time 2025-03-06 19:48:05 [2025-03-06 19:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 19:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622716', 'tblTempUsageDetail_20' ) start [2025-03-06 19:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622716', 'tblTempUsageDetail_20' ) end [2025-03-06 19:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622716', 'tblTempVendorCDR_20' ) start [2025-03-06 19:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622716', 'tblTempVendorCDR_20' ) end [2025-03-06 19:48:18] Production.INFO: ProcessCDR(1,14622716,1,1,2) [2025-03-06 19:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14622716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 19:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14622716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 19:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14622716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 19:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14622716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 19:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622716', 'tblTempUsageDetail_20' ) start [2025-03-06 19:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622716', 'tblTempUsageDetail_20' ) end [2025-03-06 19:48:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 19:48:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 19:48:21] Production.INFO: ==28688== Releasing lock... [2025-03-06 19:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 19:48:21] Production.INFO: 43.25 MB #Memory Used# [2025-03-06 19:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 16:49:06 [end_date_ymd] => 2025-03-06 19:49:06 [RateCDR] => 1 ) [2025-03-06 19: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-03-06 16:49:06' and `end` < '2025-03-06 19: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-03-06 19:49:18] Production.INFO: count ==1976 [2025-03-06 19:49:19] Production.ERROR: pbx CDR StartTime 2025-03-06 16:49:06 - End Time 2025-03-06 19:49:06 [2025-03-06 19:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 19:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622721', 'tblTempUsageDetail_20' ) start [2025-03-06 19:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622721', 'tblTempUsageDetail_20' ) end [2025-03-06 19:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622721', 'tblTempVendorCDR_20' ) start [2025-03-06 19:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622721', 'tblTempVendorCDR_20' ) end [2025-03-06 19:49:19] Production.INFO: ProcessCDR(1,14622721,1,1,2) [2025-03-06 19:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14622721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 19:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14622721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 19:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14622721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 19:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14622721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 19:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622721', 'tblTempUsageDetail_20' ) start [2025-03-06 19:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622721', 'tblTempUsageDetail_20' ) end [2025-03-06 19:49:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 19:49:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 19:49:22] Production.INFO: ==28771== Releasing lock... [2025-03-06 19:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 19:49:22] Production.INFO: 42.75 MB #Memory Used# [2025-03-06 19:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 16:50:06 [end_date_ymd] => 2025-03-06 19:50:06 [RateCDR] => 1 ) [2025-03-06 19: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-03-06 16:50:06' and `end` < '2025-03-06 19: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-03-06 19:50:18] Production.INFO: count ==1971 [2025-03-06 19:50:18] Production.ERROR: pbx CDR StartTime 2025-03-06 16:50:06 - End Time 2025-03-06 19:50:06 [2025-03-06 19:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 19:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622727', 'tblTempUsageDetail_20' ) start [2025-03-06 19:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622727', 'tblTempUsageDetail_20' ) end [2025-03-06 19:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622727', 'tblTempVendorCDR_20' ) start [2025-03-06 19:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622727', 'tblTempVendorCDR_20' ) end [2025-03-06 19:50:18] Production.INFO: ProcessCDR(1,14622727,1,1,2) [2025-03-06 19:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14622727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 19:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14622727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 19:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14622727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 19:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14622727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 19:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622727', 'tblTempUsageDetail_20' ) start [2025-03-06 19:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622727', 'tblTempUsageDetail_20' ) end [2025-03-06 19:50:23] Production.ERROR: pbx prc_insertCDR start [2025-03-06 19:50:23] Production.ERROR: pbx prc_insertCDR end [2025-03-06 19:50:23] Production.INFO: ==28850== Releasing lock... [2025-03-06 19:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 19:50:23] Production.INFO: 42.5 MB #Memory Used# [2025-03-06 19:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 16:51:06 [end_date_ymd] => 2025-03-06 19:51:06 [RateCDR] => 1 ) [2025-03-06 19: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-03-06 16:51:06' and `end` < '2025-03-06 19: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-03-06 19:51:18] Production.INFO: count ==1949 [2025-03-06 19:51:18] Production.ERROR: pbx CDR StartTime 2025-03-06 16:51:06 - End Time 2025-03-06 19:51:06 [2025-03-06 19:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 19:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622732', 'tblTempUsageDetail_20' ) start [2025-03-06 19:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622732', 'tblTempUsageDetail_20' ) end [2025-03-06 19:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622732', 'tblTempVendorCDR_20' ) start [2025-03-06 19:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622732', 'tblTempVendorCDR_20' ) end [2025-03-06 19:51:19] Production.INFO: ProcessCDR(1,14622732,1,1,2) [2025-03-06 19:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14622732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 19:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14622732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 19:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14622732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 19:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14622732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 19:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622732', 'tblTempUsageDetail_20' ) start [2025-03-06 19:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622732', 'tblTempUsageDetail_20' ) end [2025-03-06 19:51:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 19:51:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 19:51:22] Production.INFO: ==28938== Releasing lock... [2025-03-06 19:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 19:51:22] Production.INFO: 43 MB #Memory Used# [2025-03-06 19:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 16:52:05 [end_date_ymd] => 2025-03-06 19:52:05 [RateCDR] => 1 ) [2025-03-06 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-03-06 16:52:05' and `end` < '2025-03-06 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-03-06 19:52:17] Production.INFO: count ==1952 [2025-03-06 19:52:18] Production.ERROR: pbx CDR StartTime 2025-03-06 16:52:05 - End Time 2025-03-06 19:52:05 [2025-03-06 19:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 19:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622737', 'tblTempUsageDetail_20' ) start [2025-03-06 19:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622737', 'tblTempUsageDetail_20' ) end [2025-03-06 19:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622737', 'tblTempVendorCDR_20' ) start [2025-03-06 19:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622737', 'tblTempVendorCDR_20' ) end [2025-03-06 19:52:18] Production.INFO: ProcessCDR(1,14622737,1,1,2) [2025-03-06 19:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14622737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 19:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14622737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 19:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14622737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 19:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14622737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 19:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622737', 'tblTempUsageDetail_20' ) start [2025-03-06 19:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622737', 'tblTempUsageDetail_20' ) end [2025-03-06 19:52:23] Production.ERROR: pbx prc_insertCDR start [2025-03-06 19:52:23] Production.ERROR: pbx prc_insertCDR end [2025-03-06 19:52:23] Production.INFO: ==29062== Releasing lock... [2025-03-06 19:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 19:52:23] Production.INFO: 42.5 MB #Memory Used# [2025-03-06 19:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 16:53:05 [end_date_ymd] => 2025-03-06 19:53:05 [RateCDR] => 1 ) [2025-03-06 19:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 16:53:05' and `end` < '2025-03-06 19:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 19:53:18] Production.INFO: count ==1947 [2025-03-06 19:53:18] Production.ERROR: pbx CDR StartTime 2025-03-06 16:53:05 - End Time 2025-03-06 19:53:05 [2025-03-06 19:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 19:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622742', 'tblTempUsageDetail_20' ) start [2025-03-06 19:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622742', 'tblTempUsageDetail_20' ) end [2025-03-06 19:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622742', 'tblTempVendorCDR_20' ) start [2025-03-06 19:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622742', 'tblTempVendorCDR_20' ) end [2025-03-06 19:53:18] Production.INFO: ProcessCDR(1,14622742,1,1,2) [2025-03-06 19:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14622742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 19:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14622742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 19:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14622742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 19:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14622742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 19:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622742', 'tblTempUsageDetail_20' ) start [2025-03-06 19:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622742', 'tblTempUsageDetail_20' ) end [2025-03-06 19:53:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 19:53:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 19:53:21] Production.INFO: ==29145== Releasing lock... [2025-03-06 19:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 19:53:21] Production.INFO: 42.5 MB #Memory Used# [2025-03-06 19:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 16:54:05 [end_date_ymd] => 2025-03-06 19:54:05 [RateCDR] => 1 ) [2025-03-06 19:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 16:54:05' and `end` < '2025-03-06 19:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 19:54:17] Production.INFO: count ==1947 [2025-03-06 19:54:18] Production.ERROR: pbx CDR StartTime 2025-03-06 16:54:05 - End Time 2025-03-06 19:54:05 [2025-03-06 19:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 19:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622747', 'tblTempUsageDetail_20' ) start [2025-03-06 19:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622747', 'tblTempUsageDetail_20' ) end [2025-03-06 19:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622747', 'tblTempVendorCDR_20' ) start [2025-03-06 19:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622747', 'tblTempVendorCDR_20' ) end [2025-03-06 19:54:18] Production.INFO: ProcessCDR(1,14622747,1,1,2) [2025-03-06 19:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14622747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 19:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14622747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 19:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14622747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 19:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14622747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 19:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622747', 'tblTempUsageDetail_20' ) start [2025-03-06 19:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622747', 'tblTempUsageDetail_20' ) end [2025-03-06 19:54:23] Production.ERROR: pbx prc_insertCDR start [2025-03-06 19:54:23] Production.ERROR: pbx prc_insertCDR end [2025-03-06 19:54:23] Production.INFO: ==29224== Releasing lock... [2025-03-06 19:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 19:54:23] Production.INFO: 42.5 MB #Memory Used# [2025-03-06 19:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 16:55:05 [end_date_ymd] => 2025-03-06 19:55:05 [RateCDR] => 1 ) [2025-03-06 19:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 16:55:05' and `end` < '2025-03-06 19:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 19:55:18] Production.INFO: count ==1945 [2025-03-06 19:55:18] Production.ERROR: pbx CDR StartTime 2025-03-06 16:55:05 - End Time 2025-03-06 19:55:05 [2025-03-06 19:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 19:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622752', 'tblTempUsageDetail_20' ) start [2025-03-06 19:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622752', 'tblTempUsageDetail_20' ) end [2025-03-06 19:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622752', 'tblTempVendorCDR_20' ) start [2025-03-06 19:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622752', 'tblTempVendorCDR_20' ) end [2025-03-06 19:55:18] Production.INFO: ProcessCDR(1,14622752,1,1,2) [2025-03-06 19:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14622752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 19:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14622752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 19:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14622752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 19:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14622752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 19:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622752', 'tblTempUsageDetail_20' ) start [2025-03-06 19:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622752', 'tblTempUsageDetail_20' ) end [2025-03-06 19:55:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 19:55:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 19:55:22] Production.INFO: ==29304== Releasing lock... [2025-03-06 19:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 19:55:22] Production.INFO: 42.75 MB #Memory Used# [2025-03-06 19:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 16:56:05 [end_date_ymd] => 2025-03-06 19:56:05 [RateCDR] => 1 ) [2025-03-06 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-03-06 16:56:05' and `end` < '2025-03-06 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-03-06 19:56:18] Production.INFO: count ==1942 [2025-03-06 19:56:18] Production.ERROR: pbx CDR StartTime 2025-03-06 16:56:05 - End Time 2025-03-06 19:56:05 [2025-03-06 19:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 19:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622757', 'tblTempUsageDetail_20' ) start [2025-03-06 19:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622757', 'tblTempUsageDetail_20' ) end [2025-03-06 19:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622757', 'tblTempVendorCDR_20' ) start [2025-03-06 19:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622757', 'tblTempVendorCDR_20' ) end [2025-03-06 19:56:18] Production.INFO: ProcessCDR(1,14622757,1,1,2) [2025-03-06 19:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14622757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 19:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14622757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 19:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14622757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 19:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14622757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 19:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622757', 'tblTempUsageDetail_20' ) start [2025-03-06 19:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622757', 'tblTempUsageDetail_20' ) end [2025-03-06 19:56:23] Production.ERROR: pbx prc_insertCDR start [2025-03-06 19:56:23] Production.ERROR: pbx prc_insertCDR end [2025-03-06 19:56:23] Production.INFO: ==29384== Releasing lock... [2025-03-06 19:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 19:56:23] Production.INFO: 42.25 MB #Memory Used# [2025-03-06 19:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 16:57:05 [end_date_ymd] => 2025-03-06 19:57:05 [RateCDR] => 1 ) [2025-03-06 19:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 16:57:05' and `end` < '2025-03-06 19:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 19:57:18] Production.INFO: count ==1940 [2025-03-06 19:57:18] Production.ERROR: pbx CDR StartTime 2025-03-06 16:57:05 - End Time 2025-03-06 19:57:05 [2025-03-06 19:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 19:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622762', 'tblTempUsageDetail_20' ) start [2025-03-06 19:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622762', 'tblTempUsageDetail_20' ) end [2025-03-06 19:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622762', 'tblTempVendorCDR_20' ) start [2025-03-06 19:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622762', 'tblTempVendorCDR_20' ) end [2025-03-06 19:57:18] Production.INFO: ProcessCDR(1,14622762,1,1,2) [2025-03-06 19:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14622762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 19:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14622762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 19:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14622762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 19:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14622762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 19:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622762', 'tblTempUsageDetail_20' ) start [2025-03-06 19:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622762', 'tblTempUsageDetail_20' ) end [2025-03-06 19:57:23] Production.ERROR: pbx prc_insertCDR start [2025-03-06 19:57:23] Production.ERROR: pbx prc_insertCDR end [2025-03-06 19:57:23] Production.INFO: ==29466== Releasing lock... [2025-03-06 19:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 19:57:23] Production.INFO: 42.5 MB #Memory Used# [2025-03-06 19:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 16:58:05 [end_date_ymd] => 2025-03-06 19:58:05 [RateCDR] => 1 ) [2025-03-06 19:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 16:58:05' and `end` < '2025-03-06 19:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 19:58:17] Production.INFO: count ==1925 [2025-03-06 19:58:17] Production.ERROR: pbx CDR StartTime 2025-03-06 16:58:05 - End Time 2025-03-06 19:58:05 [2025-03-06 19:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 19:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622764', 'tblTempUsageDetail_20' ) start [2025-03-06 19:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622764', 'tblTempUsageDetail_20' ) end [2025-03-06 19:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622764', 'tblTempVendorCDR_20' ) start [2025-03-06 19:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622764', 'tblTempVendorCDR_20' ) end [2025-03-06 19:58:17] Production.INFO: ProcessCDR(1,14622764,1,1,2) [2025-03-06 19:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14622764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 19:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14622764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 19:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14622764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 19:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14622764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 19:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622764', 'tblTempUsageDetail_20' ) start [2025-03-06 19:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622764', 'tblTempUsageDetail_20' ) end [2025-03-06 19:58:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 19:58:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 19:58:22] Production.INFO: ==29545== Releasing lock... [2025-03-06 19:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 19:58:22] Production.INFO: 42.5 MB #Memory Used# [2025-03-06 19:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 16:59:05 [end_date_ymd] => 2025-03-06 19:59:05 [RateCDR] => 1 ) [2025-03-06 19:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 16:59:05' and `end` < '2025-03-06 19:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 19:59:18] Production.INFO: count ==1893 [2025-03-06 19:59:18] Production.ERROR: pbx CDR StartTime 2025-03-06 16:59:05 - End Time 2025-03-06 19:59:05 [2025-03-06 19:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 19:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622772', 'tblTempUsageDetail_20' ) start [2025-03-06 19:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622772', 'tblTempUsageDetail_20' ) end [2025-03-06 19:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622772', 'tblTempVendorCDR_20' ) start [2025-03-06 19:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622772', 'tblTempVendorCDR_20' ) end [2025-03-06 19:59:18] Production.INFO: ProcessCDR(1,14622772,1,1,2) [2025-03-06 19:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14622772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 19:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14622772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 19:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14622772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 19:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14622772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 19:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622772', 'tblTempUsageDetail_20' ) start [2025-03-06 19:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622772', 'tblTempUsageDetail_20' ) end [2025-03-06 19:59:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 19:59:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 19:59:21] Production.INFO: ==29625== Releasing lock... [2025-03-06 19:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 19:59:21] Production.INFO: 42 MB #Memory Used# [2025-03-06 20:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 17:00:06 [end_date_ymd] => 2025-03-06 20:00:06 [RateCDR] => 1 ) [2025-03-06 20:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 17:00:06' and `end` < '2025-03-06 20:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 20:00:18] Production.INFO: count ==1882 [2025-03-06 20:00:20] Production.ERROR: pbx CDR StartTime 2025-03-06 17:00:06 - End Time 2025-03-06 20:00:06 [2025-03-06 20:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622778', 'tblTempUsageDetail_20' ) start [2025-03-06 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622778', 'tblTempUsageDetail_20' ) end [2025-03-06 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622778', 'tblTempVendorCDR_20' ) start [2025-03-06 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622778', 'tblTempVendorCDR_20' ) end [2025-03-06 20:00:20] Production.INFO: ProcessCDR(1,14622778,1,1,2) [2025-03-06 20:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14622778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 20:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14622778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 20:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14622778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 20:00:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14622778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 20:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622778', 'tblTempUsageDetail_20' ) start [2025-03-06 20:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622778', 'tblTempUsageDetail_20' ) end [2025-03-06 20:00:26] Production.ERROR: pbx prc_insertCDR start [2025-03-06 20:00:26] Production.ERROR: pbx prc_insertCDR end [2025-03-06 20:00:26] Production.INFO: ==29708== Releasing lock... [2025-03-06 20:00:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 20:00:26] Production.INFO: 42.25 MB #Memory Used# [2025-03-06 20:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 17:01:05 [end_date_ymd] => 2025-03-06 20:01:05 [RateCDR] => 1 ) [2025-03-06 20:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 17:01:05' and `end` < '2025-03-06 20:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 20:01:18] Production.INFO: count ==1852 [2025-03-06 20:01:18] Production.ERROR: pbx CDR StartTime 2025-03-06 17:01:05 - End Time 2025-03-06 20:01:05 [2025-03-06 20:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 20:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622783', 'tblTempUsageDetail_20' ) start [2025-03-06 20:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622783', 'tblTempUsageDetail_20' ) end [2025-03-06 20:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622783', 'tblTempVendorCDR_20' ) start [2025-03-06 20:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622783', 'tblTempVendorCDR_20' ) end [2025-03-06 20:01:18] Production.INFO: ProcessCDR(1,14622783,1,1,2) [2025-03-06 20:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14622783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 20:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14622783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 20:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14622783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 20:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14622783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 20:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622783', 'tblTempUsageDetail_20' ) start [2025-03-06 20:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622783', 'tblTempUsageDetail_20' ) end [2025-03-06 20:01:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 20:01:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 20:01:21] Production.INFO: ==29844== Releasing lock... [2025-03-06 20:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 20:01:21] Production.INFO: 42 MB #Memory Used# [2025-03-06 20:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 17:02:06 [end_date_ymd] => 2025-03-06 20:02:06 [RateCDR] => 1 ) [2025-03-06 20: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-03-06 17:02:06' and `end` < '2025-03-06 20: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-03-06 20:02:18] Production.INFO: count ==1851 [2025-03-06 20:02:19] Production.ERROR: pbx CDR StartTime 2025-03-06 17:02:06 - End Time 2025-03-06 20:02:06 [2025-03-06 20:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 20:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622788', 'tblTempUsageDetail_20' ) start [2025-03-06 20:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622788', 'tblTempUsageDetail_20' ) end [2025-03-06 20:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622788', 'tblTempVendorCDR_20' ) start [2025-03-06 20:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622788', 'tblTempVendorCDR_20' ) end [2025-03-06 20:02:19] Production.INFO: ProcessCDR(1,14622788,1,1,2) [2025-03-06 20:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14622788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 20:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14622788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 20:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14622788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 20:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14622788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 20:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622788', 'tblTempUsageDetail_20' ) start [2025-03-06 20:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622788', 'tblTempUsageDetail_20' ) end [2025-03-06 20:02:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 20:02:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 20:02:22] Production.INFO: ==29928== Releasing lock... [2025-03-06 20:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 20:02:22] Production.INFO: 41.75 MB #Memory Used# [2025-03-06 20:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 17:03:05 [end_date_ymd] => 2025-03-06 20:03:05 [RateCDR] => 1 ) [2025-03-06 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-03-06 17:03:05' and `end` < '2025-03-06 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-03-06 20:03:18] Production.INFO: count ==1849 [2025-03-06 20:03:18] Production.ERROR: pbx CDR StartTime 2025-03-06 17:03:05 - End Time 2025-03-06 20:03:05 [2025-03-06 20:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 20:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622793', 'tblTempUsageDetail_20' ) start [2025-03-06 20:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622793', 'tblTempUsageDetail_20' ) end [2025-03-06 20:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622793', 'tblTempVendorCDR_20' ) start [2025-03-06 20:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622793', 'tblTempVendorCDR_20' ) end [2025-03-06 20:03:18] Production.INFO: ProcessCDR(1,14622793,1,1,2) [2025-03-06 20:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14622793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 20:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14622793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 20:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14622793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 20:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14622793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 20:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622793', 'tblTempUsageDetail_20' ) start [2025-03-06 20:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622793', 'tblTempUsageDetail_20' ) end [2025-03-06 20:03:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 20:03:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 20:03:22] Production.INFO: ==30008== Releasing lock... [2025-03-06 20:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 20:03:22] Production.INFO: 42.25 MB #Memory Used# [2025-03-06 20:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 17:04:06 [end_date_ymd] => 2025-03-06 20:04:06 [RateCDR] => 1 ) [2025-03-06 20: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-03-06 17:04:06' and `end` < '2025-03-06 20: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-03-06 20:04:18] Production.INFO: count ==1848 [2025-03-06 20:04:19] Production.ERROR: pbx CDR StartTime 2025-03-06 17:04:06 - End Time 2025-03-06 20:04:06 [2025-03-06 20:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622798', 'tblTempUsageDetail_20' ) start [2025-03-06 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622798', 'tblTempUsageDetail_20' ) end [2025-03-06 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622798', 'tblTempVendorCDR_20' ) start [2025-03-06 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622798', 'tblTempVendorCDR_20' ) end [2025-03-06 20:04:19] Production.INFO: ProcessCDR(1,14622798,1,1,2) [2025-03-06 20:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14622798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 20:04:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14622798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 20:04:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14622798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 20:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14622798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 20:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622798', 'tblTempUsageDetail_20' ) start [2025-03-06 20:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622798', 'tblTempUsageDetail_20' ) end [2025-03-06 20:04:24] Production.ERROR: pbx prc_insertCDR start [2025-03-06 20:04:24] Production.ERROR: pbx prc_insertCDR end [2025-03-06 20:04:24] Production.INFO: ==30097== Releasing lock... [2025-03-06 20:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 20:04:24] Production.INFO: 42 MB #Memory Used# [2025-03-06 20:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 17:05:06 [end_date_ymd] => 2025-03-06 20:05:06 [RateCDR] => 1 ) [2025-03-06 20:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 17:05:06' and `end` < '2025-03-06 20:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 20:05:18] Production.INFO: count ==1847 [2025-03-06 20:05:18] Production.ERROR: pbx CDR StartTime 2025-03-06 17:05:06 - End Time 2025-03-06 20:05:06 [2025-03-06 20:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 20:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622803', 'tblTempUsageDetail_20' ) start [2025-03-06 20:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622803', 'tblTempUsageDetail_20' ) end [2025-03-06 20:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622803', 'tblTempVendorCDR_20' ) start [2025-03-06 20:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622803', 'tblTempVendorCDR_20' ) end [2025-03-06 20:05:19] Production.INFO: ProcessCDR(1,14622803,1,1,2) [2025-03-06 20:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14622803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 20:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14622803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 20:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14622803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 20:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14622803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 20:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622803', 'tblTempUsageDetail_20' ) start [2025-03-06 20:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622803', 'tblTempUsageDetail_20' ) end [2025-03-06 20:05:23] Production.ERROR: pbx prc_insertCDR start [2025-03-06 20:05:23] Production.ERROR: pbx prc_insertCDR end [2025-03-06 20:05:23] Production.INFO: ==30179== Releasing lock... [2025-03-06 20:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 20:05:23] Production.INFO: 42 MB #Memory Used# [2025-03-06 20:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 17:06:06 [end_date_ymd] => 2025-03-06 20:06:06 [RateCDR] => 1 ) [2025-03-06 20: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-03-06 17:06:06' and `end` < '2025-03-06 20: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-03-06 20:06:18] Production.INFO: count ==1839 [2025-03-06 20:06:19] Production.ERROR: pbx CDR StartTime 2025-03-06 17:06:06 - End Time 2025-03-06 20:06:06 [2025-03-06 20:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622808', 'tblTempUsageDetail_20' ) start [2025-03-06 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622808', 'tblTempUsageDetail_20' ) end [2025-03-06 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622808', 'tblTempVendorCDR_20' ) start [2025-03-06 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622808', 'tblTempVendorCDR_20' ) end [2025-03-06 20:06:19] Production.INFO: ProcessCDR(1,14622808,1,1,2) [2025-03-06 20:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14622808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 20:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14622808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 20:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14622808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 20:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14622808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 20:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622808', 'tblTempUsageDetail_20' ) start [2025-03-06 20:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622808', 'tblTempUsageDetail_20' ) end [2025-03-06 20:06:23] Production.ERROR: pbx prc_insertCDR start [2025-03-06 20:06:23] Production.ERROR: pbx prc_insertCDR end [2025-03-06 20:06:23] Production.INFO: ==30259== Releasing lock... [2025-03-06 20:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 20:06:23] Production.INFO: 41.75 MB #Memory Used# [2025-03-06 20:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 17:07:06 [end_date_ymd] => 2025-03-06 20:07:06 [RateCDR] => 1 ) [2025-03-06 20: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-03-06 17:07:06' and `end` < '2025-03-06 20: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-03-06 20:07:18] Production.INFO: count ==1836 [2025-03-06 20:07:19] Production.ERROR: pbx CDR StartTime 2025-03-06 17:07:06 - End Time 2025-03-06 20:07:06 [2025-03-06 20:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 20:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622813', 'tblTempUsageDetail_20' ) start [2025-03-06 20:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622813', 'tblTempUsageDetail_20' ) end [2025-03-06 20:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622813', 'tblTempVendorCDR_20' ) start [2025-03-06 20:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622813', 'tblTempVendorCDR_20' ) end [2025-03-06 20:07:19] Production.INFO: ProcessCDR(1,14622813,1,1,2) [2025-03-06 20:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14622813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 20:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14622813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 20:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14622813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 20:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14622813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 20:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622813', 'tblTempUsageDetail_20' ) start [2025-03-06 20:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622813', 'tblTempUsageDetail_20' ) end [2025-03-06 20:07:23] Production.ERROR: pbx prc_insertCDR start [2025-03-06 20:07:23] Production.ERROR: pbx prc_insertCDR end [2025-03-06 20:07:23] Production.INFO: ==30339== Releasing lock... [2025-03-06 20:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 20:07:23] Production.INFO: 41.5 MB #Memory Used# [2025-03-06 20:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 17:08:05 [end_date_ymd] => 2025-03-06 20:08:05 [RateCDR] => 1 ) [2025-03-06 20:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 17:08:05' and `end` < '2025-03-06 20:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 20:08:17] Production.INFO: count ==1832 [2025-03-06 20:08:18] Production.ERROR: pbx CDR StartTime 2025-03-06 17:08:05 - End Time 2025-03-06 20:08:05 [2025-03-06 20:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 20:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622818', 'tblTempUsageDetail_20' ) start [2025-03-06 20:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622818', 'tblTempUsageDetail_20' ) end [2025-03-06 20:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622818', 'tblTempVendorCDR_20' ) start [2025-03-06 20:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622818', 'tblTempVendorCDR_20' ) end [2025-03-06 20:08:18] Production.INFO: ProcessCDR(1,14622818,1,1,2) [2025-03-06 20:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14622818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 20:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14622818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 20:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14622818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 20:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14622818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 20:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622818', 'tblTempUsageDetail_20' ) start [2025-03-06 20:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622818', 'tblTempUsageDetail_20' ) end [2025-03-06 20:08:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 20:08:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 20:08:22] Production.INFO: ==30462== Releasing lock... [2025-03-06 20:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 20:08:22] Production.INFO: 41.75 MB #Memory Used# [2025-03-06 20:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 17:09:05 [end_date_ymd] => 2025-03-06 20:09:05 [RateCDR] => 1 ) [2025-03-06 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-03-06 17:09:05' and `end` < '2025-03-06 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-03-06 20:09:18] Production.INFO: count ==1820 [2025-03-06 20:09:18] Production.ERROR: pbx CDR StartTime 2025-03-06 17:09:05 - End Time 2025-03-06 20:09:05 [2025-03-06 20:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 20:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622823', 'tblTempUsageDetail_20' ) start [2025-03-06 20:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622823', 'tblTempUsageDetail_20' ) end [2025-03-06 20:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622823', 'tblTempVendorCDR_20' ) start [2025-03-06 20:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622823', 'tblTempVendorCDR_20' ) end [2025-03-06 20:09:18] Production.INFO: ProcessCDR(1,14622823,1,1,2) [2025-03-06 20:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14622823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 20:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14622823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 20:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14622823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 20:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14622823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 20:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622823', 'tblTempUsageDetail_20' ) start [2025-03-06 20:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622823', 'tblTempUsageDetail_20' ) end [2025-03-06 20:09:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 20:09:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 20:09:22] Production.INFO: ==30543== Releasing lock... [2025-03-06 20:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 20:09:22] Production.INFO: 41.5 MB #Memory Used# [2025-03-06 20:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 17:10:07 [end_date_ymd] => 2025-03-06 20:10:07 [RateCDR] => 1 ) [2025-03-06 20:10: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-03-06 17:10:07' and `end` < '2025-03-06 20:10: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-03-06 20:10:19] Production.INFO: count ==1816 [2025-03-06 20:10:20] Production.ERROR: pbx CDR StartTime 2025-03-06 17:10:07 - End Time 2025-03-06 20:10:07 [2025-03-06 20:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 20:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622829', 'tblTempUsageDetail_20' ) start [2025-03-06 20:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622829', 'tblTempUsageDetail_20' ) end [2025-03-06 20:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622829', 'tblTempVendorCDR_20' ) start [2025-03-06 20:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622829', 'tblTempVendorCDR_20' ) end [2025-03-06 20:10:20] Production.INFO: ProcessCDR(1,14622829,1,1,2) [2025-03-06 20:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14622829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 20:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14622829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 20:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14622829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 20:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14622829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 20:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622829', 'tblTempUsageDetail_20' ) start [2025-03-06 20:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622829', 'tblTempUsageDetail_20' ) end [2025-03-06 20:10:23] Production.ERROR: pbx prc_insertCDR start [2025-03-06 20:10:23] Production.ERROR: pbx prc_insertCDR end [2025-03-06 20:10:24] Production.INFO: ==30628== Releasing lock... [2025-03-06 20:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 20:10:24] Production.INFO: 41.5 MB #Memory Used# [2025-03-06 20:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 17:11:06 [end_date_ymd] => 2025-03-06 20:11:06 [RateCDR] => 1 ) [2025-03-06 20: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-03-06 17:11:06' and `end` < '2025-03-06 20: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-03-06 20:11:18] Production.INFO: count ==1768 [2025-03-06 20:11:19] Production.ERROR: pbx CDR StartTime 2025-03-06 17:11:06 - End Time 2025-03-06 20:11:06 [2025-03-06 20:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 20:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622834', 'tblTempUsageDetail_20' ) start [2025-03-06 20:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622834', 'tblTempUsageDetail_20' ) end [2025-03-06 20:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622834', 'tblTempVendorCDR_20' ) start [2025-03-06 20:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622834', 'tblTempVendorCDR_20' ) end [2025-03-06 20:11:19] Production.INFO: ProcessCDR(1,14622834,1,1,2) [2025-03-06 20:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14622834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 20:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14622834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 20:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14622834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 20:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14622834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 20:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622834', 'tblTempUsageDetail_20' ) start [2025-03-06 20:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622834', 'tblTempUsageDetail_20' ) end [2025-03-06 20:11:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 20:11:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 20:11:22] Production.INFO: ==30710== Releasing lock... [2025-03-06 20:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 20:11:22] Production.INFO: 41.25 MB #Memory Used# [2025-03-06 20:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 17:12:06 [end_date_ymd] => 2025-03-06 20:12:06 [RateCDR] => 1 ) [2025-03-06 20: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-03-06 17:12:06' and `end` < '2025-03-06 20: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-03-06 20:12:18] Production.INFO: count ==1758 [2025-03-06 20:12:19] Production.ERROR: pbx CDR StartTime 2025-03-06 17:12:06 - End Time 2025-03-06 20:12:06 [2025-03-06 20:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 20:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622839', 'tblTempUsageDetail_20' ) start [2025-03-06 20:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622839', 'tblTempUsageDetail_20' ) end [2025-03-06 20:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622839', 'tblTempVendorCDR_20' ) start [2025-03-06 20:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622839', 'tblTempVendorCDR_20' ) end [2025-03-06 20:12:19] Production.INFO: ProcessCDR(1,14622839,1,1,2) [2025-03-06 20:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14622839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 20:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14622839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 20:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14622839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 20:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14622839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 20:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622839', 'tblTempUsageDetail_20' ) start [2025-03-06 20:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622839', 'tblTempUsageDetail_20' ) end [2025-03-06 20:12:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 20:12:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 20:12:22] Production.INFO: ==30790== Releasing lock... [2025-03-06 20:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 20:12:22] Production.INFO: 41.25 MB #Memory Used# [2025-03-06 20:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 17:13:05 [end_date_ymd] => 2025-03-06 20:13:05 [RateCDR] => 1 ) [2025-03-06 20:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 17:13:05' and `end` < '2025-03-06 20:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 20:13:17] Production.INFO: count ==1761 [2025-03-06 20:13:18] Production.ERROR: pbx CDR StartTime 2025-03-06 17:13:05 - End Time 2025-03-06 20:13:05 [2025-03-06 20:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 20:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622844', 'tblTempUsageDetail_20' ) start [2025-03-06 20:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622844', 'tblTempUsageDetail_20' ) end [2025-03-06 20:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622844', 'tblTempVendorCDR_20' ) start [2025-03-06 20:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622844', 'tblTempVendorCDR_20' ) end [2025-03-06 20:13:18] Production.INFO: ProcessCDR(1,14622844,1,1,2) [2025-03-06 20:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14622844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 20:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14622844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 20:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14622844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 20:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14622844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 20:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622844', 'tblTempUsageDetail_20' ) start [2025-03-06 20:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622844', 'tblTempUsageDetail_20' ) end [2025-03-06 20:13:23] Production.ERROR: pbx prc_insertCDR start [2025-03-06 20:13:23] Production.ERROR: pbx prc_insertCDR end [2025-03-06 20:13:23] Production.INFO: ==30871== Releasing lock... [2025-03-06 20:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 20:13:23] Production.INFO: 41 MB #Memory Used# [2025-03-06 20:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 17:14:05 [end_date_ymd] => 2025-03-06 20:14:05 [RateCDR] => 1 ) [2025-03-06 20:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 17:14:05' and `end` < '2025-03-06 20:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 20:14:18] Production.INFO: count ==1757 [2025-03-06 20:14:18] Production.ERROR: pbx CDR StartTime 2025-03-06 17:14:05 - End Time 2025-03-06 20:14:05 [2025-03-06 20:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 20:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622849', 'tblTempUsageDetail_20' ) start [2025-03-06 20:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622849', 'tblTempUsageDetail_20' ) end [2025-03-06 20:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622849', 'tblTempVendorCDR_20' ) start [2025-03-06 20:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622849', 'tblTempVendorCDR_20' ) end [2025-03-06 20:14:18] Production.INFO: ProcessCDR(1,14622849,1,1,2) [2025-03-06 20:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14622849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 20:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14622849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 20:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14622849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 20:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14622849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 20:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622849', 'tblTempUsageDetail_20' ) start [2025-03-06 20:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622849', 'tblTempUsageDetail_20' ) end [2025-03-06 20:14:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 20:14:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 20:14:22] Production.INFO: ==30951== Releasing lock... [2025-03-06 20:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 20:14:22] Production.INFO: 41 MB #Memory Used# [2025-03-06 20:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 17:15:06 [end_date_ymd] => 2025-03-06 20:15:06 [RateCDR] => 1 ) [2025-03-06 20: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-03-06 17:15:06' and `end` < '2025-03-06 20: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-03-06 20:15:18] Production.INFO: count ==1756 [2025-03-06 20:15:18] Production.ERROR: pbx CDR StartTime 2025-03-06 17:15:06 - End Time 2025-03-06 20:15:06 [2025-03-06 20:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 20:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622854', 'tblTempUsageDetail_20' ) start [2025-03-06 20:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622854', 'tblTempUsageDetail_20' ) end [2025-03-06 20:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622854', 'tblTempVendorCDR_20' ) start [2025-03-06 20:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622854', 'tblTempVendorCDR_20' ) end [2025-03-06 20:15:18] Production.INFO: ProcessCDR(1,14622854,1,1,2) [2025-03-06 20:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14622854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 20:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14622854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 20:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14622854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 20:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14622854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 20:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622854', 'tblTempUsageDetail_20' ) start [2025-03-06 20:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622854', 'tblTempUsageDetail_20' ) end [2025-03-06 20:15:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 20:15:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 20:15:22] Production.INFO: ==31032== Releasing lock... [2025-03-06 20:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 20:15:22] Production.INFO: 41 MB #Memory Used# [2025-03-06 20:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 17:16:06 [end_date_ymd] => 2025-03-06 20:16:06 [RateCDR] => 1 ) [2025-03-06 20: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-03-06 17:16:06' and `end` < '2025-03-06 20: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-03-06 20:16:19] Production.INFO: count ==1745 [2025-03-06 20:16:19] Production.ERROR: pbx CDR StartTime 2025-03-06 17:16:06 - End Time 2025-03-06 20:16:06 [2025-03-06 20:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 20:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622859', 'tblTempUsageDetail_20' ) start [2025-03-06 20:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622859', 'tblTempUsageDetail_20' ) end [2025-03-06 20:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622859', 'tblTempVendorCDR_20' ) start [2025-03-06 20:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622859', 'tblTempVendorCDR_20' ) end [2025-03-06 20:16:19] Production.INFO: ProcessCDR(1,14622859,1,1,2) [2025-03-06 20:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14622859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 20:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14622859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 20:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14622859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 20:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14622859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 20:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622859', 'tblTempUsageDetail_20' ) start [2025-03-06 20:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622859', 'tblTempUsageDetail_20' ) end [2025-03-06 20:16:23] Production.ERROR: pbx prc_insertCDR start [2025-03-06 20:16:23] Production.ERROR: pbx prc_insertCDR end [2025-03-06 20:16:23] Production.INFO: ==31111== Releasing lock... [2025-03-06 20:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 20:16:23] Production.INFO: 41.25 MB #Memory Used# [2025-03-06 20:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 17:17:06 [end_date_ymd] => 2025-03-06 20:17:06 [RateCDR] => 1 ) [2025-03-06 20: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-03-06 17:17:06' and `end` < '2025-03-06 20: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-03-06 20:17:18] Production.INFO: count ==1743 [2025-03-06 20:17:18] Production.ERROR: pbx CDR StartTime 2025-03-06 17:17:06 - End Time 2025-03-06 20:17:06 [2025-03-06 20:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 20:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622864', 'tblTempUsageDetail_20' ) start [2025-03-06 20:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622864', 'tblTempUsageDetail_20' ) end [2025-03-06 20:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622864', 'tblTempVendorCDR_20' ) start [2025-03-06 20:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622864', 'tblTempVendorCDR_20' ) end [2025-03-06 20:17:18] Production.INFO: ProcessCDR(1,14622864,1,1,2) [2025-03-06 20:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14622864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 20:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14622864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 20:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14622864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 20:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14622864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 20:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622864', 'tblTempUsageDetail_20' ) start [2025-03-06 20:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622864', 'tblTempUsageDetail_20' ) end [2025-03-06 20:17:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 20:17:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 20:17:22] Production.INFO: ==31189== Releasing lock... [2025-03-06 20:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 20:17:22] Production.INFO: 40.75 MB #Memory Used# [2025-03-06 20:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 17:18:06 [end_date_ymd] => 2025-03-06 20:18:06 [RateCDR] => 1 ) [2025-03-06 20: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-03-06 17:18:06' and `end` < '2025-03-06 20: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-03-06 20:18:19] Production.INFO: count ==1742 [2025-03-06 20:18:19] Production.ERROR: pbx CDR StartTime 2025-03-06 17:18:06 - End Time 2025-03-06 20:18:06 [2025-03-06 20:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 20:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622869', 'tblTempUsageDetail_20' ) start [2025-03-06 20:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622869', 'tblTempUsageDetail_20' ) end [2025-03-06 20:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622869', 'tblTempVendorCDR_20' ) start [2025-03-06 20:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622869', 'tblTempVendorCDR_20' ) end [2025-03-06 20:18:19] Production.INFO: ProcessCDR(1,14622869,1,1,2) [2025-03-06 20:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14622869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 20:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14622869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 20:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14622869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 20:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14622869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 20:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622869', 'tblTempUsageDetail_20' ) start [2025-03-06 20:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622869', 'tblTempUsageDetail_20' ) end [2025-03-06 20:18:23] Production.ERROR: pbx prc_insertCDR start [2025-03-06 20:18:23] Production.ERROR: pbx prc_insertCDR end [2025-03-06 20:18:23] Production.INFO: ==31278== Releasing lock... [2025-03-06 20:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 20:18:23] Production.INFO: 40.75 MB #Memory Used# [2025-03-06 20:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 17:19:06 [end_date_ymd] => 2025-03-06 20:19:06 [RateCDR] => 1 ) [2025-03-06 20: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-03-06 17:19:06' and `end` < '2025-03-06 20: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-03-06 20:19:18] Production.INFO: count ==1732 [2025-03-06 20:19:18] Production.ERROR: pbx CDR StartTime 2025-03-06 17:19:06 - End Time 2025-03-06 20:19:06 [2025-03-06 20:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 20:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622874', 'tblTempUsageDetail_20' ) start [2025-03-06 20:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622874', 'tblTempUsageDetail_20' ) end [2025-03-06 20:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622874', 'tblTempVendorCDR_20' ) start [2025-03-06 20:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622874', 'tblTempVendorCDR_20' ) end [2025-03-06 20:19:18] Production.INFO: ProcessCDR(1,14622874,1,1,2) [2025-03-06 20:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14622874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 20:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14622874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 20:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14622874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 20:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14622874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 20:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622874', 'tblTempUsageDetail_20' ) start [2025-03-06 20:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622874', 'tblTempUsageDetail_20' ) end [2025-03-06 20:19:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 20:19:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 20:19:22] Production.INFO: ==31360== Releasing lock... [2025-03-06 20:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 20:19:22] Production.INFO: 41 MB #Memory Used# [2025-03-06 20:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 17:20:07 [end_date_ymd] => 2025-03-06 20:20:07 [RateCDR] => 1 ) [2025-03-06 20: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-03-06 17:20:07' and `end` < '2025-03-06 20: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-03-06 20:20:19] Production.INFO: count ==1724 [2025-03-06 20:20:20] Production.ERROR: pbx CDR StartTime 2025-03-06 17:20:07 - End Time 2025-03-06 20:20:07 [2025-03-06 20:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 20:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622879', 'tblTempUsageDetail_20' ) start [2025-03-06 20:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622879', 'tblTempUsageDetail_20' ) end [2025-03-06 20:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622879', 'tblTempVendorCDR_20' ) start [2025-03-06 20:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622879', 'tblTempVendorCDR_20' ) end [2025-03-06 20:20:20] Production.INFO: ProcessCDR(1,14622879,1,1,2) [2025-03-06 20:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14622879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 20:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14622879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 20:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14622879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 20:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14622879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 20:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622879', 'tblTempUsageDetail_20' ) start [2025-03-06 20:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622879', 'tblTempUsageDetail_20' ) end [2025-03-06 20:20:24] Production.ERROR: pbx prc_insertCDR start [2025-03-06 20:20:24] Production.ERROR: pbx prc_insertCDR end [2025-03-06 20:20:24] Production.INFO: ==31442== Releasing lock... [2025-03-06 20:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 20:20:24] Production.INFO: 40.75 MB #Memory Used# [2025-03-06 20:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 17:21:06 [end_date_ymd] => 2025-03-06 20:21:06 [RateCDR] => 1 ) [2025-03-06 20: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-03-06 17:21:06' and `end` < '2025-03-06 20: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-03-06 20:21:18] Production.INFO: count ==1757 [2025-03-06 20:21:19] Production.ERROR: pbx CDR StartTime 2025-03-06 17:21:06 - End Time 2025-03-06 20:21:06 [2025-03-06 20:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 20:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622885', 'tblTempUsageDetail_20' ) start [2025-03-06 20:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622885', 'tblTempUsageDetail_20' ) end [2025-03-06 20:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622885', 'tblTempVendorCDR_20' ) start [2025-03-06 20:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622885', 'tblTempVendorCDR_20' ) end [2025-03-06 20:21:19] Production.INFO: ProcessCDR(1,14622885,1,1,2) [2025-03-06 20:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14622885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 20:21:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14622885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 20:21:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14622885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 20:21:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14622885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 20:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622885', 'tblTempUsageDetail_20' ) start [2025-03-06 20:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622885', 'tblTempUsageDetail_20' ) end [2025-03-06 20:21:24] Production.ERROR: pbx prc_insertCDR start [2025-03-06 20:21:24] Production.ERROR: pbx prc_insertCDR end [2025-03-06 20:21:24] Production.INFO: ==31517== Releasing lock... [2025-03-06 20:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 20:21:24] Production.INFO: 41.25 MB #Memory Used# [2025-03-06 20:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 17:22:06 [end_date_ymd] => 2025-03-06 20:22:06 [RateCDR] => 1 ) [2025-03-06 20:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 17:22:06' and `end` < '2025-03-06 20:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 20:22:18] Production.INFO: count ==1762 [2025-03-06 20:22:19] Production.ERROR: pbx CDR StartTime 2025-03-06 17:22:06 - End Time 2025-03-06 20:22:06 [2025-03-06 20:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 20:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622890', 'tblTempUsageDetail_20' ) start [2025-03-06 20:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622890', 'tblTempUsageDetail_20' ) end [2025-03-06 20:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622890', 'tblTempVendorCDR_20' ) start [2025-03-06 20:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622890', 'tblTempVendorCDR_20' ) end [2025-03-06 20:22:19] Production.INFO: ProcessCDR(1,14622890,1,1,2) [2025-03-06 20:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14622890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 20:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14622890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 20:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14622890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 20:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14622890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 20:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622890', 'tblTempUsageDetail_20' ) start [2025-03-06 20:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622890', 'tblTempUsageDetail_20' ) end [2025-03-06 20:22:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 20:22:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 20:22:22] Production.INFO: ==31596== Releasing lock... [2025-03-06 20:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 20:22:22] Production.INFO: 41.25 MB #Memory Used# [2025-03-06 20:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 17:23:06 [end_date_ymd] => 2025-03-06 20:23:06 [RateCDR] => 1 ) [2025-03-06 20:23:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 17:23:06' and `end` < '2025-03-06 20:23:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 20:23:18] Production.INFO: count ==1764 [2025-03-06 20:23:18] Production.ERROR: pbx CDR StartTime 2025-03-06 17:23:06 - End Time 2025-03-06 20:23:06 [2025-03-06 20:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 20:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622895', 'tblTempUsageDetail_20' ) start [2025-03-06 20:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622895', 'tblTempUsageDetail_20' ) end [2025-03-06 20:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622895', 'tblTempVendorCDR_20' ) start [2025-03-06 20:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622895', 'tblTempVendorCDR_20' ) end [2025-03-06 20:23:18] Production.INFO: ProcessCDR(1,14622895,1,1,2) [2025-03-06 20:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14622895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 20:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14622895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 20:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14622895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 20:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14622895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 20:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622895', 'tblTempUsageDetail_20' ) start [2025-03-06 20:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622895', 'tblTempUsageDetail_20' ) end [2025-03-06 20:23:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 20:23:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 20:23:22] Production.INFO: ==31719== Releasing lock... [2025-03-06 20:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 20:23:22] Production.INFO: 41.25 MB #Memory Used# [2025-03-06 20:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 17:24:06 [end_date_ymd] => 2025-03-06 20:24:06 [RateCDR] => 1 ) [2025-03-06 20: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-03-06 17:24:06' and `end` < '2025-03-06 20: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-03-06 20:24:18] Production.INFO: count ==1764 [2025-03-06 20:24:19] Production.ERROR: pbx CDR StartTime 2025-03-06 17:24:06 - End Time 2025-03-06 20:24:06 [2025-03-06 20:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 20:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622900', 'tblTempUsageDetail_20' ) start [2025-03-06 20:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622900', 'tblTempUsageDetail_20' ) end [2025-03-06 20:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622900', 'tblTempVendorCDR_20' ) start [2025-03-06 20:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622900', 'tblTempVendorCDR_20' ) end [2025-03-06 20:24:19] Production.INFO: ProcessCDR(1,14622900,1,1,2) [2025-03-06 20:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14622900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 20:24:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14622900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 20:24:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14622900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 20:24:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14622900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 20:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622900', 'tblTempUsageDetail_20' ) start [2025-03-06 20:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622900', 'tblTempUsageDetail_20' ) end [2025-03-06 20:24:25] Production.ERROR: pbx prc_insertCDR start [2025-03-06 20:24:25] Production.ERROR: pbx prc_insertCDR end [2025-03-06 20:24:25] Production.INFO: ==31799== Releasing lock... [2025-03-06 20:24:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 20:24:25] Production.INFO: 41.25 MB #Memory Used# [2025-03-06 20:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 17:25:06 [end_date_ymd] => 2025-03-06 20:25:06 [RateCDR] => 1 ) [2025-03-06 20: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-03-06 17:25:06' and `end` < '2025-03-06 20: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-03-06 20:25:18] Production.INFO: count ==1762 [2025-03-06 20:25:19] Production.ERROR: pbx CDR StartTime 2025-03-06 17:25:06 - End Time 2025-03-06 20:25:06 [2025-03-06 20:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622905', 'tblTempUsageDetail_20' ) start [2025-03-06 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622905', 'tblTempUsageDetail_20' ) end [2025-03-06 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622905', 'tblTempVendorCDR_20' ) start [2025-03-06 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622905', 'tblTempVendorCDR_20' ) end [2025-03-06 20:25:19] Production.INFO: ProcessCDR(1,14622905,1,1,2) [2025-03-06 20:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14622905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 20:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14622905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 20:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14622905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 20:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14622905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 20:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622905', 'tblTempUsageDetail_20' ) start [2025-03-06 20:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622905', 'tblTempUsageDetail_20' ) end [2025-03-06 20:25:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 20:25:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 20:25:22] Production.INFO: ==31878== Releasing lock... [2025-03-06 20:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 20:25:22] Production.INFO: 41 MB #Memory Used# [2025-03-06 20:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 17:26:05 [end_date_ymd] => 2025-03-06 20:26:05 [RateCDR] => 1 ) [2025-03-06 20: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-03-06 17:26:05' and `end` < '2025-03-06 20:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 20:26:18] Production.INFO: count ==1759 [2025-03-06 20:26:18] Production.ERROR: pbx CDR StartTime 2025-03-06 17:26:05 - End Time 2025-03-06 20:26:05 [2025-03-06 20:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 20:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622910', 'tblTempUsageDetail_20' ) start [2025-03-06 20:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622910', 'tblTempUsageDetail_20' ) end [2025-03-06 20:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622910', 'tblTempVendorCDR_20' ) start [2025-03-06 20:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622910', 'tblTempVendorCDR_20' ) end [2025-03-06 20:26:18] Production.INFO: ProcessCDR(1,14622910,1,1,2) [2025-03-06 20:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14622910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 20:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14622910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 20:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14622910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 20:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14622910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 20:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622910', 'tblTempUsageDetail_20' ) start [2025-03-06 20:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622910', 'tblTempUsageDetail_20' ) end [2025-03-06 20:26:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 20:26:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 20:26:22] Production.INFO: ==31954== Releasing lock... [2025-03-06 20:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 20:26:22] Production.INFO: 41.25 MB #Memory Used# [2025-03-06 20:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 17:27:06 [end_date_ymd] => 2025-03-06 20:27:06 [RateCDR] => 1 ) [2025-03-06 20:27:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 17:27:06' and `end` < '2025-03-06 20:27:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 20:27:18] Production.INFO: count ==1756 [2025-03-06 20:27:18] Production.ERROR: pbx CDR StartTime 2025-03-06 17:27:06 - End Time 2025-03-06 20:27:06 [2025-03-06 20:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 20:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622915', 'tblTempUsageDetail_20' ) start [2025-03-06 20:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622915', 'tblTempUsageDetail_20' ) end [2025-03-06 20:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622915', 'tblTempVendorCDR_20' ) start [2025-03-06 20:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622915', 'tblTempVendorCDR_20' ) end [2025-03-06 20:27:19] Production.INFO: ProcessCDR(1,14622915,1,1,2) [2025-03-06 20:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14622915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 20:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14622915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 20:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14622915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 20:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14622915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 20:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622915', 'tblTempUsageDetail_20' ) start [2025-03-06 20:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622915', 'tblTempUsageDetail_20' ) end [2025-03-06 20:27:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 20:27:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 20:27:22] Production.INFO: ==32035== Releasing lock... [2025-03-06 20:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 20:27:22] Production.INFO: 41.25 MB #Memory Used# [2025-03-06 20:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 17:28:05 [end_date_ymd] => 2025-03-06 20:28:05 [RateCDR] => 1 ) [2025-03-06 20:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 17:28:05' and `end` < '2025-03-06 20:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 20:28:17] Production.INFO: count ==1747 [2025-03-06 20:28:18] Production.ERROR: pbx CDR StartTime 2025-03-06 17:28:05 - End Time 2025-03-06 20:28:05 [2025-03-06 20:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 20:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622920', 'tblTempUsageDetail_20' ) start [2025-03-06 20:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622920', 'tblTempUsageDetail_20' ) end [2025-03-06 20:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622920', 'tblTempVendorCDR_20' ) start [2025-03-06 20:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622920', 'tblTempVendorCDR_20' ) end [2025-03-06 20:28:18] Production.INFO: ProcessCDR(1,14622920,1,1,2) [2025-03-06 20:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14622920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 20:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14622920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 20:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14622920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 20:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14622920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 20:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622920', 'tblTempUsageDetail_20' ) start [2025-03-06 20:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622920', 'tblTempUsageDetail_20' ) end [2025-03-06 20:28:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 20:28:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 20:28:21] Production.INFO: ==32108== Releasing lock... [2025-03-06 20:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 20:28:21] Production.INFO: 41 MB #Memory Used# [2025-03-06 20:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 17:29:05 [end_date_ymd] => 2025-03-06 20:29:05 [RateCDR] => 1 ) [2025-03-06 20:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 17:29:05' and `end` < '2025-03-06 20:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 20:29:18] Production.INFO: count ==1744 [2025-03-06 20:29:18] Production.ERROR: pbx CDR StartTime 2025-03-06 17:29:05 - End Time 2025-03-06 20:29:05 [2025-03-06 20:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 20:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622925', 'tblTempUsageDetail_20' ) start [2025-03-06 20:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622925', 'tblTempUsageDetail_20' ) end [2025-03-06 20:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622925', 'tblTempVendorCDR_20' ) start [2025-03-06 20:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622925', 'tblTempVendorCDR_20' ) end [2025-03-06 20:29:18] Production.INFO: ProcessCDR(1,14622925,1,1,2) [2025-03-06 20:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14622925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 20:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14622925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 20:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14622925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 20:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14622925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 20:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622925', 'tblTempUsageDetail_20' ) start [2025-03-06 20:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622925', 'tblTempUsageDetail_20' ) end [2025-03-06 20:29:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 20:29:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 20:29:22] Production.INFO: ==32187== Releasing lock... [2025-03-06 20:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 20:29:22] Production.INFO: 40.75 MB #Memory Used# [2025-03-06 20:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 17:30:06 [end_date_ymd] => 2025-03-06 20:30:06 [RateCDR] => 1 ) [2025-03-06 20:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 17:30:06' and `end` < '2025-03-06 20:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 20:30:18] Production.INFO: count ==1743 [2025-03-06 20:30:19] Production.ERROR: pbx CDR StartTime 2025-03-06 17:30:06 - End Time 2025-03-06 20:30:06 [2025-03-06 20:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 20:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622931', 'tblTempUsageDetail_20' ) start [2025-03-06 20:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622931', 'tblTempUsageDetail_20' ) end [2025-03-06 20:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622931', 'tblTempVendorCDR_20' ) start [2025-03-06 20:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622931', 'tblTempVendorCDR_20' ) end [2025-03-06 20:30:19] Production.INFO: ProcessCDR(1,14622931,1,1,2) [2025-03-06 20:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14622931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 20:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14622931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 20:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14622931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 20:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14622931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 20:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622931', 'tblTempUsageDetail_20' ) start [2025-03-06 20:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622931', 'tblTempUsageDetail_20' ) end [2025-03-06 20:30:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 20:30:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 20:30:22] Production.INFO: ==32268== Releasing lock... [2025-03-06 20:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 20:30:22] Production.INFO: 40.75 MB #Memory Used# [2025-03-06 20:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 17:31:05 [end_date_ymd] => 2025-03-06 20:31:05 [RateCDR] => 1 ) [2025-03-06 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-03-06 17:31:05' and `end` < '2025-03-06 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-03-06 20:31:18] Production.INFO: count ==1690 [2025-03-06 20:31:18] Production.ERROR: pbx CDR StartTime 2025-03-06 17:31:05 - End Time 2025-03-06 20:31:05 [2025-03-06 20:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 20:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622936', 'tblTempUsageDetail_20' ) start [2025-03-06 20:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622936', 'tblTempUsageDetail_20' ) end [2025-03-06 20:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622936', 'tblTempVendorCDR_20' ) start [2025-03-06 20:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622936', 'tblTempVendorCDR_20' ) end [2025-03-06 20:31:18] Production.INFO: ProcessCDR(1,14622936,1,1,2) [2025-03-06 20:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14622936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 20:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14622936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 20:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14622936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 20:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14622936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 20:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622936', 'tblTempUsageDetail_20' ) start [2025-03-06 20:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622936', 'tblTempUsageDetail_20' ) end [2025-03-06 20:31:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 20:31:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 20:31:22] Production.INFO: ==32344== Releasing lock... [2025-03-06 20:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 20:31:22] Production.INFO: 40.75 MB #Memory Used# [2025-03-06 20:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 17:32:05 [end_date_ymd] => 2025-03-06 20:32:05 [RateCDR] => 1 ) [2025-03-06 20:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 17:32:05' and `end` < '2025-03-06 20:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 20:32:17] Production.INFO: count ==1690 [2025-03-06 20:32:17] Production.ERROR: pbx CDR StartTime 2025-03-06 17:32:05 - End Time 2025-03-06 20:32:05 [2025-03-06 20:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 20:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622941', 'tblTempUsageDetail_20' ) start [2025-03-06 20:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622941', 'tblTempUsageDetail_20' ) end [2025-03-06 20:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622941', 'tblTempVendorCDR_20' ) start [2025-03-06 20:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622941', 'tblTempVendorCDR_20' ) end [2025-03-06 20:32:17] Production.INFO: ProcessCDR(1,14622941,1,1,2) [2025-03-06 20:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14622941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 20:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14622941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 20:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14622941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 20:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14622941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 20:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622941', 'tblTempUsageDetail_20' ) start [2025-03-06 20:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622941', 'tblTempUsageDetail_20' ) end [2025-03-06 20:32:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 20:32:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 20:32:22] Production.INFO: ==32421== Releasing lock... [2025-03-06 20:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 20:32:22] Production.INFO: 40.75 MB #Memory Used# [2025-03-06 20:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 17:33:06 [end_date_ymd] => 2025-03-06 20:33:06 [RateCDR] => 1 ) [2025-03-06 20: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-03-06 17:33:06' and `end` < '2025-03-06 20: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-03-06 20:33:18] Production.INFO: count ==1692 [2025-03-06 20:33:19] Production.ERROR: pbx CDR StartTime 2025-03-06 17:33:06 - End Time 2025-03-06 20:33:06 [2025-03-06 20:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 20:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622946', 'tblTempUsageDetail_20' ) start [2025-03-06 20:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622946', 'tblTempUsageDetail_20' ) end [2025-03-06 20:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622946', 'tblTempVendorCDR_20' ) start [2025-03-06 20:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622946', 'tblTempVendorCDR_20' ) end [2025-03-06 20:33:19] Production.INFO: ProcessCDR(1,14622946,1,1,2) [2025-03-06 20:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14622946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 20:33:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14622946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 20:33:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14622946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 20:33:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14622946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 20:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622946', 'tblTempUsageDetail_20' ) start [2025-03-06 20:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622946', 'tblTempUsageDetail_20' ) end [2025-03-06 20:33:24] Production.ERROR: pbx prc_insertCDR start [2025-03-06 20:33:24] Production.ERROR: pbx prc_insertCDR end [2025-03-06 20:33:24] Production.INFO: ==32500== Releasing lock... [2025-03-06 20:33:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 20:33:24] Production.INFO: 40.75 MB #Memory Used# [2025-03-06 20:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 17:34:05 [end_date_ymd] => 2025-03-06 20:34:05 [RateCDR] => 1 ) [2025-03-06 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-03-06 17:34:05' and `end` < '2025-03-06 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-03-06 20:34:17] Production.INFO: count ==1690 [2025-03-06 20:34:18] Production.ERROR: pbx CDR StartTime 2025-03-06 17:34:05 - End Time 2025-03-06 20:34:05 [2025-03-06 20:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 20:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622951', 'tblTempUsageDetail_20' ) start [2025-03-06 20:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622951', 'tblTempUsageDetail_20' ) end [2025-03-06 20:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622951', 'tblTempVendorCDR_20' ) start [2025-03-06 20:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622951', 'tblTempVendorCDR_20' ) end [2025-03-06 20:34:18] Production.INFO: ProcessCDR(1,14622951,1,1,2) [2025-03-06 20:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14622951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 20:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14622951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 20:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14622951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 20:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14622951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 20:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622951', 'tblTempUsageDetail_20' ) start [2025-03-06 20:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622951', 'tblTempUsageDetail_20' ) end [2025-03-06 20:34:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 20:34:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 20:34:22] Production.INFO: ==32576== Releasing lock... [2025-03-06 20:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 20:34:22] Production.INFO: 40.75 MB #Memory Used# [2025-03-06 20:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 17:35:06 [end_date_ymd] => 2025-03-06 20:35:06 [RateCDR] => 1 ) [2025-03-06 20:35:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 17:35:06' and `end` < '2025-03-06 20:35:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 20:35:18] Production.INFO: count ==1691 [2025-03-06 20:35:19] Production.ERROR: pbx CDR StartTime 2025-03-06 17:35:06 - End Time 2025-03-06 20:35:06 [2025-03-06 20:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 20:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622956', 'tblTempUsageDetail_20' ) start [2025-03-06 20:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622956', 'tblTempUsageDetail_20' ) end [2025-03-06 20:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622956', 'tblTempVendorCDR_20' ) start [2025-03-06 20:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622956', 'tblTempVendorCDR_20' ) end [2025-03-06 20:35:19] Production.INFO: ProcessCDR(1,14622956,1,1,2) [2025-03-06 20:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14622956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 20:35:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14622956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 20:35:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14622956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 20:35:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14622956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 20:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622956', 'tblTempUsageDetail_20' ) start [2025-03-06 20:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622956', 'tblTempUsageDetail_20' ) end [2025-03-06 20:35:24] Production.ERROR: pbx prc_insertCDR start [2025-03-06 20:35:24] Production.ERROR: pbx prc_insertCDR end [2025-03-06 20:35:24] Production.INFO: ==32653== Releasing lock... [2025-03-06 20:35:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 20:35:24] Production.INFO: 41 MB #Memory Used# [2025-03-06 20:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 17:36:05 [end_date_ymd] => 2025-03-06 20:36:05 [RateCDR] => 1 ) [2025-03-06 20:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 17:36:05' and `end` < '2025-03-06 20:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 20:36:18] Production.INFO: count ==1685 [2025-03-06 20:36:18] Production.ERROR: pbx CDR StartTime 2025-03-06 17:36:05 - End Time 2025-03-06 20:36:05 [2025-03-06 20:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 20:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622961', 'tblTempUsageDetail_20' ) start [2025-03-06 20:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622961', 'tblTempUsageDetail_20' ) end [2025-03-06 20:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622961', 'tblTempVendorCDR_20' ) start [2025-03-06 20:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622961', 'tblTempVendorCDR_20' ) end [2025-03-06 20:36:18] Production.INFO: ProcessCDR(1,14622961,1,1,2) [2025-03-06 20:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14622961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 20:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14622961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 20:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14622961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 20:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14622961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 20:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622961', 'tblTempUsageDetail_20' ) start [2025-03-06 20:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622961', 'tblTempUsageDetail_20' ) end [2025-03-06 20:36:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 20:36:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 20:36:22] Production.INFO: ==32730== Releasing lock... [2025-03-06 20:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 20:36:22] Production.INFO: 40.5 MB #Memory Used# [2025-03-06 20:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 17:37:06 [end_date_ymd] => 2025-03-06 20:37:06 [RateCDR] => 1 ) [2025-03-06 20:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 17:37:06' and `end` < '2025-03-06 20:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 20:37:19] Production.INFO: count ==1680 [2025-03-06 20:37:19] Production.ERROR: pbx CDR StartTime 2025-03-06 17:37:06 - End Time 2025-03-06 20:37:06 [2025-03-06 20:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622966', 'tblTempUsageDetail_20' ) start [2025-03-06 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622966', 'tblTempUsageDetail_20' ) end [2025-03-06 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622966', 'tblTempVendorCDR_20' ) start [2025-03-06 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622966', 'tblTempVendorCDR_20' ) end [2025-03-06 20:37:19] Production.INFO: ProcessCDR(1,14622966,1,1,2) [2025-03-06 20:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14622966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 20:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14622966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 20:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14622966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 20:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14622966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 20:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622966', 'tblTempUsageDetail_20' ) start [2025-03-06 20:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622966', 'tblTempUsageDetail_20' ) end [2025-03-06 20:37:23] Production.ERROR: pbx prc_insertCDR start [2025-03-06 20:37:23] Production.ERROR: pbx prc_insertCDR end [2025-03-06 20:37:23] Production.INFO: ==358== Releasing lock... [2025-03-06 20:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 20:37:23] Production.INFO: 40.75 MB #Memory Used# [2025-03-06 20:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 17:38:06 [end_date_ymd] => 2025-03-06 20:38:06 [RateCDR] => 1 ) [2025-03-06 20: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-03-06 17:38:06' and `end` < '2025-03-06 20: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-03-06 20:38:18] Production.INFO: count ==1677 [2025-03-06 20:38:19] Production.ERROR: pbx CDR StartTime 2025-03-06 17:38:06 - End Time 2025-03-06 20:38:06 [2025-03-06 20:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 20:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622971', 'tblTempUsageDetail_20' ) start [2025-03-06 20:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622971', 'tblTempUsageDetail_20' ) end [2025-03-06 20:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622971', 'tblTempVendorCDR_20' ) start [2025-03-06 20:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622971', 'tblTempVendorCDR_20' ) end [2025-03-06 20:38:19] Production.INFO: ProcessCDR(1,14622971,1,1,2) [2025-03-06 20:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14622971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 20:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14622971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 20:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14622971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 20:38:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14622971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 20:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622971', 'tblTempUsageDetail_20' ) start [2025-03-06 20:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622971', 'tblTempUsageDetail_20' ) end [2025-03-06 20:38:24] Production.ERROR: pbx prc_insertCDR start [2025-03-06 20:38:24] Production.ERROR: pbx prc_insertCDR end [2025-03-06 20:38:24] Production.INFO: ==479== Releasing lock... [2025-03-06 20:38:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 20:38:24] Production.INFO: 40.5 MB #Memory Used# [2025-03-06 20:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 17:39:05 [end_date_ymd] => 2025-03-06 20:39:05 [RateCDR] => 1 ) [2025-03-06 20:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 17:39:05' and `end` < '2025-03-06 20:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 20:39:17] Production.INFO: count ==1676 [2025-03-06 20:39:17] Production.ERROR: pbx CDR StartTime 2025-03-06 17:39:05 - End Time 2025-03-06 20:39:05 [2025-03-06 20:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 20:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622976', 'tblTempUsageDetail_20' ) start [2025-03-06 20:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622976', 'tblTempUsageDetail_20' ) end [2025-03-06 20:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622976', 'tblTempVendorCDR_20' ) start [2025-03-06 20:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622976', 'tblTempVendorCDR_20' ) end [2025-03-06 20:39:18] Production.INFO: ProcessCDR(1,14622976,1,1,2) [2025-03-06 20:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14622976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 20:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14622976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 20:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14622976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 20:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14622976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 20:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622976', 'tblTempUsageDetail_20' ) start [2025-03-06 20:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622976', 'tblTempUsageDetail_20' ) end [2025-03-06 20:39:23] Production.ERROR: pbx prc_insertCDR start [2025-03-06 20:39:23] Production.ERROR: pbx prc_insertCDR end [2025-03-06 20:39:23] Production.INFO: ==557== Releasing lock... [2025-03-06 20:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 20:39:23] Production.INFO: 40.5 MB #Memory Used# [2025-03-06 20:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 17:40:06 [end_date_ymd] => 2025-03-06 20:40:06 [RateCDR] => 1 ) [2025-03-06 20: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-03-06 17:40:06' and `end` < '2025-03-06 20: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-03-06 20:40:19] Production.INFO: count ==1660 [2025-03-06 20:40:19] Production.ERROR: pbx CDR StartTime 2025-03-06 17:40:06 - End Time 2025-03-06 20:40:06 [2025-03-06 20:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 20:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622982', 'tblTempUsageDetail_20' ) start [2025-03-06 20:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622982', 'tblTempUsageDetail_20' ) end [2025-03-06 20:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622982', 'tblTempVendorCDR_20' ) start [2025-03-06 20:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622982', 'tblTempVendorCDR_20' ) end [2025-03-06 20:40:19] Production.INFO: ProcessCDR(1,14622982,1,1,2) [2025-03-06 20:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14622982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 20:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14622982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 20:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14622982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 20:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14622982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 20:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622982', 'tblTempUsageDetail_20' ) start [2025-03-06 20:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622982', 'tblTempUsageDetail_20' ) end [2025-03-06 20:40:24] Production.ERROR: pbx prc_insertCDR start [2025-03-06 20:40:24] Production.ERROR: pbx prc_insertCDR end [2025-03-06 20:40:24] Production.INFO: ==646== Releasing lock... [2025-03-06 20:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 20:40:24] Production.INFO: 40.5 MB #Memory Used# [2025-03-06 20:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 17:41:05 [end_date_ymd] => 2025-03-06 20:41:05 [RateCDR] => 1 ) [2025-03-06 20:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 17:41:05' and `end` < '2025-03-06 20:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 20:41:17] Production.INFO: count ==1607 [2025-03-06 20:41:18] Production.ERROR: pbx CDR StartTime 2025-03-06 17:41:05 - End Time 2025-03-06 20:41:05 [2025-03-06 20:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 20:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622987', 'tblTempUsageDetail_20' ) start [2025-03-06 20:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622987', 'tblTempUsageDetail_20' ) end [2025-03-06 20:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622987', 'tblTempVendorCDR_20' ) start [2025-03-06 20:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622987', 'tblTempVendorCDR_20' ) end [2025-03-06 20:41:18] Production.INFO: ProcessCDR(1,14622987,1,1,2) [2025-03-06 20:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14622987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 20:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14622987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 20:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14622987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 20:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14622987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 20:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622987', 'tblTempUsageDetail_20' ) start [2025-03-06 20:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622987', 'tblTempUsageDetail_20' ) end [2025-03-06 20:41:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 20:41:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 20:41:21] Production.INFO: ==754== Releasing lock... [2025-03-06 20:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 20:41:21] Production.INFO: 40 MB #Memory Used# [2025-03-06 20:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 17:42:06 [end_date_ymd] => 2025-03-06 20:42:06 [RateCDR] => 1 ) [2025-03-06 20: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-03-06 17:42:06' and `end` < '2025-03-06 20: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-03-06 20:42:18] Production.INFO: count ==1603 [2025-03-06 20:42:18] Production.ERROR: pbx CDR StartTime 2025-03-06 17:42:06 - End Time 2025-03-06 20:42:06 [2025-03-06 20:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 20:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622992', 'tblTempUsageDetail_20' ) start [2025-03-06 20:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622992', 'tblTempUsageDetail_20' ) end [2025-03-06 20:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622992', 'tblTempVendorCDR_20' ) start [2025-03-06 20:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622992', 'tblTempVendorCDR_20' ) end [2025-03-06 20:42:18] Production.INFO: ProcessCDR(1,14622992,1,1,2) [2025-03-06 20:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14622992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 20:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14622992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 20:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14622992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 20:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14622992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 20:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622992', 'tblTempUsageDetail_20' ) start [2025-03-06 20:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622992', 'tblTempUsageDetail_20' ) end [2025-03-06 20:42:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 20:42:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 20:42:22] Production.INFO: ==831== Releasing lock... [2025-03-06 20:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 20:42:22] Production.INFO: 40 MB #Memory Used# [2025-03-06 20:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 17:43:05 [end_date_ymd] => 2025-03-06 20:43:05 [RateCDR] => 1 ) [2025-03-06 20:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 17:43:05' and `end` < '2025-03-06 20:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 20:43:17] Production.INFO: count ==1603 [2025-03-06 20:43:17] Production.ERROR: pbx CDR StartTime 2025-03-06 17:43:05 - End Time 2025-03-06 20:43:05 [2025-03-06 20:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 20:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622997', 'tblTempUsageDetail_20' ) start [2025-03-06 20:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14622997', 'tblTempUsageDetail_20' ) end [2025-03-06 20:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622997', 'tblTempVendorCDR_20' ) start [2025-03-06 20:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14622997', 'tblTempVendorCDR_20' ) end [2025-03-06 20:43:18] Production.INFO: ProcessCDR(1,14622997,1,1,2) [2025-03-06 20:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14622997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 20:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14622997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 20:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14622997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 20:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14622997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 20:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622997', 'tblTempUsageDetail_20' ) start [2025-03-06 20:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14622997', 'tblTempUsageDetail_20' ) end [2025-03-06 20:43:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 20:43:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 20:43:21] Production.INFO: ==910== Releasing lock... [2025-03-06 20:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 20:43:21] Production.INFO: 40.25 MB #Memory Used# [2025-03-06 20:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 17:44:06 [end_date_ymd] => 2025-03-06 20:44:06 [RateCDR] => 1 ) [2025-03-06 20:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 17:44:06' and `end` < '2025-03-06 20:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 20:44:18] Production.INFO: count ==1596 [2025-03-06 20:44:18] Production.ERROR: pbx CDR StartTime 2025-03-06 17:44:06 - End Time 2025-03-06 20:44:06 [2025-03-06 20:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 20:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623002', 'tblTempUsageDetail_20' ) start [2025-03-06 20:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623002', 'tblTempUsageDetail_20' ) end [2025-03-06 20:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623002', 'tblTempVendorCDR_20' ) start [2025-03-06 20:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623002', 'tblTempVendorCDR_20' ) end [2025-03-06 20:44:18] Production.INFO: ProcessCDR(1,14623002,1,1,2) [2025-03-06 20:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14623002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 20:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14623002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 20:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14623002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 20:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14623002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 20:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623002', 'tblTempUsageDetail_20' ) start [2025-03-06 20:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623002', 'tblTempUsageDetail_20' ) end [2025-03-06 20:44:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 20:44:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 20:44:22] Production.INFO: ==990== Releasing lock... [2025-03-06 20:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 20:44:22] Production.INFO: 39.75 MB #Memory Used# [2025-03-06 20:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 17:45:06 [end_date_ymd] => 2025-03-06 20:45:06 [RateCDR] => 1 ) [2025-03-06 20:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 17:45:06' and `end` < '2025-03-06 20:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 20:45:18] Production.INFO: count ==1587 [2025-03-06 20:45:18] Production.ERROR: pbx CDR StartTime 2025-03-06 17:45:06 - End Time 2025-03-06 20:45:06 [2025-03-06 20:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623007', 'tblTempUsageDetail_20' ) start [2025-03-06 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623007', 'tblTempUsageDetail_20' ) end [2025-03-06 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623007', 'tblTempVendorCDR_20' ) start [2025-03-06 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623007', 'tblTempVendorCDR_20' ) end [2025-03-06 20:45:18] Production.INFO: ProcessCDR(1,14623007,1,1,2) [2025-03-06 20:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14623007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 20:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14623007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 20:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14623007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 20:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14623007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 20:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623007', 'tblTempUsageDetail_20' ) start [2025-03-06 20:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623007', 'tblTempUsageDetail_20' ) end [2025-03-06 20:45:23] Production.ERROR: pbx prc_insertCDR start [2025-03-06 20:45:24] Production.ERROR: pbx prc_insertCDR end [2025-03-06 20:45:24] Production.INFO: ==1067== Releasing lock... [2025-03-06 20:45:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 20:45:24] Production.INFO: 40 MB #Memory Used# [2025-03-06 20:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 17:46:05 [end_date_ymd] => 2025-03-06 20:46:05 [RateCDR] => 1 ) [2025-03-06 20:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 17:46:05' and `end` < '2025-03-06 20:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 20:46:18] Production.INFO: count ==1579 [2025-03-06 20:46:18] Production.ERROR: pbx CDR StartTime 2025-03-06 17:46:05 - End Time 2025-03-06 20:46:05 [2025-03-06 20:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 20:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623012', 'tblTempUsageDetail_20' ) start [2025-03-06 20:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623012', 'tblTempUsageDetail_20' ) end [2025-03-06 20:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623012', 'tblTempVendorCDR_20' ) start [2025-03-06 20:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623012', 'tblTempVendorCDR_20' ) end [2025-03-06 20:46:18] Production.INFO: ProcessCDR(1,14623012,1,1,2) [2025-03-06 20:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14623012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 20:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14623012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 20:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14623012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 20:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14623012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 20:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623012', 'tblTempUsageDetail_20' ) start [2025-03-06 20:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623012', 'tblTempUsageDetail_20' ) end [2025-03-06 20:46:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 20:46:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 20:46:22] Production.INFO: ==1145== Releasing lock... [2025-03-06 20:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 20:46:22] Production.INFO: 39.75 MB #Memory Used# [2025-03-06 20:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 17:47:05 [end_date_ymd] => 2025-03-06 20:47:05 [RateCDR] => 1 ) [2025-03-06 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-03-06 17:47:05' and `end` < '2025-03-06 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-03-06 20:47:18] Production.INFO: count ==1583 [2025-03-06 20:47:18] Production.ERROR: pbx CDR StartTime 2025-03-06 17:47:05 - End Time 2025-03-06 20:47:05 [2025-03-06 20:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 20:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623017', 'tblTempUsageDetail_20' ) start [2025-03-06 20:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623017', 'tblTempUsageDetail_20' ) end [2025-03-06 20:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623017', 'tblTempVendorCDR_20' ) start [2025-03-06 20:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623017', 'tblTempVendorCDR_20' ) end [2025-03-06 20:47:18] Production.INFO: ProcessCDR(1,14623017,1,1,2) [2025-03-06 20:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14623017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 20:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14623017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 20:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14623017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 20:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14623017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 20:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623017', 'tblTempUsageDetail_20' ) start [2025-03-06 20:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623017', 'tblTempUsageDetail_20' ) end [2025-03-06 20:47:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 20:47:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 20:47:22] Production.INFO: ==1226== Releasing lock... [2025-03-06 20:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 20:47:22] Production.INFO: 39.75 MB #Memory Used# [2025-03-06 20:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 17:48:05 [end_date_ymd] => 2025-03-06 20:48:05 [RateCDR] => 1 ) [2025-03-06 20: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-03-06 17:48:05' and `end` < '2025-03-06 20: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-03-06 20:48:18] Production.INFO: count ==1560 [2025-03-06 20:48:18] Production.ERROR: pbx CDR StartTime 2025-03-06 17:48:05 - End Time 2025-03-06 20:48:05 [2025-03-06 20:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 20:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623022', 'tblTempUsageDetail_20' ) start [2025-03-06 20:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623022', 'tblTempUsageDetail_20' ) end [2025-03-06 20:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623022', 'tblTempVendorCDR_20' ) start [2025-03-06 20:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623022', 'tblTempVendorCDR_20' ) end [2025-03-06 20:48:18] Production.INFO: ProcessCDR(1,14623022,1,1,2) [2025-03-06 20:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14623022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 20:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14623022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 20:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14623022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 20:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14623022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 20:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623022', 'tblTempUsageDetail_20' ) start [2025-03-06 20:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623022', 'tblTempUsageDetail_20' ) end [2025-03-06 20:48:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 20:48:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 20:48:22] Production.INFO: ==1317== Releasing lock... [2025-03-06 20:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 20:48:22] Production.INFO: 39.5 MB #Memory Used# [2025-03-06 20:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 17:49:06 [end_date_ymd] => 2025-03-06 20:49:06 [RateCDR] => 1 ) [2025-03-06 20: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-03-06 17:49:06' and `end` < '2025-03-06 20: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-03-06 20:49:18] Production.INFO: count ==1552 [2025-03-06 20:49:19] Production.ERROR: pbx CDR StartTime 2025-03-06 17:49:06 - End Time 2025-03-06 20:49:06 [2025-03-06 20:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 20:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623027', 'tblTempUsageDetail_20' ) start [2025-03-06 20:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623027', 'tblTempUsageDetail_20' ) end [2025-03-06 20:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623027', 'tblTempVendorCDR_20' ) start [2025-03-06 20:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623027', 'tblTempVendorCDR_20' ) end [2025-03-06 20:49:19] Production.INFO: ProcessCDR(1,14623027,1,1,2) [2025-03-06 20:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14623027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 20:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14623027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 20:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14623027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 20:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14623027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 20:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623027', 'tblTempUsageDetail_20' ) start [2025-03-06 20:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623027', 'tblTempUsageDetail_20' ) end [2025-03-06 20:49:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 20:49:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 20:49:22] Production.INFO: ==1396== Releasing lock... [2025-03-06 20:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 20:49:22] Production.INFO: 39.5 MB #Memory Used# [2025-03-06 20:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 17:50:06 [end_date_ymd] => 2025-03-06 20:50:06 [RateCDR] => 1 ) [2025-03-06 20:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 17:50:06' and `end` < '2025-03-06 20:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 20:50:19] Production.INFO: count ==1550 [2025-03-06 20:50:19] Production.ERROR: pbx CDR StartTime 2025-03-06 17:50:06 - End Time 2025-03-06 20:50:06 [2025-03-06 20:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 20:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623033', 'tblTempUsageDetail_20' ) start [2025-03-06 20:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623033', 'tblTempUsageDetail_20' ) end [2025-03-06 20:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623033', 'tblTempVendorCDR_20' ) start [2025-03-06 20:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623033', 'tblTempVendorCDR_20' ) end [2025-03-06 20:50:19] Production.INFO: ProcessCDR(1,14623033,1,1,2) [2025-03-06 20:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14623033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 20:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14623033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 20:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14623033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 20:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14623033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 20:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623033', 'tblTempUsageDetail_20' ) start [2025-03-06 20:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623033', 'tblTempUsageDetail_20' ) end [2025-03-06 20:50:23] Production.ERROR: pbx prc_insertCDR start [2025-03-06 20:50:23] Production.ERROR: pbx prc_insertCDR end [2025-03-06 20:50:23] Production.INFO: ==1470== Releasing lock... [2025-03-06 20:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 20:50:23] Production.INFO: 39.75 MB #Memory Used# [2025-03-06 20:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 17:51:06 [end_date_ymd] => 2025-03-06 20:51:06 [RateCDR] => 1 ) [2025-03-06 20: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-03-06 17:51:06' and `end` < '2025-03-06 20: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-03-06 20:51:18] Production.INFO: count ==1512 [2025-03-06 20:51:18] Production.ERROR: pbx CDR StartTime 2025-03-06 17:51:06 - End Time 2025-03-06 20:51:06 [2025-03-06 20:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 20:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623038', 'tblTempUsageDetail_20' ) start [2025-03-06 20:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623038', 'tblTempUsageDetail_20' ) end [2025-03-06 20:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623038', 'tblTempVendorCDR_20' ) start [2025-03-06 20:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623038', 'tblTempVendorCDR_20' ) end [2025-03-06 20:51:18] Production.INFO: ProcessCDR(1,14623038,1,1,2) [2025-03-06 20:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14623038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 20:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14623038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 20:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14623038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 20:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14623038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 20:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623038', 'tblTempUsageDetail_20' ) start [2025-03-06 20:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623038', 'tblTempUsageDetail_20' ) end [2025-03-06 20:51:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 20:51:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 20:51:22] Production.INFO: ==1578== Releasing lock... [2025-03-06 20:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 20:51:22] Production.INFO: 39.5 MB #Memory Used# [2025-03-06 20:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 17:52:06 [end_date_ymd] => 2025-03-06 20:52:06 [RateCDR] => 1 ) [2025-03-06 20:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 17:52:06' and `end` < '2025-03-06 20:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 20:52:18] Production.INFO: count ==1512 [2025-03-06 20:52:18] Production.ERROR: pbx CDR StartTime 2025-03-06 17:52:06 - End Time 2025-03-06 20:52:06 [2025-03-06 20:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 20:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623043', 'tblTempUsageDetail_20' ) start [2025-03-06 20:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623043', 'tblTempUsageDetail_20' ) end [2025-03-06 20:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623043', 'tblTempVendorCDR_20' ) start [2025-03-06 20:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623043', 'tblTempVendorCDR_20' ) end [2025-03-06 20:52:18] Production.INFO: ProcessCDR(1,14623043,1,1,2) [2025-03-06 20:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14623043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 20:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14623043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 20:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14623043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 20:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14623043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 20:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623043', 'tblTempUsageDetail_20' ) start [2025-03-06 20:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623043', 'tblTempUsageDetail_20' ) end [2025-03-06 20:52:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 20:52:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 20:52:22] Production.INFO: ==1652== Releasing lock... [2025-03-06 20:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 20:52:22] Production.INFO: 39.5 MB #Memory Used# [2025-03-06 20:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 17:53:06 [end_date_ymd] => 2025-03-06 20:53:06 [RateCDR] => 1 ) [2025-03-06 20: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-03-06 17:53:06' and `end` < '2025-03-06 20: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-03-06 20:53:18] Production.INFO: count ==1508 [2025-03-06 20:53:18] Production.ERROR: pbx CDR StartTime 2025-03-06 17:53:06 - End Time 2025-03-06 20:53:06 [2025-03-06 20:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 20:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623048', 'tblTempUsageDetail_20' ) start [2025-03-06 20:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623048', 'tblTempUsageDetail_20' ) end [2025-03-06 20:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623048', 'tblTempVendorCDR_20' ) start [2025-03-06 20:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623048', 'tblTempVendorCDR_20' ) end [2025-03-06 20:53:18] Production.INFO: ProcessCDR(1,14623048,1,1,2) [2025-03-06 20:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14623048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 20:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14623048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 20:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14623048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 20:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14623048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 20:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623048', 'tblTempUsageDetail_20' ) start [2025-03-06 20:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623048', 'tblTempUsageDetail_20' ) end [2025-03-06 20:53:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 20:53:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 20:53:22] Production.INFO: ==1725== Releasing lock... [2025-03-06 20:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 20:53:22] Production.INFO: 39 MB #Memory Used# [2025-03-06 20:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 17:54:05 [end_date_ymd] => 2025-03-06 20:54:05 [RateCDR] => 1 ) [2025-03-06 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-03-06 17:54:05' and `end` < '2025-03-06 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-03-06 20:54:17] Production.INFO: count ==1508 [2025-03-06 20:54:18] Production.ERROR: pbx CDR StartTime 2025-03-06 17:54:05 - End Time 2025-03-06 20:54:05 [2025-03-06 20:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 20:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623053', 'tblTempUsageDetail_20' ) start [2025-03-06 20:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623053', 'tblTempUsageDetail_20' ) end [2025-03-06 20:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623053', 'tblTempVendorCDR_20' ) start [2025-03-06 20:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623053', 'tblTempVendorCDR_20' ) end [2025-03-06 20:54:18] Production.INFO: ProcessCDR(1,14623053,1,1,2) [2025-03-06 20:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14623053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 20:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14623053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 20:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14623053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 20:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14623053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 20:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623053', 'tblTempUsageDetail_20' ) start [2025-03-06 20:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623053', 'tblTempUsageDetail_20' ) end [2025-03-06 20:54:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 20:54:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 20:54:22] Production.INFO: ==1838== Releasing lock... [2025-03-06 20:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 20:54:22] Production.INFO: 39 MB #Memory Used# [2025-03-06 20:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 17:55:06 [end_date_ymd] => 2025-03-06 20:55:06 [RateCDR] => 1 ) [2025-03-06 20: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-03-06 17:55:06' and `end` < '2025-03-06 20: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-03-06 20:55:18] Production.INFO: count ==1506 [2025-03-06 20:55:18] Production.ERROR: pbx CDR StartTime 2025-03-06 17:55:06 - End Time 2025-03-06 20:55:06 [2025-03-06 20:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 20:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623058', 'tblTempUsageDetail_20' ) start [2025-03-06 20:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623058', 'tblTempUsageDetail_20' ) end [2025-03-06 20:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623058', 'tblTempVendorCDR_20' ) start [2025-03-06 20:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623058', 'tblTempVendorCDR_20' ) end [2025-03-06 20:55:18] Production.INFO: ProcessCDR(1,14623058,1,1,2) [2025-03-06 20:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14623058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 20:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14623058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 20:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14623058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 20:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14623058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 20:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623058', 'tblTempUsageDetail_20' ) start [2025-03-06 20:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623058', 'tblTempUsageDetail_20' ) end [2025-03-06 20:55:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 20:55:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 20:55:22] Production.INFO: ==1910== Releasing lock... [2025-03-06 20:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 20:55:22] Production.INFO: 39.25 MB #Memory Used# [2025-03-06 20:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 17:56:05 [end_date_ymd] => 2025-03-06 20:56:05 [RateCDR] => 1 ) [2025-03-06 20:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 17:56:05' and `end` < '2025-03-06 20:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 20:56:18] Production.INFO: count ==1501 [2025-03-06 20:56:18] Production.ERROR: pbx CDR StartTime 2025-03-06 17:56:05 - End Time 2025-03-06 20:56:05 [2025-03-06 20:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 20:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623063', 'tblTempUsageDetail_20' ) start [2025-03-06 20:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623063', 'tblTempUsageDetail_20' ) end [2025-03-06 20:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623063', 'tblTempVendorCDR_20' ) start [2025-03-06 20:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623063', 'tblTempVendorCDR_20' ) end [2025-03-06 20:56:18] Production.INFO: ProcessCDR(1,14623063,1,1,2) [2025-03-06 20:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14623063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 20:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14623063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 20:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14623063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 20:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14623063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 20:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623063', 'tblTempUsageDetail_20' ) start [2025-03-06 20:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623063', 'tblTempUsageDetail_20' ) end [2025-03-06 20:56:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 20:56:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 20:56:22] Production.INFO: ==1981== Releasing lock... [2025-03-06 20:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 20:56:22] Production.INFO: 39.25 MB #Memory Used# [2025-03-06 20:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 17:57:06 [end_date_ymd] => 2025-03-06 20:57:06 [RateCDR] => 1 ) [2025-03-06 20: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-03-06 17:57:06' and `end` < '2025-03-06 20: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-03-06 20:57:18] Production.INFO: count ==1492 [2025-03-06 20:57:18] Production.ERROR: pbx CDR StartTime 2025-03-06 17:57:06 - End Time 2025-03-06 20:57:06 [2025-03-06 20:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 20:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623068', 'tblTempUsageDetail_20' ) start [2025-03-06 20:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623068', 'tblTempUsageDetail_20' ) end [2025-03-06 20:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623068', 'tblTempVendorCDR_20' ) start [2025-03-06 20:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623068', 'tblTempVendorCDR_20' ) end [2025-03-06 20:57:18] Production.INFO: ProcessCDR(1,14623068,1,1,2) [2025-03-06 20:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14623068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 20:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14623068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 20:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14623068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 20:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14623068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 20:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623068', 'tblTempUsageDetail_20' ) start [2025-03-06 20:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623068', 'tblTempUsageDetail_20' ) end [2025-03-06 20:57:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 20:57:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 20:57:22] Production.INFO: ==2052== Releasing lock... [2025-03-06 20:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 20:57:22] Production.INFO: 39 MB #Memory Used# [2025-03-06 20:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 17:58:05 [end_date_ymd] => 2025-03-06 20:58:05 [RateCDR] => 1 ) [2025-03-06 20:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 17:58:05' and `end` < '2025-03-06 20:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 20:58:18] Production.INFO: count ==1493 [2025-03-06 20:58:18] Production.ERROR: pbx CDR StartTime 2025-03-06 17:58:05 - End Time 2025-03-06 20:58:05 [2025-03-06 20:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 20:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623073', 'tblTempUsageDetail_20' ) start [2025-03-06 20:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623073', 'tblTempUsageDetail_20' ) end [2025-03-06 20:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623073', 'tblTempVendorCDR_20' ) start [2025-03-06 20:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623073', 'tblTempVendorCDR_20' ) end [2025-03-06 20:58:18] Production.INFO: ProcessCDR(1,14623073,1,1,2) [2025-03-06 20:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14623073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 20:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14623073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 20:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14623073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 20:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14623073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 20:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623073', 'tblTempUsageDetail_20' ) start [2025-03-06 20:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623073', 'tblTempUsageDetail_20' ) end [2025-03-06 20:58:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 20:58:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 20:58:21] Production.INFO: ==2125== Releasing lock... [2025-03-06 20:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 20:58:21] Production.INFO: 39.25 MB #Memory Used# [2025-03-06 20:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 17:59:06 [end_date_ymd] => 2025-03-06 20:59:06 [RateCDR] => 1 ) [2025-03-06 20: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-03-06 17:59:06' and `end` < '2025-03-06 20: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-03-06 20:59:18] Production.INFO: count ==1479 [2025-03-06 20:59:18] Production.ERROR: pbx CDR StartTime 2025-03-06 17:59:06 - End Time 2025-03-06 20:59:06 [2025-03-06 20:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 20:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623078', 'tblTempUsageDetail_20' ) start [2025-03-06 20:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623078', 'tblTempUsageDetail_20' ) end [2025-03-06 20:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623078', 'tblTempVendorCDR_20' ) start [2025-03-06 20:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623078', 'tblTempVendorCDR_20' ) end [2025-03-06 20:59:18] Production.INFO: ProcessCDR(1,14623078,1,1,2) [2025-03-06 20:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14623078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 20:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14623078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 20:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14623078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 20:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14623078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 20:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623078', 'tblTempUsageDetail_20' ) start [2025-03-06 20:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623078', 'tblTempUsageDetail_20' ) end [2025-03-06 20:59:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 20:59:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 20:59:22] Production.INFO: ==2198== Releasing lock... [2025-03-06 20:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 20:59:22] Production.INFO: 39.25 MB #Memory Used# [2025-03-06 21:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 18:00:06 [end_date_ymd] => 2025-03-06 21:00:06 [RateCDR] => 1 ) [2025-03-06 21:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 18:00:06' and `end` < '2025-03-06 21:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 21:00:18] Production.INFO: count ==1468 [2025-03-06 21:00:18] Production.ERROR: pbx CDR StartTime 2025-03-06 18:00:06 - End Time 2025-03-06 21:00:06 [2025-03-06 21:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 21:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623083', 'tblTempUsageDetail_20' ) start [2025-03-06 21:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623083', 'tblTempUsageDetail_20' ) end [2025-03-06 21:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623083', 'tblTempVendorCDR_20' ) start [2025-03-06 21:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623083', 'tblTempVendorCDR_20' ) end [2025-03-06 21:00:18] Production.INFO: ProcessCDR(1,14623083,1,1,2) [2025-03-06 21:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14623083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 21:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14623083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 21:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14623083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 21:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14623083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 21:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623083', 'tblTempUsageDetail_20' ) start [2025-03-06 21:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623083', 'tblTempUsageDetail_20' ) end [2025-03-06 21:00:23] Production.ERROR: pbx prc_insertCDR start [2025-03-06 21:00:23] Production.ERROR: pbx prc_insertCDR end [2025-03-06 21:00:23] Production.INFO: ==2274== Releasing lock... [2025-03-06 21:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 21:00:23] Production.INFO: 38.75 MB #Memory Used# [2025-03-06 21:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 18:01:06 [end_date_ymd] => 2025-03-06 21:01:06 [RateCDR] => 1 ) [2025-03-06 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-03-06 18:01:06' and `end` < '2025-03-06 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-03-06 21:01:18] Production.INFO: count ==1440 [2025-03-06 21:01:18] Production.ERROR: pbx CDR StartTime 2025-03-06 18:01:06 - End Time 2025-03-06 21:01:06 [2025-03-06 21:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 21:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623089', 'tblTempUsageDetail_20' ) start [2025-03-06 21:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623089', 'tblTempUsageDetail_20' ) end [2025-03-06 21:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623089', 'tblTempVendorCDR_20' ) start [2025-03-06 21:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623089', 'tblTempVendorCDR_20' ) end [2025-03-06 21:01:18] Production.INFO: ProcessCDR(1,14623089,1,1,2) [2025-03-06 21:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14623089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 21:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14623089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 21:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14623089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 21:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14623089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 21:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623089', 'tblTempUsageDetail_20' ) start [2025-03-06 21:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623089', 'tblTempUsageDetail_20' ) end [2025-03-06 21:01:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 21:01:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 21:01:22] Production.INFO: ==2358== Releasing lock... [2025-03-06 21:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 21:01:22] Production.INFO: 38.5 MB #Memory Used# [2025-03-06 21:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 18:02:05 [end_date_ymd] => 2025-03-06 21:02:05 [RateCDR] => 1 ) [2025-03-06 21:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 18:02:05' and `end` < '2025-03-06 21:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 21:02:18] Production.INFO: count ==1440 [2025-03-06 21:02:18] Production.ERROR: pbx CDR StartTime 2025-03-06 18:02:05 - End Time 2025-03-06 21:02:05 [2025-03-06 21:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 21:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623094', 'tblTempUsageDetail_20' ) start [2025-03-06 21:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623094', 'tblTempUsageDetail_20' ) end [2025-03-06 21:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623094', 'tblTempVendorCDR_20' ) start [2025-03-06 21:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623094', 'tblTempVendorCDR_20' ) end [2025-03-06 21:02:18] Production.INFO: ProcessCDR(1,14623094,1,1,2) [2025-03-06 21:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14623094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 21:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14623094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 21:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14623094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 21:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14623094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 21:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623094', 'tblTempUsageDetail_20' ) start [2025-03-06 21:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623094', 'tblTempUsageDetail_20' ) end [2025-03-06 21:02:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 21:02:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 21:02:21] Production.INFO: ==2433== Releasing lock... [2025-03-06 21:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 21:02:21] Production.INFO: 38.5 MB #Memory Used# [2025-03-06 21:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 18:03:06 [end_date_ymd] => 2025-03-06 21:03:06 [RateCDR] => 1 ) [2025-03-06 21:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 18:03:06' and `end` < '2025-03-06 21:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 21:03:18] Production.INFO: count ==1440 [2025-03-06 21:03:18] Production.ERROR: pbx CDR StartTime 2025-03-06 18:03:06 - End Time 2025-03-06 21:03:06 [2025-03-06 21:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 21:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623099', 'tblTempUsageDetail_20' ) start [2025-03-06 21:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623099', 'tblTempUsageDetail_20' ) end [2025-03-06 21:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623099', 'tblTempVendorCDR_20' ) start [2025-03-06 21:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623099', 'tblTempVendorCDR_20' ) end [2025-03-06 21:03:18] Production.INFO: ProcessCDR(1,14623099,1,1,2) [2025-03-06 21:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14623099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 21:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14623099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 21:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14623099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 21:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14623099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 21:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623099', 'tblTempUsageDetail_20' ) start [2025-03-06 21:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623099', 'tblTempUsageDetail_20' ) end [2025-03-06 21:03:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 21:03:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 21:03:22] Production.INFO: ==2504== Releasing lock... [2025-03-06 21:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 21:03:22] Production.INFO: 38.5 MB #Memory Used# [2025-03-06 21:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 18:04:06 [end_date_ymd] => 2025-03-06 21:04:06 [RateCDR] => 1 ) [2025-03-06 21: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-03-06 18:04:06' and `end` < '2025-03-06 21: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-03-06 21:04:18] Production.INFO: count ==1447 [2025-03-06 21:04:18] Production.ERROR: pbx CDR StartTime 2025-03-06 18:04:06 - End Time 2025-03-06 21:04:06 [2025-03-06 21:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 21:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623104', 'tblTempUsageDetail_20' ) start [2025-03-06 21:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623104', 'tblTempUsageDetail_20' ) end [2025-03-06 21:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623104', 'tblTempVendorCDR_20' ) start [2025-03-06 21:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623104', 'tblTempVendorCDR_20' ) end [2025-03-06 21:04:18] Production.INFO: ProcessCDR(1,14623104,1,1,2) [2025-03-06 21:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14623104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 21:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14623104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 21:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14623104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 21:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14623104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 21:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623104', 'tblTempUsageDetail_20' ) start [2025-03-06 21:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623104', 'tblTempUsageDetail_20' ) end [2025-03-06 21:04:24] Production.ERROR: pbx prc_insertCDR start [2025-03-06 21:04:24] Production.ERROR: pbx prc_insertCDR end [2025-03-06 21:04:24] Production.INFO: ==2576== Releasing lock... [2025-03-06 21:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 21:04:24] Production.INFO: 38.75 MB #Memory Used# [2025-03-06 21:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 18:05:05 [end_date_ymd] => 2025-03-06 21:05:05 [RateCDR] => 1 ) [2025-03-06 21:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 18:05:05' and `end` < '2025-03-06 21:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 21:05:17] Production.INFO: count ==1445 [2025-03-06 21:05:18] Production.ERROR: pbx CDR StartTime 2025-03-06 18:05:05 - End Time 2025-03-06 21:05:05 [2025-03-06 21:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623109', 'tblTempUsageDetail_20' ) start [2025-03-06 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623109', 'tblTempUsageDetail_20' ) end [2025-03-06 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623109', 'tblTempVendorCDR_20' ) start [2025-03-06 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623109', 'tblTempVendorCDR_20' ) end [2025-03-06 21:05:18] Production.INFO: ProcessCDR(1,14623109,1,1,2) [2025-03-06 21:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14623109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 21:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14623109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 21:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14623109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 21:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14623109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 21:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623109', 'tblTempUsageDetail_20' ) start [2025-03-06 21:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623109', 'tblTempUsageDetail_20' ) end [2025-03-06 21:05:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 21:05:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 21:05:21] Production.INFO: ==2648== Releasing lock... [2025-03-06 21:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 21:05:21] Production.INFO: 38.75 MB #Memory Used# [2025-03-06 21:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 18:06:06 [end_date_ymd] => 2025-03-06 21:06:06 [RateCDR] => 1 ) [2025-03-06 21: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-03-06 18:06:06' and `end` < '2025-03-06 21: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-03-06 21:06:18] Production.INFO: count ==1443 [2025-03-06 21:06:18] Production.ERROR: pbx CDR StartTime 2025-03-06 18:06:06 - End Time 2025-03-06 21:06:06 [2025-03-06 21:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 21:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623114', 'tblTempUsageDetail_20' ) start [2025-03-06 21:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623114', 'tblTempUsageDetail_20' ) end [2025-03-06 21:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623114', 'tblTempVendorCDR_20' ) start [2025-03-06 21:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623114', 'tblTempVendorCDR_20' ) end [2025-03-06 21:06:18] Production.INFO: ProcessCDR(1,14623114,1,1,2) [2025-03-06 21:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14623114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 21:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14623114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 21:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14623114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 21:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14623114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 21:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623114', 'tblTempUsageDetail_20' ) start [2025-03-06 21:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623114', 'tblTempUsageDetail_20' ) end [2025-03-06 21:06:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 21:06:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 21:06:21] Production.INFO: ==2723== Releasing lock... [2025-03-06 21:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 21:06:21] Production.INFO: 38.75 MB #Memory Used# [2025-03-06 21:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 18:07:05 [end_date_ymd] => 2025-03-06 21:07:05 [RateCDR] => 1 ) [2025-03-06 21:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 18:07:05' and `end` < '2025-03-06 21:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 21:07:17] Production.INFO: count ==1445 [2025-03-06 21:07:17] Production.ERROR: pbx CDR StartTime 2025-03-06 18:07:05 - End Time 2025-03-06 21:07:05 [2025-03-06 21:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 21:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623119', 'tblTempUsageDetail_20' ) start [2025-03-06 21:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623119', 'tblTempUsageDetail_20' ) end [2025-03-06 21:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623119', 'tblTempVendorCDR_20' ) start [2025-03-06 21:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623119', 'tblTempVendorCDR_20' ) end [2025-03-06 21:07:17] Production.INFO: ProcessCDR(1,14623119,1,1,2) [2025-03-06 21:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14623119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 21:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14623119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 21:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14623119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 21:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14623119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 21:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623119', 'tblTempUsageDetail_20' ) start [2025-03-06 21:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623119', 'tblTempUsageDetail_20' ) end [2025-03-06 21:07:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 21:07:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 21:07:21] Production.INFO: ==2799== Releasing lock... [2025-03-06 21:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 21:07:21] Production.INFO: 38.75 MB #Memory Used# [2025-03-06 21:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 18:08:06 [end_date_ymd] => 2025-03-06 21:08:06 [RateCDR] => 1 ) [2025-03-06 21: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-03-06 18:08:06' and `end` < '2025-03-06 21: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-03-06 21:08:18] Production.INFO: count ==1444 [2025-03-06 21:08:18] Production.ERROR: pbx CDR StartTime 2025-03-06 18:08:06 - End Time 2025-03-06 21:08:06 [2025-03-06 21:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 21:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623124', 'tblTempUsageDetail_20' ) start [2025-03-06 21:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623124', 'tblTempUsageDetail_20' ) end [2025-03-06 21:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623124', 'tblTempVendorCDR_20' ) start [2025-03-06 21:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623124', 'tblTempVendorCDR_20' ) end [2025-03-06 21:08:18] Production.INFO: ProcessCDR(1,14623124,1,1,2) [2025-03-06 21:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14623124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 21:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14623124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 21:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14623124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 21:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14623124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 21:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623124', 'tblTempUsageDetail_20' ) start [2025-03-06 21:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623124', 'tblTempUsageDetail_20' ) end [2025-03-06 21:08:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 21:08:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 21:08:22] Production.INFO: ==2873== Releasing lock... [2025-03-06 21:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 21:08:22] Production.INFO: 38.5 MB #Memory Used# [2025-03-06 21:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 18:09:05 [end_date_ymd] => 2025-03-06 21:09:05 [RateCDR] => 1 ) [2025-03-06 21:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 18:09:05' and `end` < '2025-03-06 21:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 21:09:17] Production.INFO: count ==1443 [2025-03-06 21:09:17] Production.ERROR: pbx CDR StartTime 2025-03-06 18:09:05 - End Time 2025-03-06 21:09:05 [2025-03-06 21:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 21:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623129', 'tblTempUsageDetail_20' ) start [2025-03-06 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623129', 'tblTempUsageDetail_20' ) end [2025-03-06 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623129', 'tblTempVendorCDR_20' ) start [2025-03-06 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623129', 'tblTempVendorCDR_20' ) end [2025-03-06 21:09:18] Production.INFO: ProcessCDR(1,14623129,1,1,2) [2025-03-06 21:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14623129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 21:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14623129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 21:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14623129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 21:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14623129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 21:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623129', 'tblTempUsageDetail_20' ) start [2025-03-06 21:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623129', 'tblTempUsageDetail_20' ) end [2025-03-06 21:09:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 21:09:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 21:09:22] Production.INFO: ==2984== Releasing lock... [2025-03-06 21:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 21:09:22] Production.INFO: 38.75 MB #Memory Used# [2025-03-06 21:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 18:10:06 [end_date_ymd] => 2025-03-06 21:10:06 [RateCDR] => 1 ) [2025-03-06 21:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 18:10:06' and `end` < '2025-03-06 21:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 21:10:18] Production.INFO: count ==1442 [2025-03-06 21:10:18] Production.ERROR: pbx CDR StartTime 2025-03-06 18:10:06 - End Time 2025-03-06 21:10:06 [2025-03-06 21:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 21:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623135', 'tblTempUsageDetail_20' ) start [2025-03-06 21:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623135', 'tblTempUsageDetail_20' ) end [2025-03-06 21:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623135', 'tblTempVendorCDR_20' ) start [2025-03-06 21:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623135', 'tblTempVendorCDR_20' ) end [2025-03-06 21:10:18] Production.INFO: ProcessCDR(1,14623135,1,1,2) [2025-03-06 21:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14623135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 21:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14623135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 21:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14623135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 21:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14623135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 21:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623135', 'tblTempUsageDetail_20' ) start [2025-03-06 21:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623135', 'tblTempUsageDetail_20' ) end [2025-03-06 21:10:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 21:10:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 21:10:22] Production.INFO: ==3059== Releasing lock... [2025-03-06 21:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 21:10:22] Production.INFO: 38.75 MB #Memory Used# [2025-03-06 21:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 18:11:06 [end_date_ymd] => 2025-03-06 21:11:06 [RateCDR] => 1 ) [2025-03-06 21: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-03-06 18:11:06' and `end` < '2025-03-06 21: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-03-06 21:11:18] Production.INFO: count ==1444 [2025-03-06 21:11:18] Production.ERROR: pbx CDR StartTime 2025-03-06 18:11:06 - End Time 2025-03-06 21:11:06 [2025-03-06 21:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 21:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623140', 'tblTempUsageDetail_20' ) start [2025-03-06 21:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623140', 'tblTempUsageDetail_20' ) end [2025-03-06 21:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623140', 'tblTempVendorCDR_20' ) start [2025-03-06 21:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623140', 'tblTempVendorCDR_20' ) end [2025-03-06 21:11:18] Production.INFO: ProcessCDR(1,14623140,1,1,2) [2025-03-06 21:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14623140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 21:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14623140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 21:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14623140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 21:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14623140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 21:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623140', 'tblTempUsageDetail_20' ) start [2025-03-06 21:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623140', 'tblTempUsageDetail_20' ) end [2025-03-06 21:11:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 21:11:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 21:11:22] Production.INFO: ==3134== Releasing lock... [2025-03-06 21:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 21:11:22] Production.INFO: 38.75 MB #Memory Used# [2025-03-06 21:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 18:12:05 [end_date_ymd] => 2025-03-06 21:12:05 [RateCDR] => 1 ) [2025-03-06 21:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 18:12:05' and `end` < '2025-03-06 21:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 21:12:17] Production.INFO: count ==1446 [2025-03-06 21:12:18] Production.ERROR: pbx CDR StartTime 2025-03-06 18:12:05 - End Time 2025-03-06 21:12:05 [2025-03-06 21:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 21:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623145', 'tblTempUsageDetail_20' ) start [2025-03-06 21:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623145', 'tblTempUsageDetail_20' ) end [2025-03-06 21:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623145', 'tblTempVendorCDR_20' ) start [2025-03-06 21:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623145', 'tblTempVendorCDR_20' ) end [2025-03-06 21:12:18] Production.INFO: ProcessCDR(1,14623145,1,1,2) [2025-03-06 21:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14623145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 21:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14623145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 21:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14623145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 21:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14623145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 21:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623145', 'tblTempUsageDetail_20' ) start [2025-03-06 21:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623145', 'tblTempUsageDetail_20' ) end [2025-03-06 21:12:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 21:12:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 21:12:21] Production.INFO: ==3205== Releasing lock... [2025-03-06 21:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 21:12:21] Production.INFO: 39 MB #Memory Used# [2025-03-06 21:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 18:13:05 [end_date_ymd] => 2025-03-06 21:13:05 [RateCDR] => 1 ) [2025-03-06 21:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 18:13:05' and `end` < '2025-03-06 21:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 21:13:17] Production.INFO: count ==1445 [2025-03-06 21:13:17] Production.ERROR: pbx CDR StartTime 2025-03-06 18:13:05 - End Time 2025-03-06 21:13:05 [2025-03-06 21:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 21:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623150', 'tblTempUsageDetail_20' ) start [2025-03-06 21:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623150', 'tblTempUsageDetail_20' ) end [2025-03-06 21:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623150', 'tblTempVendorCDR_20' ) start [2025-03-06 21:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623150', 'tblTempVendorCDR_20' ) end [2025-03-06 21:13:17] Production.INFO: ProcessCDR(1,14623150,1,1,2) [2025-03-06 21:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14623150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 21:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14623150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 21:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14623150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 21:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14623150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 21:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623150', 'tblTempUsageDetail_20' ) start [2025-03-06 21:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623150', 'tblTempUsageDetail_20' ) end [2025-03-06 21:13:20] Production.ERROR: pbx prc_insertCDR start [2025-03-06 21:13:20] Production.ERROR: pbx prc_insertCDR end [2025-03-06 21:13:20] Production.INFO: ==3273== Releasing lock... [2025-03-06 21:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 21:13:20] Production.INFO: 38.75 MB #Memory Used# [2025-03-06 21:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 18:14:06 [end_date_ymd] => 2025-03-06 21:14:06 [RateCDR] => 1 ) [2025-03-06 21:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 18:14:06' and `end` < '2025-03-06 21:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 21:14:18] Production.INFO: count ==1431 [2025-03-06 21:14:18] Production.ERROR: pbx CDR StartTime 2025-03-06 18:14:06 - End Time 2025-03-06 21:14:06 [2025-03-06 21:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 21:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623155', 'tblTempUsageDetail_20' ) start [2025-03-06 21:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623155', 'tblTempUsageDetail_20' ) end [2025-03-06 21:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623155', 'tblTempVendorCDR_20' ) start [2025-03-06 21:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623155', 'tblTempVendorCDR_20' ) end [2025-03-06 21:14:18] Production.INFO: ProcessCDR(1,14623155,1,1,2) [2025-03-06 21:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14623155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 21:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14623155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 21:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14623155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 21:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14623155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 21:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623155', 'tblTempUsageDetail_20' ) start [2025-03-06 21:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623155', 'tblTempUsageDetail_20' ) end [2025-03-06 21:14:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 21:14:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 21:14:21] Production.INFO: ==3347== Releasing lock... [2025-03-06 21:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 21:14:21] Production.INFO: 39 MB #Memory Used# [2025-03-06 21:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 18:15:05 [end_date_ymd] => 2025-03-06 21:15:05 [RateCDR] => 1 ) [2025-03-06 21:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 18:15:05' and `end` < '2025-03-06 21:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 21:15:17] Production.INFO: count ==1428 [2025-03-06 21:15:18] Production.ERROR: pbx CDR StartTime 2025-03-06 18:15:05 - End Time 2025-03-06 21:15:05 [2025-03-06 21:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 21:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623160', 'tblTempUsageDetail_20' ) start [2025-03-06 21:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623160', 'tblTempUsageDetail_20' ) end [2025-03-06 21:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623160', 'tblTempVendorCDR_20' ) start [2025-03-06 21:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623160', 'tblTempVendorCDR_20' ) end [2025-03-06 21:15:18] Production.INFO: ProcessCDR(1,14623160,1,1,2) [2025-03-06 21:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14623160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 21:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14623160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 21:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14623160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 21:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14623160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 21:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623160', 'tblTempUsageDetail_20' ) start [2025-03-06 21:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623160', 'tblTempUsageDetail_20' ) end [2025-03-06 21:15:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 21:15:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 21:15:21] Production.INFO: ==3417== Releasing lock... [2025-03-06 21:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 21:15:21] Production.INFO: 38.5 MB #Memory Used# [2025-03-06 21:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 18:16:06 [end_date_ymd] => 2025-03-06 21:16:06 [RateCDR] => 1 ) [2025-03-06 21: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-03-06 18:16:06' and `end` < '2025-03-06 21: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-03-06 21:16:18] Production.INFO: count ==1408 [2025-03-06 21:16:18] Production.ERROR: pbx CDR StartTime 2025-03-06 18:16:06 - End Time 2025-03-06 21:16:06 [2025-03-06 21:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 21:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623165', 'tblTempUsageDetail_20' ) start [2025-03-06 21:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623165', 'tblTempUsageDetail_20' ) end [2025-03-06 21:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623165', 'tblTempVendorCDR_20' ) start [2025-03-06 21:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623165', 'tblTempVendorCDR_20' ) end [2025-03-06 21:16:18] Production.INFO: ProcessCDR(1,14623165,1,1,2) [2025-03-06 21:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14623165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 21:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14623165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 21:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14623165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 21:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14623165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 21:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623165', 'tblTempUsageDetail_20' ) start [2025-03-06 21:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623165', 'tblTempUsageDetail_20' ) end [2025-03-06 21:16:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 21:16:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 21:16:22] Production.INFO: ==3489== Releasing lock... [2025-03-06 21:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 21:16:22] Production.INFO: 38.25 MB #Memory Used# [2025-03-06 21:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 18:17:05 [end_date_ymd] => 2025-03-06 21:17:05 [RateCDR] => 1 ) [2025-03-06 21:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 18:17:05' and `end` < '2025-03-06 21:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 21:17:17] Production.INFO: count ==1406 [2025-03-06 21:17:17] Production.ERROR: pbx CDR StartTime 2025-03-06 18:17:05 - End Time 2025-03-06 21:17:05 [2025-03-06 21:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 21:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623170', 'tblTempUsageDetail_20' ) start [2025-03-06 21:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623170', 'tblTempUsageDetail_20' ) end [2025-03-06 21:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623170', 'tblTempVendorCDR_20' ) start [2025-03-06 21:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623170', 'tblTempVendorCDR_20' ) end [2025-03-06 21:17:17] Production.INFO: ProcessCDR(1,14623170,1,1,2) [2025-03-06 21:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14623170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 21:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14623170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 21:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14623170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 21:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14623170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 21:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623170', 'tblTempUsageDetail_20' ) start [2025-03-06 21:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623170', 'tblTempUsageDetail_20' ) end [2025-03-06 21:17:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 21:17:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 21:17:21] Production.INFO: ==3558== Releasing lock... [2025-03-06 21:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 21:17:21] Production.INFO: 38.25 MB #Memory Used# [2025-03-06 21:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 18:18:05 [end_date_ymd] => 2025-03-06 21:18:05 [RateCDR] => 1 ) [2025-03-06 21:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 18:18:05' and `end` < '2025-03-06 21:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 21:18:18] Production.INFO: count ==1397 [2025-03-06 21:18:18] Production.ERROR: pbx CDR StartTime 2025-03-06 18:18:05 - End Time 2025-03-06 21:18:05 [2025-03-06 21:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623175', 'tblTempUsageDetail_20' ) start [2025-03-06 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623175', 'tblTempUsageDetail_20' ) end [2025-03-06 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623175', 'tblTempVendorCDR_20' ) start [2025-03-06 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623175', 'tblTempVendorCDR_20' ) end [2025-03-06 21:18:18] Production.INFO: ProcessCDR(1,14623175,1,1,2) [2025-03-06 21:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14623175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 21:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14623175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 21:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14623175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 21:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14623175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 21:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623175', 'tblTempUsageDetail_20' ) start [2025-03-06 21:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623175', 'tblTempUsageDetail_20' ) end [2025-03-06 21:18:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 21:18:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 21:18:21] Production.INFO: ==3631== Releasing lock... [2025-03-06 21:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 21:18:21] Production.INFO: 38.25 MB #Memory Used# [2025-03-06 21:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 18:19:04 [end_date_ymd] => 2025-03-06 21:19:04 [RateCDR] => 1 ) [2025-03-06 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-03-06 18:19:04' and `end` < '2025-03-06 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-03-06 21:19:17] Production.INFO: count ==1401 [2025-03-06 21:19:17] Production.ERROR: pbx CDR StartTime 2025-03-06 18:19:04 - End Time 2025-03-06 21:19:04 [2025-03-06 21:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 21:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623180', 'tblTempUsageDetail_20' ) start [2025-03-06 21:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623180', 'tblTempUsageDetail_20' ) end [2025-03-06 21:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623180', 'tblTempVendorCDR_20' ) start [2025-03-06 21:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623180', 'tblTempVendorCDR_20' ) end [2025-03-06 21:19:17] Production.INFO: ProcessCDR(1,14623180,1,1,2) [2025-03-06 21:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14623180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 21:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14623180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 21:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14623180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 21:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14623180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 21:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623180', 'tblTempUsageDetail_20' ) start [2025-03-06 21:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623180', 'tblTempUsageDetail_20' ) end [2025-03-06 21:19:20] Production.ERROR: pbx prc_insertCDR start [2025-03-06 21:19:20] Production.ERROR: pbx prc_insertCDR end [2025-03-06 21:19:20] Production.INFO: ==3709== Releasing lock... [2025-03-06 21:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 21:19:20] Production.INFO: 38.25 MB #Memory Used# [2025-03-06 21:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 18:20:06 [end_date_ymd] => 2025-03-06 21:20:06 [RateCDR] => 1 ) [2025-03-06 21:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 18:20:06' and `end` < '2025-03-06 21:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 21:20:18] Production.INFO: count ==1403 [2025-03-06 21:20:19] Production.ERROR: pbx CDR StartTime 2025-03-06 18:20:06 - End Time 2025-03-06 21:20:06 [2025-03-06 21:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 21:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623186', 'tblTempUsageDetail_20' ) start [2025-03-06 21:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623186', 'tblTempUsageDetail_20' ) end [2025-03-06 21:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623186', 'tblTempVendorCDR_20' ) start [2025-03-06 21:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623186', 'tblTempVendorCDR_20' ) end [2025-03-06 21:20:19] Production.INFO: ProcessCDR(1,14623186,1,1,2) [2025-03-06 21:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14623186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 21:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14623186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 21:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14623186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 21:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14623186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 21:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623186', 'tblTempUsageDetail_20' ) start [2025-03-06 21:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623186', 'tblTempUsageDetail_20' ) end [2025-03-06 21:20:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 21:20:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 21:20:22] Production.INFO: ==3781== Releasing lock... [2025-03-06 21:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 21:20:22] Production.INFO: 38 MB #Memory Used# [2025-03-06 21:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 18:21:06 [end_date_ymd] => 2025-03-06 21:21:06 [RateCDR] => 1 ) [2025-03-06 21: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-03-06 18:21:06' and `end` < '2025-03-06 21: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-03-06 21:21:18] Production.INFO: count ==1397 [2025-03-06 21:21:18] Production.ERROR: pbx CDR StartTime 2025-03-06 18:21:06 - End Time 2025-03-06 21:21:06 [2025-03-06 21:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 21:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623191', 'tblTempUsageDetail_20' ) start [2025-03-06 21:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623191', 'tblTempUsageDetail_20' ) end [2025-03-06 21:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623191', 'tblTempVendorCDR_20' ) start [2025-03-06 21:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623191', 'tblTempVendorCDR_20' ) end [2025-03-06 21:21:18] Production.INFO: ProcessCDR(1,14623191,1,1,2) [2025-03-06 21:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14623191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 21:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14623191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 21:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14623191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 21:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14623191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 21:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623191', 'tblTempUsageDetail_20' ) start [2025-03-06 21:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623191', 'tblTempUsageDetail_20' ) end [2025-03-06 21:21:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 21:21:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 21:21:22] Production.INFO: ==3857== Releasing lock... [2025-03-06 21:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 21:21:22] Production.INFO: 38 MB #Memory Used# [2025-03-06 21:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 18:22:05 [end_date_ymd] => 2025-03-06 21:22:05 [RateCDR] => 1 ) [2025-03-06 21:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 18:22:05' and `end` < '2025-03-06 21:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 21:22:17] Production.INFO: count ==1387 [2025-03-06 21:22:18] Production.ERROR: pbx CDR StartTime 2025-03-06 18:22:05 - End Time 2025-03-06 21:22:05 [2025-03-06 21:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623196', 'tblTempUsageDetail_20' ) start [2025-03-06 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623196', 'tblTempUsageDetail_20' ) end [2025-03-06 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623196', 'tblTempVendorCDR_20' ) start [2025-03-06 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623196', 'tblTempVendorCDR_20' ) end [2025-03-06 21:22:18] Production.INFO: ProcessCDR(1,14623196,1,1,2) [2025-03-06 21:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14623196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 21:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14623196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 21:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14623196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 21:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14623196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 21:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623196', 'tblTempUsageDetail_20' ) start [2025-03-06 21:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623196', 'tblTempUsageDetail_20' ) end [2025-03-06 21:22:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 21:22:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 21:22:21] Production.INFO: ==3932== Releasing lock... [2025-03-06 21:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 21:22:21] Production.INFO: 38 MB #Memory Used# [2025-03-06 21:23:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 18:23:04 [end_date_ymd] => 2025-03-06 21:23:04 [RateCDR] => 1 ) [2025-03-06 21: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-03-06 18:23:04' and `end` < '2025-03-06 21: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-03-06 21:23:17] Production.INFO: count ==1387 [2025-03-06 21:23:17] Production.ERROR: pbx CDR StartTime 2025-03-06 18:23:04 - End Time 2025-03-06 21:23:04 [2025-03-06 21:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 21:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623201', 'tblTempUsageDetail_20' ) start [2025-03-06 21:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623201', 'tblTempUsageDetail_20' ) end [2025-03-06 21:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623201', 'tblTempVendorCDR_20' ) start [2025-03-06 21:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623201', 'tblTempVendorCDR_20' ) end [2025-03-06 21:23:17] Production.INFO: ProcessCDR(1,14623201,1,1,2) [2025-03-06 21:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14623201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 21:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14623201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 21:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14623201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 21:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14623201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 21:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623201', 'tblTempUsageDetail_20' ) start [2025-03-06 21:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623201', 'tblTempUsageDetail_20' ) end [2025-03-06 21:23:20] Production.ERROR: pbx prc_insertCDR start [2025-03-06 21:23:20] Production.ERROR: pbx prc_insertCDR end [2025-03-06 21:23:20] Production.INFO: ==4010== Releasing lock... [2025-03-06 21:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 21:23:20] Production.INFO: 38 MB #Memory Used# [2025-03-06 21:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 18:24:05 [end_date_ymd] => 2025-03-06 21:24:05 [RateCDR] => 1 ) [2025-03-06 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-03-06 18:24:05' and `end` < '2025-03-06 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-03-06 21:24:18] Production.INFO: count ==1386 [2025-03-06 21:24:18] Production.ERROR: pbx CDR StartTime 2025-03-06 18:24:05 - End Time 2025-03-06 21:24:05 [2025-03-06 21:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 21:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623206', 'tblTempUsageDetail_20' ) start [2025-03-06 21:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623206', 'tblTempUsageDetail_20' ) end [2025-03-06 21:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623206', 'tblTempVendorCDR_20' ) start [2025-03-06 21:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623206', 'tblTempVendorCDR_20' ) end [2025-03-06 21:24:18] Production.INFO: ProcessCDR(1,14623206,1,1,2) [2025-03-06 21:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14623206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 21:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14623206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 21:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14623206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 21:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14623206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 21:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623206', 'tblTempUsageDetail_20' ) start [2025-03-06 21:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623206', 'tblTempUsageDetail_20' ) end [2025-03-06 21:24:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 21:24:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 21:24:21] Production.INFO: ==4082== Releasing lock... [2025-03-06 21:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 21:24:21] Production.INFO: 38 MB #Memory Used# [2025-03-06 21:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 18:25:06 [end_date_ymd] => 2025-03-06 21:25:06 [RateCDR] => 1 ) [2025-03-06 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-03-06 18:25:06' and `end` < '2025-03-06 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-03-06 21:25:18] Production.INFO: count ==1371 [2025-03-06 21:25:18] Production.ERROR: pbx CDR StartTime 2025-03-06 18:25:06 - End Time 2025-03-06 21:25:06 [2025-03-06 21:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623211', 'tblTempUsageDetail_20' ) start [2025-03-06 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623211', 'tblTempUsageDetail_20' ) end [2025-03-06 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623211', 'tblTempVendorCDR_20' ) start [2025-03-06 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623211', 'tblTempVendorCDR_20' ) end [2025-03-06 21:25:18] Production.INFO: ProcessCDR(1,14623211,1,1,2) [2025-03-06 21:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14623211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 21:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14623211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 21:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14623211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 21:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14623211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 21:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623211', 'tblTempUsageDetail_20' ) start [2025-03-06 21:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623211', 'tblTempUsageDetail_20' ) end [2025-03-06 21:25:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 21:25:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 21:25:21] Production.INFO: ==4194== Releasing lock... [2025-03-06 21:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 21:25:21] Production.INFO: 37.75 MB #Memory Used# [2025-03-06 21:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 18:26:05 [end_date_ymd] => 2025-03-06 21:26:05 [RateCDR] => 1 ) [2025-03-06 21:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 18:26:05' and `end` < '2025-03-06 21:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 21:26:18] Production.INFO: count ==1371 [2025-03-06 21:26:18] Production.ERROR: pbx CDR StartTime 2025-03-06 18:26:05 - End Time 2025-03-06 21:26:05 [2025-03-06 21:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 21:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623216', 'tblTempUsageDetail_20' ) start [2025-03-06 21:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623216', 'tblTempUsageDetail_20' ) end [2025-03-06 21:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623216', 'tblTempVendorCDR_20' ) start [2025-03-06 21:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623216', 'tblTempVendorCDR_20' ) end [2025-03-06 21:26:18] Production.INFO: ProcessCDR(1,14623216,1,1,2) [2025-03-06 21:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14623216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 21:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14623216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 21:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14623216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 21:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14623216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 21:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623216', 'tblTempUsageDetail_20' ) start [2025-03-06 21:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623216', 'tblTempUsageDetail_20' ) end [2025-03-06 21:26:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 21:26:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 21:26:21] Production.INFO: ==4267== Releasing lock... [2025-03-06 21:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 21:26:21] Production.INFO: 37.75 MB #Memory Used# [2025-03-06 21:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 18:27:05 [end_date_ymd] => 2025-03-06 21:27:05 [RateCDR] => 1 ) [2025-03-06 21:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 18:27:05' and `end` < '2025-03-06 21:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 21:27:18] Production.INFO: count ==1370 [2025-03-06 21:27:18] Production.ERROR: pbx CDR StartTime 2025-03-06 18:27:05 - End Time 2025-03-06 21:27:05 [2025-03-06 21:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623221', 'tblTempUsageDetail_20' ) start [2025-03-06 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623221', 'tblTempUsageDetail_20' ) end [2025-03-06 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623221', 'tblTempVendorCDR_20' ) start [2025-03-06 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623221', 'tblTempVendorCDR_20' ) end [2025-03-06 21:27:18] Production.INFO: ProcessCDR(1,14623221,1,1,2) [2025-03-06 21:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14623221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 21:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14623221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 21:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14623221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 21:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14623221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 21:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623221', 'tblTempUsageDetail_20' ) start [2025-03-06 21:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623221', 'tblTempUsageDetail_20' ) end [2025-03-06 21:27:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 21:27:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 21:27:21] Production.INFO: ==4339== Releasing lock... [2025-03-06 21:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 21:27:21] Production.INFO: 37.75 MB #Memory Used# [2025-03-06 21:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 18:28:06 [end_date_ymd] => 2025-03-06 21:28:06 [RateCDR] => 1 ) [2025-03-06 21:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 18:28:06' and `end` < '2025-03-06 21:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 21:28:18] Production.INFO: count ==1371 [2025-03-06 21:28:18] Production.ERROR: pbx CDR StartTime 2025-03-06 18:28:06 - End Time 2025-03-06 21:28:06 [2025-03-06 21:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 21:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623226', 'tblTempUsageDetail_20' ) start [2025-03-06 21:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623226', 'tblTempUsageDetail_20' ) end [2025-03-06 21:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623226', 'tblTempVendorCDR_20' ) start [2025-03-06 21:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623226', 'tblTempVendorCDR_20' ) end [2025-03-06 21:28:18] Production.INFO: ProcessCDR(1,14623226,1,1,2) [2025-03-06 21:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14623226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 21:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14623226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 21:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14623226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 21:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14623226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 21:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623226', 'tblTempUsageDetail_20' ) start [2025-03-06 21:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623226', 'tblTempUsageDetail_20' ) end [2025-03-06 21:28:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 21:28:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 21:28:21] Production.INFO: ==4410== Releasing lock... [2025-03-06 21:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 21:28:21] Production.INFO: 37.75 MB #Memory Used# [2025-03-06 21:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 18:29:06 [end_date_ymd] => 2025-03-06 21:29:06 [RateCDR] => 1 ) [2025-03-06 21:29:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 18:29:06' and `end` < '2025-03-06 21:29:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 21:29:18] Production.INFO: count ==1367 [2025-03-06 21:29:18] Production.ERROR: pbx CDR StartTime 2025-03-06 18:29:06 - End Time 2025-03-06 21:29:06 [2025-03-06 21:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 21:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623231', 'tblTempUsageDetail_20' ) start [2025-03-06 21:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623231', 'tblTempUsageDetail_20' ) end [2025-03-06 21:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623231', 'tblTempVendorCDR_20' ) start [2025-03-06 21:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623231', 'tblTempVendorCDR_20' ) end [2025-03-06 21:29:18] Production.INFO: ProcessCDR(1,14623231,1,1,2) [2025-03-06 21:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14623231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 21:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14623231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 21:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14623231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 21:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14623231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 21:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623231', 'tblTempUsageDetail_20' ) start [2025-03-06 21:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623231', 'tblTempUsageDetail_20' ) end [2025-03-06 21:29:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 21:29:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 21:29:21] Production.INFO: ==4482== Releasing lock... [2025-03-06 21:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 21:29:21] Production.INFO: 37.75 MB #Memory Used# [2025-03-06 21:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 18:30:06 [end_date_ymd] => 2025-03-06 21:30:06 [RateCDR] => 1 ) [2025-03-06 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-03-06 18:30:06' and `end` < '2025-03-06 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-03-06 21:30:18] Production.INFO: count ==1360 [2025-03-06 21:30:18] Production.ERROR: pbx CDR StartTime 2025-03-06 18:30:06 - End Time 2025-03-06 21:30:06 [2025-03-06 21:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 21:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623236', 'tblTempUsageDetail_20' ) start [2025-03-06 21:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623236', 'tblTempUsageDetail_20' ) end [2025-03-06 21:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623236', 'tblTempVendorCDR_20' ) start [2025-03-06 21:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623236', 'tblTempVendorCDR_20' ) end [2025-03-06 21:30:18] Production.INFO: ProcessCDR(1,14623236,1,1,2) [2025-03-06 21:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14623236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 21:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14623236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 21:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14623236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 21:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14623236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 21:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623236', 'tblTempUsageDetail_20' ) start [2025-03-06 21:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623236', 'tblTempUsageDetail_20' ) end [2025-03-06 21:30:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 21:30:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 21:30:22] Production.INFO: ==4556== Releasing lock... [2025-03-06 21:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 21:30:22] Production.INFO: 37.75 MB #Memory Used# [2025-03-06 21:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 18:31:06 [end_date_ymd] => 2025-03-06 21:31:06 [RateCDR] => 1 ) [2025-03-06 21:31:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 18:31:06' and `end` < '2025-03-06 21:31:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 21:31:18] Production.INFO: count ==1296 [2025-03-06 21:31:18] Production.ERROR: pbx CDR StartTime 2025-03-06 18:31:06 - End Time 2025-03-06 21:31:06 [2025-03-06 21:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623242', 'tblTempUsageDetail_20' ) start [2025-03-06 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623242', 'tblTempUsageDetail_20' ) end [2025-03-06 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623242', 'tblTempVendorCDR_20' ) start [2025-03-06 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623242', 'tblTempVendorCDR_20' ) end [2025-03-06 21:31:18] Production.INFO: ProcessCDR(1,14623242,1,1,2) [2025-03-06 21:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14623242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 21:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14623242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 21:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14623242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 21:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14623242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 21:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623242', 'tblTempUsageDetail_20' ) start [2025-03-06 21:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623242', 'tblTempUsageDetail_20' ) end [2025-03-06 21:31:23] Production.ERROR: pbx prc_insertCDR start [2025-03-06 21:31:23] Production.ERROR: pbx prc_insertCDR end [2025-03-06 21:31:23] Production.INFO: ==4639== Releasing lock... [2025-03-06 21:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 21:31:23] Production.INFO: 37.25 MB #Memory Used# [2025-03-06 21:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 18:32:05 [end_date_ymd] => 2025-03-06 21:32:05 [RateCDR] => 1 ) [2025-03-06 21:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 18:32:05' and `end` < '2025-03-06 21:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 21:32:17] Production.INFO: count ==1295 [2025-03-06 21:32:17] Production.ERROR: pbx CDR StartTime 2025-03-06 18:32:05 - End Time 2025-03-06 21:32:05 [2025-03-06 21:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 21:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623247', 'tblTempUsageDetail_20' ) start [2025-03-06 21:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623247', 'tblTempUsageDetail_20' ) end [2025-03-06 21:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623247', 'tblTempVendorCDR_20' ) start [2025-03-06 21:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623247', 'tblTempVendorCDR_20' ) end [2025-03-06 21:32:17] Production.INFO: ProcessCDR(1,14623247,1,1,2) [2025-03-06 21:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14623247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 21:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14623247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 21:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14623247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 21:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14623247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 21:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623247', 'tblTempUsageDetail_20' ) start [2025-03-06 21:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623247', 'tblTempUsageDetail_20' ) end [2025-03-06 21:32:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 21:32:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 21:32:21] Production.INFO: ==4710== Releasing lock... [2025-03-06 21:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 21:32:21] Production.INFO: 37.25 MB #Memory Used# [2025-03-06 21:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 18:33:06 [end_date_ymd] => 2025-03-06 21:33:06 [RateCDR] => 1 ) [2025-03-06 21: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-03-06 18:33:06' and `end` < '2025-03-06 21: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-03-06 21:33:18] Production.INFO: count ==1292 [2025-03-06 21:33:18] Production.ERROR: pbx CDR StartTime 2025-03-06 18:33:06 - End Time 2025-03-06 21:33:06 [2025-03-06 21:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 21:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623252', 'tblTempUsageDetail_20' ) start [2025-03-06 21:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623252', 'tblTempUsageDetail_20' ) end [2025-03-06 21:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623252', 'tblTempVendorCDR_20' ) start [2025-03-06 21:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623252', 'tblTempVendorCDR_20' ) end [2025-03-06 21:33:18] Production.INFO: ProcessCDR(1,14623252,1,1,2) [2025-03-06 21:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14623252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 21:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14623252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 21:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14623252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 21:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14623252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 21:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623252', 'tblTempUsageDetail_20' ) start [2025-03-06 21:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623252', 'tblTempUsageDetail_20' ) end [2025-03-06 21:33:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 21:33:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 21:33:21] Production.INFO: ==4780== Releasing lock... [2025-03-06 21:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 21:33:21] Production.INFO: 37.25 MB #Memory Used# [2025-03-06 21:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 18:34:05 [end_date_ymd] => 2025-03-06 21:34:05 [RateCDR] => 1 ) [2025-03-06 21:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 18:34:05' and `end` < '2025-03-06 21:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 21:34:17] Production.INFO: count ==1289 [2025-03-06 21:34:17] Production.ERROR: pbx CDR StartTime 2025-03-06 18:34:05 - End Time 2025-03-06 21:34:05 [2025-03-06 21:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 21:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623257', 'tblTempUsageDetail_20' ) start [2025-03-06 21:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623257', 'tblTempUsageDetail_20' ) end [2025-03-06 21:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623257', 'tblTempVendorCDR_20' ) start [2025-03-06 21:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623257', 'tblTempVendorCDR_20' ) end [2025-03-06 21:34:17] Production.INFO: ProcessCDR(1,14623257,1,1,2) [2025-03-06 21:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14623257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 21:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14623257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 21:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14623257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 21:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14623257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 21:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623257', 'tblTempUsageDetail_20' ) start [2025-03-06 21:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623257', 'tblTempUsageDetail_20' ) end [2025-03-06 21:34:20] Production.ERROR: pbx prc_insertCDR start [2025-03-06 21:34:20] Production.ERROR: pbx prc_insertCDR end [2025-03-06 21:34:20] Production.INFO: ==4850== Releasing lock... [2025-03-06 21:34:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 21:34:20] Production.INFO: 37.25 MB #Memory Used# [2025-03-06 21:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 18:35:06 [end_date_ymd] => 2025-03-06 21:35:06 [RateCDR] => 1 ) [2025-03-06 21: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-03-06 18:35:06' and `end` < '2025-03-06 21: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-03-06 21:35:18] Production.INFO: count ==1294 [2025-03-06 21:35:18] Production.ERROR: pbx CDR StartTime 2025-03-06 18:35:06 - End Time 2025-03-06 21:35:06 [2025-03-06 21:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623262', 'tblTempUsageDetail_20' ) start [2025-03-06 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623262', 'tblTempUsageDetail_20' ) end [2025-03-06 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623262', 'tblTempVendorCDR_20' ) start [2025-03-06 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623262', 'tblTempVendorCDR_20' ) end [2025-03-06 21:35:18] Production.INFO: ProcessCDR(1,14623262,1,1,2) [2025-03-06 21:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14623262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 21:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14623262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 21:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14623262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 21:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14623262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 21:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623262', 'tblTempUsageDetail_20' ) start [2025-03-06 21:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623262', 'tblTempUsageDetail_20' ) end [2025-03-06 21:35:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 21:35:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 21:35:21] Production.INFO: ==4926== Releasing lock... [2025-03-06 21:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 21:35:21] Production.INFO: 37.25 MB #Memory Used# [2025-03-06 21:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 18:36:05 [end_date_ymd] => 2025-03-06 21:36:05 [RateCDR] => 1 ) [2025-03-06 21: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-03-06 18:36:05' and `end` < '2025-03-06 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-03-06 21:36:18] Production.INFO: count ==1280 [2025-03-06 21:36:18] Production.ERROR: pbx CDR StartTime 2025-03-06 18:36:05 - End Time 2025-03-06 21:36:05 [2025-03-06 21:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 21:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623267', 'tblTempUsageDetail_20' ) start [2025-03-06 21:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623267', 'tblTempUsageDetail_20' ) end [2025-03-06 21:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623267', 'tblTempVendorCDR_20' ) start [2025-03-06 21:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623267', 'tblTempVendorCDR_20' ) end [2025-03-06 21:36:18] Production.INFO: ProcessCDR(1,14623267,1,1,2) [2025-03-06 21:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14623267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 21:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14623267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 21:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14623267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 21:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14623267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 21:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623267', 'tblTempUsageDetail_20' ) start [2025-03-06 21:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623267', 'tblTempUsageDetail_20' ) end [2025-03-06 21:36:23] Production.ERROR: pbx prc_insertCDR start [2025-03-06 21:36:23] Production.ERROR: pbx prc_insertCDR end [2025-03-06 21:36:23] Production.INFO: ==4995== Releasing lock... [2025-03-06 21:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 21:36:23] Production.INFO: 37.25 MB #Memory Used# [2025-03-06 21:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 18:37:06 [end_date_ymd] => 2025-03-06 21:37:06 [RateCDR] => 1 ) [2025-03-06 21:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 18:37:06' and `end` < '2025-03-06 21:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 21:37:18] Production.INFO: count ==1277 [2025-03-06 21:37:18] Production.ERROR: pbx CDR StartTime 2025-03-06 18:37:06 - End Time 2025-03-06 21:37:06 [2025-03-06 21:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 21:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623272', 'tblTempUsageDetail_20' ) start [2025-03-06 21:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623272', 'tblTempUsageDetail_20' ) end [2025-03-06 21:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623272', 'tblTempVendorCDR_20' ) start [2025-03-06 21:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623272', 'tblTempVendorCDR_20' ) end [2025-03-06 21:37:18] Production.INFO: ProcessCDR(1,14623272,1,1,2) [2025-03-06 21:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14623272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 21:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14623272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 21:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14623272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 21:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14623272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 21:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623272', 'tblTempUsageDetail_20' ) start [2025-03-06 21:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623272', 'tblTempUsageDetail_20' ) end [2025-03-06 21:37:23] Production.ERROR: pbx prc_insertCDR start [2025-03-06 21:37:23] Production.ERROR: pbx prc_insertCDR end [2025-03-06 21:37:23] Production.INFO: ==5068== Releasing lock... [2025-03-06 21:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 21:37:23] Production.INFO: 37.25 MB #Memory Used# [2025-03-06 21:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 18:38:05 [end_date_ymd] => 2025-03-06 21:38:05 [RateCDR] => 1 ) [2025-03-06 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-03-06 18:38:05' and `end` < '2025-03-06 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-03-06 21:38:18] Production.INFO: count ==1277 [2025-03-06 21:38:18] Production.ERROR: pbx CDR StartTime 2025-03-06 18:38:05 - End Time 2025-03-06 21:38:05 [2025-03-06 21:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 21:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623277', 'tblTempUsageDetail_20' ) start [2025-03-06 21:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623277', 'tblTempUsageDetail_20' ) end [2025-03-06 21:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623277', 'tblTempVendorCDR_20' ) start [2025-03-06 21:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623277', 'tblTempVendorCDR_20' ) end [2025-03-06 21:38:18] Production.INFO: ProcessCDR(1,14623277,1,1,2) [2025-03-06 21:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14623277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 21:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14623277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 21:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14623277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 21:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14623277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 21:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623277', 'tblTempUsageDetail_20' ) start [2025-03-06 21:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623277', 'tblTempUsageDetail_20' ) end [2025-03-06 21:38:23] Production.ERROR: pbx prc_insertCDR start [2025-03-06 21:38:23] Production.ERROR: pbx prc_insertCDR end [2025-03-06 21:38:23] Production.INFO: ==5142== Releasing lock... [2025-03-06 21:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 21:38:23] Production.INFO: 37.25 MB #Memory Used# [2025-03-06 21:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 18:39:05 [end_date_ymd] => 2025-03-06 21:39:05 [RateCDR] => 1 ) [2025-03-06 21:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 18:39:05' and `end` < '2025-03-06 21:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 21:39:18] Production.INFO: count ==1292 [2025-03-06 21:39:18] Production.ERROR: pbx CDR StartTime 2025-03-06 18:39:05 - End Time 2025-03-06 21:39:05 [2025-03-06 21:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 21:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623282', 'tblTempUsageDetail_20' ) start [2025-03-06 21:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623282', 'tblTempUsageDetail_20' ) end [2025-03-06 21:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623282', 'tblTempVendorCDR_20' ) start [2025-03-06 21:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623282', 'tblTempVendorCDR_20' ) end [2025-03-06 21:39:18] Production.INFO: ProcessCDR(1,14623282,1,1,2) [2025-03-06 21:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14623282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 21:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14623282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 21:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14623282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 21:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14623282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 21:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623282', 'tblTempUsageDetail_20' ) start [2025-03-06 21:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623282', 'tblTempUsageDetail_20' ) end [2025-03-06 21:39:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 21:39:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 21:39:22] Production.INFO: ==5215== Releasing lock... [2025-03-06 21:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 21:39:22] Production.INFO: 37.25 MB #Memory Used# [2025-03-06 21:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 18:40:06 [end_date_ymd] => 2025-03-06 21:40:06 [RateCDR] => 1 ) [2025-03-06 21:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 18:40:06' and `end` < '2025-03-06 21:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 21:40:18] Production.INFO: count ==1304 [2025-03-06 21:40:19] Production.ERROR: pbx CDR StartTime 2025-03-06 18:40:06 - End Time 2025-03-06 21:40:06 [2025-03-06 21:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 21:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623287', 'tblTempUsageDetail_20' ) start [2025-03-06 21:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623287', 'tblTempUsageDetail_20' ) end [2025-03-06 21:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623287', 'tblTempVendorCDR_20' ) start [2025-03-06 21:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623287', 'tblTempVendorCDR_20' ) end [2025-03-06 21:40:19] Production.INFO: ProcessCDR(1,14623287,1,1,2) [2025-03-06 21:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14623287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 21:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14623287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 21:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14623287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 21:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14623287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 21:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623287', 'tblTempUsageDetail_20' ) start [2025-03-06 21:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623287', 'tblTempUsageDetail_20' ) end [2025-03-06 21:40:23] Production.ERROR: pbx prc_insertCDR start [2025-03-06 21:40:23] Production.ERROR: pbx prc_insertCDR end [2025-03-06 21:40:23] Production.INFO: ==5325== Releasing lock... [2025-03-06 21:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 21:40:23] Production.INFO: 37.5 MB #Memory Used# [2025-03-06 21:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 18:41:05 [end_date_ymd] => 2025-03-06 21:41:05 [RateCDR] => 1 ) [2025-03-06 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-03-06 18:41:05' and `end` < '2025-03-06 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-03-06 21:41:17] Production.INFO: count ==1236 [2025-03-06 21:41:17] Production.ERROR: pbx CDR StartTime 2025-03-06 18:41:05 - End Time 2025-03-06 21:41:05 [2025-03-06 21:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 21:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623293', 'tblTempUsageDetail_20' ) start [2025-03-06 21:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623293', 'tblTempUsageDetail_20' ) end [2025-03-06 21:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623293', 'tblTempVendorCDR_20' ) start [2025-03-06 21:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623293', 'tblTempVendorCDR_20' ) end [2025-03-06 21:41:17] Production.INFO: ProcessCDR(1,14623293,1,1,2) [2025-03-06 21:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14623293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 21:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14623293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 21:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14623293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 21:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14623293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 21:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623293', 'tblTempUsageDetail_20' ) start [2025-03-06 21:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623293', 'tblTempUsageDetail_20' ) end [2025-03-06 21:41:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 21:41:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 21:41:22] Production.INFO: ==5403== Releasing lock... [2025-03-06 21:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 21:41:22] Production.INFO: 37.25 MB #Memory Used# [2025-03-06 21:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 18:42:05 [end_date_ymd] => 2025-03-06 21:42:05 [RateCDR] => 1 ) [2025-03-06 21:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 18:42:05' and `end` < '2025-03-06 21:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 21:42:17] Production.INFO: count ==1236 [2025-03-06 21:42:18] Production.ERROR: pbx CDR StartTime 2025-03-06 18:42:05 - End Time 2025-03-06 21:42:05 [2025-03-06 21:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623298', 'tblTempUsageDetail_20' ) start [2025-03-06 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623298', 'tblTempUsageDetail_20' ) end [2025-03-06 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623298', 'tblTempVendorCDR_20' ) start [2025-03-06 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623298', 'tblTempVendorCDR_20' ) end [2025-03-06 21:42:18] Production.INFO: ProcessCDR(1,14623298,1,1,2) [2025-03-06 21:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14623298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 21:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14623298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 21:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14623298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 21:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14623298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 21:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623298', 'tblTempUsageDetail_20' ) start [2025-03-06 21:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623298', 'tblTempUsageDetail_20' ) end [2025-03-06 21:42:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 21:42:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 21:42:22] Production.INFO: ==5474== Releasing lock... [2025-03-06 21:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 21:42:22] Production.INFO: 37 MB #Memory Used# [2025-03-06 21:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 18:43:05 [end_date_ymd] => 2025-03-06 21:43:05 [RateCDR] => 1 ) [2025-03-06 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-03-06 18:43:05' and `end` < '2025-03-06 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-03-06 21:43:17] Production.INFO: count ==1238 [2025-03-06 21:43:17] Production.ERROR: pbx CDR StartTime 2025-03-06 18:43:05 - End Time 2025-03-06 21:43:05 [2025-03-06 21:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 21:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623303', 'tblTempUsageDetail_20' ) start [2025-03-06 21:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623303', 'tblTempUsageDetail_20' ) end [2025-03-06 21:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623303', 'tblTempVendorCDR_20' ) start [2025-03-06 21:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623303', 'tblTempVendorCDR_20' ) end [2025-03-06 21:43:17] Production.INFO: ProcessCDR(1,14623303,1,1,2) [2025-03-06 21:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14623303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 21:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14623303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 21:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14623303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 21:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14623303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 21:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623303', 'tblTempUsageDetail_20' ) start [2025-03-06 21:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623303', 'tblTempUsageDetail_20' ) end [2025-03-06 21:43:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 21:43:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 21:43:22] Production.INFO: ==5545== Releasing lock... [2025-03-06 21:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 21:43:22] Production.INFO: 37 MB #Memory Used# [2025-03-06 21:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 18:44:06 [end_date_ymd] => 2025-03-06 21:44:06 [RateCDR] => 1 ) [2025-03-06 21:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 18:44:06' and `end` < '2025-03-06 21:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 21:44:18] Production.INFO: count ==1236 [2025-03-06 21:44:18] Production.ERROR: pbx CDR StartTime 2025-03-06 18:44:06 - End Time 2025-03-06 21:44:06 [2025-03-06 21:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623308', 'tblTempUsageDetail_20' ) start [2025-03-06 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623308', 'tblTempUsageDetail_20' ) end [2025-03-06 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623308', 'tblTempVendorCDR_20' ) start [2025-03-06 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623308', 'tblTempVendorCDR_20' ) end [2025-03-06 21:44:18] Production.INFO: ProcessCDR(1,14623308,1,1,2) [2025-03-06 21:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14623308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 21:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14623308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 21:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14623308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 21:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14623308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 21:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623308', 'tblTempUsageDetail_20' ) start [2025-03-06 21:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623308', 'tblTempUsageDetail_20' ) end [2025-03-06 21:44:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 21:44:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 21:44:21] Production.INFO: ==5615== Releasing lock... [2025-03-06 21:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 21:44:21] Production.INFO: 37 MB #Memory Used# [2025-03-06 21:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 18:45:05 [end_date_ymd] => 2025-03-06 21:45:05 [RateCDR] => 1 ) [2025-03-06 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-03-06 18:45:05' and `end` < '2025-03-06 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-03-06 21:45:18] Production.INFO: count ==1238 [2025-03-06 21:45:18] Production.ERROR: pbx CDR StartTime 2025-03-06 18:45:05 - End Time 2025-03-06 21:45:05 [2025-03-06 21:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623313', 'tblTempUsageDetail_20' ) start [2025-03-06 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623313', 'tblTempUsageDetail_20' ) end [2025-03-06 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623313', 'tblTempVendorCDR_20' ) start [2025-03-06 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623313', 'tblTempVendorCDR_20' ) end [2025-03-06 21:45:18] Production.INFO: ProcessCDR(1,14623313,1,1,2) [2025-03-06 21:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14623313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 21:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14623313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 21:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14623313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 21:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14623313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 21:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623313', 'tblTempUsageDetail_20' ) start [2025-03-06 21:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623313', 'tblTempUsageDetail_20' ) end [2025-03-06 21:45:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 21:45:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 21:45:21] Production.INFO: ==5687== Releasing lock... [2025-03-06 21:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 21:45:21] Production.INFO: 37 MB #Memory Used# [2025-03-06 21:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 18:46:05 [end_date_ymd] => 2025-03-06 21:46:05 [RateCDR] => 1 ) [2025-03-06 21:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 18:46:05' and `end` < '2025-03-06 21:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 21:46:18] Production.INFO: count ==1238 [2025-03-06 21:46:18] Production.ERROR: pbx CDR StartTime 2025-03-06 18:46:05 - End Time 2025-03-06 21:46:05 [2025-03-06 21:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 21:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623318', 'tblTempUsageDetail_20' ) start [2025-03-06 21:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623318', 'tblTempUsageDetail_20' ) end [2025-03-06 21:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623318', 'tblTempVendorCDR_20' ) start [2025-03-06 21:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623318', 'tblTempVendorCDR_20' ) end [2025-03-06 21:46:18] Production.INFO: ProcessCDR(1,14623318,1,1,2) [2025-03-06 21:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14623318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 21:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14623318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 21:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14623318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 21:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14623318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 21:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623318', 'tblTempUsageDetail_20' ) start [2025-03-06 21:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623318', 'tblTempUsageDetail_20' ) end [2025-03-06 21:46:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 21:46:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 21:46:21] Production.INFO: ==5759== Releasing lock... [2025-03-06 21:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 21:46:21] Production.INFO: 37 MB #Memory Used# [2025-03-06 21:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 18:47:05 [end_date_ymd] => 2025-03-06 21:47:05 [RateCDR] => 1 ) [2025-03-06 21:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 18:47:05' and `end` < '2025-03-06 21:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 21:47:17] Production.INFO: count ==1236 [2025-03-06 21:47:17] Production.ERROR: pbx CDR StartTime 2025-03-06 18:47:05 - End Time 2025-03-06 21:47:05 [2025-03-06 21:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 21:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623323', 'tblTempUsageDetail_20' ) start [2025-03-06 21:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623323', 'tblTempUsageDetail_20' ) end [2025-03-06 21:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623323', 'tblTempVendorCDR_20' ) start [2025-03-06 21:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623323', 'tblTempVendorCDR_20' ) end [2025-03-06 21:47:17] Production.INFO: ProcessCDR(1,14623323,1,1,2) [2025-03-06 21:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14623323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 21:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14623323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 21:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14623323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 21:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14623323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 21:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623323', 'tblTempUsageDetail_20' ) start [2025-03-06 21:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623323', 'tblTempUsageDetail_20' ) end [2025-03-06 21:47:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 21:47:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 21:47:22] Production.INFO: ==5831== Releasing lock... [2025-03-06 21:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 21:47:22] Production.INFO: 37 MB #Memory Used# [2025-03-06 21:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 18:48:06 [end_date_ymd] => 2025-03-06 21:48:06 [RateCDR] => 1 ) [2025-03-06 21:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 18:48:06' and `end` < '2025-03-06 21:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 21:48:18] Production.INFO: count ==1235 [2025-03-06 21:48:18] Production.ERROR: pbx CDR StartTime 2025-03-06 18:48:06 - End Time 2025-03-06 21:48:06 [2025-03-06 21:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 21:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623328', 'tblTempUsageDetail_20' ) start [2025-03-06 21:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623328', 'tblTempUsageDetail_20' ) end [2025-03-06 21:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623328', 'tblTempVendorCDR_20' ) start [2025-03-06 21:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623328', 'tblTempVendorCDR_20' ) end [2025-03-06 21:48:18] Production.INFO: ProcessCDR(1,14623328,1,1,2) [2025-03-06 21:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14623328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 21:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14623328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 21:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14623328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 21:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14623328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 21:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623328', 'tblTempUsageDetail_20' ) start [2025-03-06 21:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623328', 'tblTempUsageDetail_20' ) end [2025-03-06 21:48:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 21:48:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 21:48:22] Production.INFO: ==5907== Releasing lock... [2025-03-06 21:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 21:48:22] Production.INFO: 37 MB #Memory Used# [2025-03-06 21:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 18:49:05 [end_date_ymd] => 2025-03-06 21:49:05 [RateCDR] => 1 ) [2025-03-06 21:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 18:49:05' and `end` < '2025-03-06 21:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 21:49:17] Production.INFO: count ==1235 [2025-03-06 21:49:18] Production.ERROR: pbx CDR StartTime 2025-03-06 18:49:05 - End Time 2025-03-06 21:49:05 [2025-03-06 21:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623333', 'tblTempUsageDetail_20' ) start [2025-03-06 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623333', 'tblTempUsageDetail_20' ) end [2025-03-06 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623333', 'tblTempVendorCDR_20' ) start [2025-03-06 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623333', 'tblTempVendorCDR_20' ) end [2025-03-06 21:49:18] Production.INFO: ProcessCDR(1,14623333,1,1,2) [2025-03-06 21:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14623333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 21:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14623333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 21:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14623333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 21:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14623333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 21:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623333', 'tblTempUsageDetail_20' ) start [2025-03-06 21:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623333', 'tblTempUsageDetail_20' ) end [2025-03-06 21:49:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 21:49:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 21:49:21] Production.INFO: ==5981== Releasing lock... [2025-03-06 21:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 21:49:21] Production.INFO: 37 MB #Memory Used# [2025-03-06 21:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 18:50:06 [end_date_ymd] => 2025-03-06 21:50:06 [RateCDR] => 1 ) [2025-03-06 21:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 18:50:06' and `end` < '2025-03-06 21:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 21:50:18] Production.INFO: count ==1224 [2025-03-06 21:50:19] Production.ERROR: pbx CDR StartTime 2025-03-06 18:50:06 - End Time 2025-03-06 21:50:06 [2025-03-06 21:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623339', 'tblTempUsageDetail_20' ) start [2025-03-06 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623339', 'tblTempUsageDetail_20' ) end [2025-03-06 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623339', 'tblTempVendorCDR_20' ) start [2025-03-06 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623339', 'tblTempVendorCDR_20' ) end [2025-03-06 21:50:19] Production.INFO: ProcessCDR(1,14623339,1,1,2) [2025-03-06 21:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14623339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 21:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14623339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 21:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14623339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 21:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14623339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 21:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623339', 'tblTempUsageDetail_20' ) start [2025-03-06 21:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623339', 'tblTempUsageDetail_20' ) end [2025-03-06 21:50:23] Production.ERROR: pbx prc_insertCDR start [2025-03-06 21:50:23] Production.ERROR: pbx prc_insertCDR end [2025-03-06 21:50:23] Production.INFO: ==6053== Releasing lock... [2025-03-06 21:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 21:50:23] Production.INFO: 36.75 MB #Memory Used# [2025-03-06 21:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 18:51:05 [end_date_ymd] => 2025-03-06 21:51:05 [RateCDR] => 1 ) [2025-03-06 21:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 18:51:05' and `end` < '2025-03-06 21:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 21:51:18] Production.INFO: count ==1202 [2025-03-06 21:51:18] Production.ERROR: pbx CDR StartTime 2025-03-06 18:51:05 - End Time 2025-03-06 21:51:05 [2025-03-06 21:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 21:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623344', 'tblTempUsageDetail_20' ) start [2025-03-06 21:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623344', 'tblTempUsageDetail_20' ) end [2025-03-06 21:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623344', 'tblTempVendorCDR_20' ) start [2025-03-06 21:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623344', 'tblTempVendorCDR_20' ) end [2025-03-06 21:51:18] Production.INFO: ProcessCDR(1,14623344,1,1,2) [2025-03-06 21:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14623344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 21:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14623344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 21:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14623344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 21:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14623344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 21:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623344', 'tblTempUsageDetail_20' ) start [2025-03-06 21:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623344', 'tblTempUsageDetail_20' ) end [2025-03-06 21:51:23] Production.ERROR: pbx prc_insertCDR start [2025-03-06 21:51:23] Production.ERROR: pbx prc_insertCDR end [2025-03-06 21:51:23] Production.INFO: ==6126== Releasing lock... [2025-03-06 21:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 21:51:23] Production.INFO: 36.75 MB #Memory Used# [2025-03-06 21:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 18:52:06 [end_date_ymd] => 2025-03-06 21:52:06 [RateCDR] => 1 ) [2025-03-06 21: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-03-06 18:52:06' and `end` < '2025-03-06 21: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-03-06 21:52:18] Production.INFO: count ==1204 [2025-03-06 21:52:18] Production.ERROR: pbx CDR StartTime 2025-03-06 18:52:06 - End Time 2025-03-06 21:52:06 [2025-03-06 21:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 21:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623349', 'tblTempUsageDetail_20' ) start [2025-03-06 21:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623349', 'tblTempUsageDetail_20' ) end [2025-03-06 21:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623349', 'tblTempVendorCDR_20' ) start [2025-03-06 21:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623349', 'tblTempVendorCDR_20' ) end [2025-03-06 21:52:18] Production.INFO: ProcessCDR(1,14623349,1,1,2) [2025-03-06 21:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14623349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 21:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14623349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 21:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14623349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 21:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14623349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 21:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623349', 'tblTempUsageDetail_20' ) start [2025-03-06 21:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623349', 'tblTempUsageDetail_20' ) end [2025-03-06 21:52:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 21:52:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 21:52:22] Production.INFO: ==6198== Releasing lock... [2025-03-06 21:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 21:52:22] Production.INFO: 36.75 MB #Memory Used# [2025-03-06 21:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 18:53:05 [end_date_ymd] => 2025-03-06 21:53:05 [RateCDR] => 1 ) [2025-03-06 21:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 18:53:05' and `end` < '2025-03-06 21:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 21:53:17] Production.INFO: count ==1218 [2025-03-06 21:53:17] Production.ERROR: pbx CDR StartTime 2025-03-06 18:53:05 - End Time 2025-03-06 21:53:05 [2025-03-06 21:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 21:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623354', 'tblTempUsageDetail_20' ) start [2025-03-06 21:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623354', 'tblTempUsageDetail_20' ) end [2025-03-06 21:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623354', 'tblTempVendorCDR_20' ) start [2025-03-06 21:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623354', 'tblTempVendorCDR_20' ) end [2025-03-06 21:53:17] Production.INFO: ProcessCDR(1,14623354,1,1,2) [2025-03-06 21:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14623354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 21:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14623354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 21:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14623354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 21:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14623354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 21:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623354', 'tblTempUsageDetail_20' ) start [2025-03-06 21:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623354', 'tblTempUsageDetail_20' ) end [2025-03-06 21:53:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 21:53:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 21:53:21] Production.INFO: ==6268== Releasing lock... [2025-03-06 21:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 21:53:21] Production.INFO: 37.25 MB #Memory Used# [2025-03-06 21:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 18:54:06 [end_date_ymd] => 2025-03-06 21:54:06 [RateCDR] => 1 ) [2025-03-06 21: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-03-06 18:54:06' and `end` < '2025-03-06 21: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-03-06 21:54:18] Production.INFO: count ==1215 [2025-03-06 21:54:18] Production.ERROR: pbx CDR StartTime 2025-03-06 18:54:06 - End Time 2025-03-06 21:54:06 [2025-03-06 21:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 21:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623359', 'tblTempUsageDetail_20' ) start [2025-03-06 21:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623359', 'tblTempUsageDetail_20' ) end [2025-03-06 21:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623359', 'tblTempVendorCDR_20' ) start [2025-03-06 21:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623359', 'tblTempVendorCDR_20' ) end [2025-03-06 21:54:18] Production.INFO: ProcessCDR(1,14623359,1,1,2) [2025-03-06 21:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14623359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 21:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14623359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 21:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14623359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 21:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14623359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 21:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623359', 'tblTempUsageDetail_20' ) start [2025-03-06 21:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623359', 'tblTempUsageDetail_20' ) end [2025-03-06 21:54:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 21:54:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 21:54:21] Production.INFO: ==6339== Releasing lock... [2025-03-06 21:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 21:54:21] Production.INFO: 37 MB #Memory Used# [2025-03-06 21:55:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 18:55:04 [end_date_ymd] => 2025-03-06 21:55:04 [RateCDR] => 1 ) [2025-03-06 21: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-03-06 18:55:04' and `end` < '2025-03-06 21: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-03-06 21:55:16] Production.INFO: count ==1211 [2025-03-06 21:55:17] Production.ERROR: pbx CDR StartTime 2025-03-06 18:55:04 - End Time 2025-03-06 21:55:04 [2025-03-06 21:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 21:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623364', 'tblTempUsageDetail_20' ) start [2025-03-06 21:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623364', 'tblTempUsageDetail_20' ) end [2025-03-06 21:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623364', 'tblTempVendorCDR_20' ) start [2025-03-06 21:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623364', 'tblTempVendorCDR_20' ) end [2025-03-06 21:55:17] Production.INFO: ProcessCDR(1,14623364,1,1,2) [2025-03-06 21:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14623364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 21:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14623364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 21:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14623364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 21:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14623364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 21:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623364', 'tblTempUsageDetail_20' ) start [2025-03-06 21:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623364', 'tblTempUsageDetail_20' ) end [2025-03-06 21:55:20] Production.ERROR: pbx prc_insertCDR start [2025-03-06 21:55:20] Production.ERROR: pbx prc_insertCDR end [2025-03-06 21:55:20] Production.INFO: ==6408== Releasing lock... [2025-03-06 21:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 21:55:20] Production.INFO: 36.75 MB #Memory Used# [2025-03-06 21:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 18:56:05 [end_date_ymd] => 2025-03-06 21:56:05 [RateCDR] => 1 ) [2025-03-06 21:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 18:56:05' and `end` < '2025-03-06 21:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 21:56:17] Production.INFO: count ==1192 [2025-03-06 21:56:17] Production.ERROR: pbx CDR StartTime 2025-03-06 18:56:05 - End Time 2025-03-06 21:56:05 [2025-03-06 21:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 21:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623369', 'tblTempUsageDetail_20' ) start [2025-03-06 21:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623369', 'tblTempUsageDetail_20' ) end [2025-03-06 21:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623369', 'tblTempVendorCDR_20' ) start [2025-03-06 21:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623369', 'tblTempVendorCDR_20' ) end [2025-03-06 21:56:17] Production.INFO: ProcessCDR(1,14623369,1,1,2) [2025-03-06 21:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14623369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 21:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14623369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 21:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14623369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 21:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14623369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 21:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623369', 'tblTempUsageDetail_20' ) start [2025-03-06 21:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623369', 'tblTempUsageDetail_20' ) end [2025-03-06 21:56:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 21:56:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 21:56:21] Production.INFO: ==6521== Releasing lock... [2025-03-06 21:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 21:56:21] Production.INFO: 36.75 MB #Memory Used# [2025-03-06 21:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 18:57:05 [end_date_ymd] => 2025-03-06 21:57:05 [RateCDR] => 1 ) [2025-03-06 21:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 18:57:05' and `end` < '2025-03-06 21:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 21:57:17] Production.INFO: count ==1193 [2025-03-06 21:57:18] Production.ERROR: pbx CDR StartTime 2025-03-06 18:57:05 - End Time 2025-03-06 21:57:05 [2025-03-06 21:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 21:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623374', 'tblTempUsageDetail_20' ) start [2025-03-06 21:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623374', 'tblTempUsageDetail_20' ) end [2025-03-06 21:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623374', 'tblTempVendorCDR_20' ) start [2025-03-06 21:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623374', 'tblTempVendorCDR_20' ) end [2025-03-06 21:57:18] Production.INFO: ProcessCDR(1,14623374,1,1,2) [2025-03-06 21:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14623374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 21:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14623374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 21:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14623374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 21:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14623374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 21:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623374', 'tblTempUsageDetail_20' ) start [2025-03-06 21:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623374', 'tblTempUsageDetail_20' ) end [2025-03-06 21:57:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 21:57:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 21:57:22] Production.INFO: ==6599== Releasing lock... [2025-03-06 21:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 21:57:22] Production.INFO: 36.75 MB #Memory Used# [2025-03-06 21:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 18:58:05 [end_date_ymd] => 2025-03-06 21:58:05 [RateCDR] => 1 ) [2025-03-06 21:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 18:58:05' and `end` < '2025-03-06 21:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 21:58:17] Production.INFO: count ==1193 [2025-03-06 21:58:17] Production.ERROR: pbx CDR StartTime 2025-03-06 18:58:05 - End Time 2025-03-06 21:58:05 [2025-03-06 21:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 21:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623379', 'tblTempUsageDetail_20' ) start [2025-03-06 21:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623379', 'tblTempUsageDetail_20' ) end [2025-03-06 21:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623379', 'tblTempVendorCDR_20' ) start [2025-03-06 21:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623379', 'tblTempVendorCDR_20' ) end [2025-03-06 21:58:17] Production.INFO: ProcessCDR(1,14623379,1,1,2) [2025-03-06 21:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14623379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 21:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14623379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 21:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14623379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 21:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14623379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 21:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623379', 'tblTempUsageDetail_20' ) start [2025-03-06 21:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623379', 'tblTempUsageDetail_20' ) end [2025-03-06 21:58:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 21:58:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 21:58:21] Production.INFO: ==6679== Releasing lock... [2025-03-06 21:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 21:58:21] Production.INFO: 36.75 MB #Memory Used# [2025-03-06 21:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 18:59:05 [end_date_ymd] => 2025-03-06 21:59:05 [RateCDR] => 1 ) [2025-03-06 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-03-06 18:59:05' and `end` < '2025-03-06 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-03-06 21:59:17] Production.INFO: count ==1190 [2025-03-06 21:59:17] Production.ERROR: pbx CDR StartTime 2025-03-06 18:59:05 - End Time 2025-03-06 21:59:05 [2025-03-06 21:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 21:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623384', 'tblTempUsageDetail_20' ) start [2025-03-06 21:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623384', 'tblTempUsageDetail_20' ) end [2025-03-06 21:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623384', 'tblTempVendorCDR_20' ) start [2025-03-06 21:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623384', 'tblTempVendorCDR_20' ) end [2025-03-06 21:59:17] Production.INFO: ProcessCDR(1,14623384,1,1,2) [2025-03-06 21:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14623384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 21:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14623384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 21:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14623384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 21:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14623384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 21:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623384', 'tblTempUsageDetail_20' ) start [2025-03-06 21:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623384', 'tblTempUsageDetail_20' ) end [2025-03-06 21:59:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 21:59:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 21:59:21] Production.INFO: ==6760== Releasing lock... [2025-03-06 21:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 21:59:21] Production.INFO: 36.5 MB #Memory Used# [2025-03-06 22:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 19:00:06 [end_date_ymd] => 2025-03-06 22:00:06 [RateCDR] => 1 ) [2025-03-06 22:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 19:00:06' and `end` < '2025-03-06 22:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 22:00:19] Production.INFO: count ==1190 [2025-03-06 22:00:19] Production.ERROR: pbx CDR StartTime 2025-03-06 19:00:06 - End Time 2025-03-06 22:00:06 [2025-03-06 22:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623389', 'tblTempUsageDetail_20' ) start [2025-03-06 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623389', 'tblTempUsageDetail_20' ) end [2025-03-06 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623389', 'tblTempVendorCDR_20' ) start [2025-03-06 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623389', 'tblTempVendorCDR_20' ) end [2025-03-06 22:00:19] Production.INFO: ProcessCDR(1,14623389,1,1,2) [2025-03-06 22:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14623389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 22:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14623389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 22:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14623389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 22:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14623389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 22:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623389', 'tblTempUsageDetail_20' ) start [2025-03-06 22:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623389', 'tblTempUsageDetail_20' ) end [2025-03-06 22:00:24] Production.ERROR: pbx prc_insertCDR start [2025-03-06 22:00:24] Production.ERROR: pbx prc_insertCDR end [2025-03-06 22:00:24] Production.INFO: ==6865== Releasing lock... [2025-03-06 22:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 22:00:24] Production.INFO: 36.5 MB #Memory Used# [2025-03-06 22:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 19:01:06 [end_date_ymd] => 2025-03-06 22:01:06 [RateCDR] => 1 ) [2025-03-06 22: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-03-06 19:01:06' and `end` < '2025-03-06 22: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-03-06 22:01:18] Production.INFO: count ==1165 [2025-03-06 22:01:18] Production.ERROR: pbx CDR StartTime 2025-03-06 19:01:06 - End Time 2025-03-06 22:01:06 [2025-03-06 22:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623395', 'tblTempUsageDetail_20' ) start [2025-03-06 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623395', 'tblTempUsageDetail_20' ) end [2025-03-06 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623395', 'tblTempVendorCDR_20' ) start [2025-03-06 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623395', 'tblTempVendorCDR_20' ) end [2025-03-06 22:01:18] Production.INFO: ProcessCDR(1,14623395,1,1,2) [2025-03-06 22:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14623395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 22:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14623395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 22:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14623395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 22:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14623395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 22:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623395', 'tblTempUsageDetail_20' ) start [2025-03-06 22:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623395', 'tblTempUsageDetail_20' ) end [2025-03-06 22:01:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 22:01:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 22:01:22] Production.INFO: ==6972== Releasing lock... [2025-03-06 22:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 22:01:22] Production.INFO: 36.5 MB #Memory Used# [2025-03-06 22:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 19:02:05 [end_date_ymd] => 2025-03-06 22:02:05 [RateCDR] => 1 ) [2025-03-06 22: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-03-06 19:02:05' and `end` < '2025-03-06 22: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-03-06 22:02:17] Production.INFO: count ==1165 [2025-03-06 22:02:17] Production.ERROR: pbx CDR StartTime 2025-03-06 19:02:05 - End Time 2025-03-06 22:02:05 [2025-03-06 22:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 22:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623400', 'tblTempUsageDetail_20' ) start [2025-03-06 22:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623400', 'tblTempUsageDetail_20' ) end [2025-03-06 22:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623400', 'tblTempVendorCDR_20' ) start [2025-03-06 22:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623400', 'tblTempVendorCDR_20' ) end [2025-03-06 22:02:17] Production.INFO: ProcessCDR(1,14623400,1,1,2) [2025-03-06 22:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14623400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 22:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14623400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 22:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14623400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 22:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14623400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 22:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623400', 'tblTempUsageDetail_20' ) start [2025-03-06 22:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623400', 'tblTempUsageDetail_20' ) end [2025-03-06 22:02:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 22:02:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 22:02:21] Production.INFO: ==7066== Releasing lock... [2025-03-06 22:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 22:02:21] Production.INFO: 36.5 MB #Memory Used# [2025-03-06 22:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 19:03:06 [end_date_ymd] => 2025-03-06 22:03:06 [RateCDR] => 1 ) [2025-03-06 22:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 19:03:06' and `end` < '2025-03-06 22:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 22:03:18] Production.INFO: count ==1162 [2025-03-06 22:03:18] Production.ERROR: pbx CDR StartTime 2025-03-06 19:03:06 - End Time 2025-03-06 22:03:06 [2025-03-06 22:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623405', 'tblTempUsageDetail_20' ) start [2025-03-06 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623405', 'tblTempUsageDetail_20' ) end [2025-03-06 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623405', 'tblTempVendorCDR_20' ) start [2025-03-06 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623405', 'tblTempVendorCDR_20' ) end [2025-03-06 22:03:18] Production.INFO: ProcessCDR(1,14623405,1,1,2) [2025-03-06 22:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14623405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 22:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14623405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 22:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14623405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 22:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14623405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 22:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623405', 'tblTempUsageDetail_20' ) start [2025-03-06 22:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623405', 'tblTempUsageDetail_20' ) end [2025-03-06 22:03:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 22:03:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 22:03:22] Production.INFO: ==7162== Releasing lock... [2025-03-06 22:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 22:03:22] Production.INFO: 36.5 MB #Memory Used# [2025-03-06 22:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 19:04:05 [end_date_ymd] => 2025-03-06 22:04:05 [RateCDR] => 1 ) [2025-03-06 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-03-06 19:04:05' and `end` < '2025-03-06 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-03-06 22:04:17] Production.INFO: count ==1163 [2025-03-06 22:04:17] Production.ERROR: pbx CDR StartTime 2025-03-06 19:04:05 - End Time 2025-03-06 22:04:05 [2025-03-06 22:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 22:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623410', 'tblTempUsageDetail_20' ) start [2025-03-06 22:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623410', 'tblTempUsageDetail_20' ) end [2025-03-06 22:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623410', 'tblTempVendorCDR_20' ) start [2025-03-06 22:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623410', 'tblTempVendorCDR_20' ) end [2025-03-06 22:04:17] Production.INFO: ProcessCDR(1,14623410,1,1,2) [2025-03-06 22:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14623410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 22:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14623410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 22:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14623410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 22:04:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14623410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 22:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623410', 'tblTempUsageDetail_20' ) start [2025-03-06 22:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623410', 'tblTempUsageDetail_20' ) end [2025-03-06 22:04:20] Production.ERROR: pbx prc_insertCDR start [2025-03-06 22:04:20] Production.ERROR: pbx prc_insertCDR end [2025-03-06 22:04:20] Production.INFO: ==7265== Releasing lock... [2025-03-06 22:04:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 22:04:20] Production.INFO: 36.25 MB #Memory Used# [2025-03-06 22:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 19:05:05 [end_date_ymd] => 2025-03-06 22:05:05 [RateCDR] => 1 ) [2025-03-06 22:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 19:05:05' and `end` < '2025-03-06 22:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 22:05:17] Production.INFO: count ==1145 [2025-03-06 22:05:18] Production.ERROR: pbx CDR StartTime 2025-03-06 19:05:05 - End Time 2025-03-06 22:05:05 [2025-03-06 22:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623415', 'tblTempUsageDetail_20' ) start [2025-03-06 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623415', 'tblTempUsageDetail_20' ) end [2025-03-06 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623415', 'tblTempVendorCDR_20' ) start [2025-03-06 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623415', 'tblTempVendorCDR_20' ) end [2025-03-06 22:05:18] Production.INFO: ProcessCDR(1,14623415,1,1,2) [2025-03-06 22:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14623415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 22:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14623415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 22:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14623415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 22:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14623415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 22:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623415', 'tblTempUsageDetail_20' ) start [2025-03-06 22:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623415', 'tblTempUsageDetail_20' ) end [2025-03-06 22:05:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 22:05:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 22:05:22] Production.INFO: ==7358== Releasing lock... [2025-03-06 22:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 22:05:22] Production.INFO: 36.25 MB #Memory Used# [2025-03-06 22:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 19:06:05 [end_date_ymd] => 2025-03-06 22:06:05 [RateCDR] => 1 ) [2025-03-06 22:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 19:06:05' and `end` < '2025-03-06 22:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 22:06:17] Production.INFO: count ==1145 [2025-03-06 22:06:17] Production.ERROR: pbx CDR StartTime 2025-03-06 19:06:05 - End Time 2025-03-06 22:06:05 [2025-03-06 22:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 22:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623420', 'tblTempUsageDetail_20' ) start [2025-03-06 22:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623420', 'tblTempUsageDetail_20' ) end [2025-03-06 22:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623420', 'tblTempVendorCDR_20' ) start [2025-03-06 22:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623420', 'tblTempVendorCDR_20' ) end [2025-03-06 22:06:17] Production.INFO: ProcessCDR(1,14623420,1,1,2) [2025-03-06 22:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14623420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 22:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14623420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 22:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14623420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 22:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14623420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 22:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623420', 'tblTempUsageDetail_20' ) start [2025-03-06 22:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623420', 'tblTempUsageDetail_20' ) end [2025-03-06 22:06:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 22:06:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 22:06:22] Production.INFO: ==7450== Releasing lock... [2025-03-06 22:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 22:06:22] Production.INFO: 36.25 MB #Memory Used# [2025-03-06 22:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 19:07:05 [end_date_ymd] => 2025-03-06 22:07:05 [RateCDR] => 1 ) [2025-03-06 22:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 19:07:05' and `end` < '2025-03-06 22:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 22:07:17] Production.INFO: count ==1140 [2025-03-06 22:07:17] Production.ERROR: pbx CDR StartTime 2025-03-06 19:07:05 - End Time 2025-03-06 22:07:05 [2025-03-06 22:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 22:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623425', 'tblTempUsageDetail_20' ) start [2025-03-06 22:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623425', 'tblTempUsageDetail_20' ) end [2025-03-06 22:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623425', 'tblTempVendorCDR_20' ) start [2025-03-06 22:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623425', 'tblTempVendorCDR_20' ) end [2025-03-06 22:07:18] Production.INFO: ProcessCDR(1,14623425,1,1,2) [2025-03-06 22:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14623425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 22:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14623425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 22:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14623425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 22:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14623425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 22:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623425', 'tblTempUsageDetail_20' ) start [2025-03-06 22:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623425', 'tblTempUsageDetail_20' ) end [2025-03-06 22:07:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 22:07:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 22:07:22] Production.INFO: ==7548== Releasing lock... [2025-03-06 22:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 22:07:22] Production.INFO: 36.25 MB #Memory Used# [2025-03-06 22:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 19:08:05 [end_date_ymd] => 2025-03-06 22:08:05 [RateCDR] => 1 ) [2025-03-06 22:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 19:08:05' and `end` < '2025-03-06 22:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 22:08:17] Production.INFO: count ==1143 [2025-03-06 22:08:18] Production.ERROR: pbx CDR StartTime 2025-03-06 19:08:05 - End Time 2025-03-06 22:08:05 [2025-03-06 22:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623430', 'tblTempUsageDetail_20' ) start [2025-03-06 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623430', 'tblTempUsageDetail_20' ) end [2025-03-06 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623430', 'tblTempVendorCDR_20' ) start [2025-03-06 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623430', 'tblTempVendorCDR_20' ) end [2025-03-06 22:08:18] Production.INFO: ProcessCDR(1,14623430,1,1,2) [2025-03-06 22:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14623430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 22:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14623430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 22:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14623430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 22:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14623430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 22:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623430', 'tblTempUsageDetail_20' ) start [2025-03-06 22:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623430', 'tblTempUsageDetail_20' ) end [2025-03-06 22:08:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 22:08:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 22:08:21] Production.INFO: ==7644== Releasing lock... [2025-03-06 22:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 22:08:21] Production.INFO: 36.25 MB #Memory Used# [2025-03-06 22:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 19:09:05 [end_date_ymd] => 2025-03-06 22:09:05 [RateCDR] => 1 ) [2025-03-06 22:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 19:09:05' and `end` < '2025-03-06 22:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 22:09:17] Production.INFO: count ==1146 [2025-03-06 22:09:17] Production.ERROR: pbx CDR StartTime 2025-03-06 19:09:05 - End Time 2025-03-06 22:09:05 [2025-03-06 22:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 22:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623435', 'tblTempUsageDetail_20' ) start [2025-03-06 22:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623435', 'tblTempUsageDetail_20' ) end [2025-03-06 22:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623435', 'tblTempVendorCDR_20' ) start [2025-03-06 22:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623435', 'tblTempVendorCDR_20' ) end [2025-03-06 22:09:17] Production.INFO: ProcessCDR(1,14623435,1,1,2) [2025-03-06 22:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14623435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 22:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14623435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 22:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14623435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 22:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14623435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 22:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623435', 'tblTempUsageDetail_20' ) start [2025-03-06 22:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623435', 'tblTempUsageDetail_20' ) end [2025-03-06 22:09:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 22:09:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 22:09:22] Production.INFO: ==7738== Releasing lock... [2025-03-06 22:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 22:09:22] Production.INFO: 36.25 MB #Memory Used# [2025-03-06 22:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 19:10:05 [end_date_ymd] => 2025-03-06 22:10:05 [RateCDR] => 1 ) [2025-03-06 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-03-06 19:10:05' and `end` < '2025-03-06 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-03-06 22:10:18] Production.INFO: count ==1146 [2025-03-06 22:10:18] Production.ERROR: pbx CDR StartTime 2025-03-06 19:10:05 - End Time 2025-03-06 22:10:05 [2025-03-06 22:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 22:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623440', 'tblTempUsageDetail_20' ) start [2025-03-06 22:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623440', 'tblTempUsageDetail_20' ) end [2025-03-06 22:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623440', 'tblTempVendorCDR_20' ) start [2025-03-06 22:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623440', 'tblTempVendorCDR_20' ) end [2025-03-06 22:10:18] Production.INFO: ProcessCDR(1,14623440,1,1,2) [2025-03-06 22:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14623440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 22:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14623440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 22:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14623440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 22:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14623440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 22:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623440', 'tblTempUsageDetail_20' ) start [2025-03-06 22:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623440', 'tblTempUsageDetail_20' ) end [2025-03-06 22:10:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 22:10:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 22:10:21] Production.INFO: ==7833== Releasing lock... [2025-03-06 22:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 22:10:21] Production.INFO: 36.25 MB #Memory Used# [2025-03-06 22:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 19:11:06 [end_date_ymd] => 2025-03-06 22:11:06 [RateCDR] => 1 ) [2025-03-06 22: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-03-06 19:11:06' and `end` < '2025-03-06 22: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-03-06 22:11:18] Production.INFO: count ==1136 [2025-03-06 22:11:18] Production.ERROR: pbx CDR StartTime 2025-03-06 19:11:06 - End Time 2025-03-06 22:11:06 [2025-03-06 22:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 22:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623446', 'tblTempUsageDetail_20' ) start [2025-03-06 22:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623446', 'tblTempUsageDetail_20' ) end [2025-03-06 22:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623446', 'tblTempVendorCDR_20' ) start [2025-03-06 22:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623446', 'tblTempVendorCDR_20' ) end [2025-03-06 22:11:18] Production.INFO: ProcessCDR(1,14623446,1,1,2) [2025-03-06 22:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14623446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 22:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14623446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 22:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14623446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 22:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14623446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 22:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623446', 'tblTempUsageDetail_20' ) start [2025-03-06 22:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623446', 'tblTempUsageDetail_20' ) end [2025-03-06 22:11:23] Production.ERROR: pbx prc_insertCDR start [2025-03-06 22:11:23] Production.ERROR: pbx prc_insertCDR end [2025-03-06 22:11:23] Production.INFO: ==7969== Releasing lock... [2025-03-06 22:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 22:11:23] Production.INFO: 36 MB #Memory Used# [2025-03-06 22:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 19:12:05 [end_date_ymd] => 2025-03-06 22:12:05 [RateCDR] => 1 ) [2025-03-06 22:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 19:12:05' and `end` < '2025-03-06 22:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 22:12:17] Production.INFO: count ==1133 [2025-03-06 22:12:17] Production.ERROR: pbx CDR StartTime 2025-03-06 19:12:05 - End Time 2025-03-06 22:12:05 [2025-03-06 22:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 22:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623451', 'tblTempUsageDetail_20' ) start [2025-03-06 22:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623451', 'tblTempUsageDetail_20' ) end [2025-03-06 22:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623451', 'tblTempVendorCDR_20' ) start [2025-03-06 22:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623451', 'tblTempVendorCDR_20' ) end [2025-03-06 22:12:17] Production.INFO: ProcessCDR(1,14623451,1,1,2) [2025-03-06 22:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14623451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 22:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14623451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 22:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14623451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 22:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14623451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 22:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623451', 'tblTempUsageDetail_20' ) start [2025-03-06 22:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623451', 'tblTempUsageDetail_20' ) end [2025-03-06 22:12:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 22:12:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 22:12:21] Production.INFO: ==8063== Releasing lock... [2025-03-06 22:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 22:12:21] Production.INFO: 36 MB #Memory Used# [2025-03-06 22:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 19:13:05 [end_date_ymd] => 2025-03-06 22:13:05 [RateCDR] => 1 ) [2025-03-06 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-03-06 19:13:05' and `end` < '2025-03-06 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-03-06 22:13:17] Production.INFO: count ==1130 [2025-03-06 22:13:18] Production.ERROR: pbx CDR StartTime 2025-03-06 19:13:05 - End Time 2025-03-06 22:13:05 [2025-03-06 22:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623456', 'tblTempUsageDetail_20' ) start [2025-03-06 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623456', 'tblTempUsageDetail_20' ) end [2025-03-06 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623456', 'tblTempVendorCDR_20' ) start [2025-03-06 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623456', 'tblTempVendorCDR_20' ) end [2025-03-06 22:13:18] Production.INFO: ProcessCDR(1,14623456,1,1,2) [2025-03-06 22:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14623456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 22:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14623456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 22:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14623456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 22:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14623456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 22:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623456', 'tblTempUsageDetail_20' ) start [2025-03-06 22:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623456', 'tblTempUsageDetail_20' ) end [2025-03-06 22:13:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 22:13:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 22:13:21] Production.INFO: ==8162== Releasing lock... [2025-03-06 22:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 22:13:21] Production.INFO: 36 MB #Memory Used# [2025-03-06 22:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 19:14:05 [end_date_ymd] => 2025-03-06 22:14:05 [RateCDR] => 1 ) [2025-03-06 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-03-06 19:14:05' and `end` < '2025-03-06 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-03-06 22:14:17] Production.INFO: count ==1130 [2025-03-06 22:14:17] Production.ERROR: pbx CDR StartTime 2025-03-06 19:14:05 - End Time 2025-03-06 22:14:05 [2025-03-06 22:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 22:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623461', 'tblTempUsageDetail_20' ) start [2025-03-06 22:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623461', 'tblTempUsageDetail_20' ) end [2025-03-06 22:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623461', 'tblTempVendorCDR_20' ) start [2025-03-06 22:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623461', 'tblTempVendorCDR_20' ) end [2025-03-06 22:14:17] Production.INFO: ProcessCDR(1,14623461,1,1,2) [2025-03-06 22:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14623461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 22:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14623461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 22:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14623461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 22:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14623461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 22:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623461', 'tblTempUsageDetail_20' ) start [2025-03-06 22:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623461', 'tblTempUsageDetail_20' ) end [2025-03-06 22:14:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 22:14:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 22:14:22] Production.INFO: ==8257== Releasing lock... [2025-03-06 22:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 22:14:22] Production.INFO: 36 MB #Memory Used# [2025-03-06 22:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 19:15:05 [end_date_ymd] => 2025-03-06 22:15:05 [RateCDR] => 1 ) [2025-03-06 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-03-06 19:15:05' and `end` < '2025-03-06 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-03-06 22:15:17] Production.INFO: count ==1137 [2025-03-06 22:15:17] Production.ERROR: pbx CDR StartTime 2025-03-06 19:15:05 - End Time 2025-03-06 22:15:05 [2025-03-06 22:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 22:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623466', 'tblTempUsageDetail_20' ) start [2025-03-06 22:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623466', 'tblTempUsageDetail_20' ) end [2025-03-06 22:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623466', 'tblTempVendorCDR_20' ) start [2025-03-06 22:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623466', 'tblTempVendorCDR_20' ) end [2025-03-06 22:15:17] Production.INFO: ProcessCDR(1,14623466,1,1,2) [2025-03-06 22:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14623466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 22:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14623466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 22:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14623466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 22:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14623466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 22:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623466', 'tblTempUsageDetail_20' ) start [2025-03-06 22:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623466', 'tblTempUsageDetail_20' ) end [2025-03-06 22:15:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 22:15:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 22:15:21] Production.INFO: ==8351== Releasing lock... [2025-03-06 22:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 22:15:21] Production.INFO: 36 MB #Memory Used# [2025-03-06 22:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 19:16:06 [end_date_ymd] => 2025-03-06 22:16:06 [RateCDR] => 1 ) [2025-03-06 22: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-03-06 19:16:06' and `end` < '2025-03-06 22: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-03-06 22:16:18] Production.INFO: count ==1138 [2025-03-06 22:16:18] Production.ERROR: pbx CDR StartTime 2025-03-06 19:16:06 - End Time 2025-03-06 22:16:06 [2025-03-06 22:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623471', 'tblTempUsageDetail_20' ) start [2025-03-06 22:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623471', 'tblTempUsageDetail_20' ) end [2025-03-06 22:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623471', 'tblTempVendorCDR_20' ) start [2025-03-06 22:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623471', 'tblTempVendorCDR_20' ) end [2025-03-06 22:16:19] Production.INFO: ProcessCDR(1,14623471,1,1,2) [2025-03-06 22:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14623471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 22:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14623471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 22:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14623471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 22:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14623471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 22:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623471', 'tblTempUsageDetail_20' ) start [2025-03-06 22:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623471', 'tblTempUsageDetail_20' ) end [2025-03-06 22:16:23] Production.ERROR: pbx prc_insertCDR start [2025-03-06 22:16:23] Production.ERROR: pbx prc_insertCDR end [2025-03-06 22:16:23] Production.INFO: ==8444== Releasing lock... [2025-03-06 22:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 22:16:23] Production.INFO: 36 MB #Memory Used# [2025-03-06 22:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 19:17:05 [end_date_ymd] => 2025-03-06 22:17:05 [RateCDR] => 1 ) [2025-03-06 22:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 19:17:05' and `end` < '2025-03-06 22:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 22:17:18] Production.INFO: count ==1136 [2025-03-06 22:17:18] Production.ERROR: pbx CDR StartTime 2025-03-06 19:17:05 - End Time 2025-03-06 22:17:05 [2025-03-06 22:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 22:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623476', 'tblTempUsageDetail_20' ) start [2025-03-06 22:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623476', 'tblTempUsageDetail_20' ) end [2025-03-06 22:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623476', 'tblTempVendorCDR_20' ) start [2025-03-06 22:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623476', 'tblTempVendorCDR_20' ) end [2025-03-06 22:17:18] Production.INFO: ProcessCDR(1,14623476,1,1,2) [2025-03-06 22:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14623476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 22:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14623476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 22:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14623476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 22:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14623476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 22:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623476', 'tblTempUsageDetail_20' ) start [2025-03-06 22:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623476', 'tblTempUsageDetail_20' ) end [2025-03-06 22:17:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 22:17:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 22:17:22] Production.INFO: ==8554== Releasing lock... [2025-03-06 22:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 22:17:22] Production.INFO: 36 MB #Memory Used# [2025-03-06 22:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 19:18:05 [end_date_ymd] => 2025-03-06 22:18:05 [RateCDR] => 1 ) [2025-03-06 22:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 19:18:05' and `end` < '2025-03-06 22:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 22:18:17] Production.INFO: count ==1133 [2025-03-06 22:18:18] Production.ERROR: pbx CDR StartTime 2025-03-06 19:18:05 - End Time 2025-03-06 22:18:05 [2025-03-06 22:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623481', 'tblTempUsageDetail_20' ) start [2025-03-06 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623481', 'tblTempUsageDetail_20' ) end [2025-03-06 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623481', 'tblTempVendorCDR_20' ) start [2025-03-06 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623481', 'tblTempVendorCDR_20' ) end [2025-03-06 22:18:18] Production.INFO: ProcessCDR(1,14623481,1,1,2) [2025-03-06 22:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14623481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 22:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14623481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 22:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14623481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 22:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14623481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 22:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623481', 'tblTempUsageDetail_20' ) start [2025-03-06 22:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623481', 'tblTempUsageDetail_20' ) end [2025-03-06 22:18:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 22:18:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 22:18:22] Production.INFO: ==8656== Releasing lock... [2025-03-06 22:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 22:18:22] Production.INFO: 36 MB #Memory Used# [2025-03-06 22:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 19:19:05 [end_date_ymd] => 2025-03-06 22:19:05 [RateCDR] => 1 ) [2025-03-06 22:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 19:19:05' and `end` < '2025-03-06 22:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 22:19:17] Production.INFO: count ==1136 [2025-03-06 22:19:17] Production.ERROR: pbx CDR StartTime 2025-03-06 19:19:05 - End Time 2025-03-06 22:19:05 [2025-03-06 22:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 22:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623486', 'tblTempUsageDetail_20' ) start [2025-03-06 22:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623486', 'tblTempUsageDetail_20' ) end [2025-03-06 22:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623486', 'tblTempVendorCDR_20' ) start [2025-03-06 22:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623486', 'tblTempVendorCDR_20' ) end [2025-03-06 22:19:17] Production.INFO: ProcessCDR(1,14623486,1,1,2) [2025-03-06 22:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14623486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 22:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14623486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 22:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14623486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 22:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14623486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 22:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623486', 'tblTempUsageDetail_20' ) start [2025-03-06 22:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623486', 'tblTempUsageDetail_20' ) end [2025-03-06 22:19:20] Production.ERROR: pbx prc_insertCDR start [2025-03-06 22:19:20] Production.ERROR: pbx prc_insertCDR end [2025-03-06 22:19:20] Production.INFO: ==8749== Releasing lock... [2025-03-06 22:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 22:19:20] Production.INFO: 36 MB #Memory Used# [2025-03-06 22:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 19:20:05 [end_date_ymd] => 2025-03-06 22:20:05 [RateCDR] => 1 ) [2025-03-06 22:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 19:20:05' and `end` < '2025-03-06 22:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 22:20:18] Production.INFO: count ==1136 [2025-03-06 22:20:18] Production.ERROR: pbx CDR StartTime 2025-03-06 19:20:05 - End Time 2025-03-06 22:20:05 [2025-03-06 22:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 22:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623492', 'tblTempUsageDetail_20' ) start [2025-03-06 22:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623492', 'tblTempUsageDetail_20' ) end [2025-03-06 22:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623492', 'tblTempVendorCDR_20' ) start [2025-03-06 22:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623492', 'tblTempVendorCDR_20' ) end [2025-03-06 22:20:18] Production.INFO: ProcessCDR(1,14623492,1,1,2) [2025-03-06 22:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14623492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 22:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14623492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 22:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14623492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 22:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14623492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 22:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623492', 'tblTempUsageDetail_20' ) start [2025-03-06 22:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623492', 'tblTempUsageDetail_20' ) end [2025-03-06 22:20:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 22:20:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 22:20:21] Production.INFO: ==8851== Releasing lock... [2025-03-06 22:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 22:20:21] Production.INFO: 36 MB #Memory Used# [2025-03-06 22:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 19:21:05 [end_date_ymd] => 2025-03-06 22:21:05 [RateCDR] => 1 ) [2025-03-06 22:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 19:21:05' and `end` < '2025-03-06 22:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 22:21:18] Production.INFO: count ==1089 [2025-03-06 22:21:18] Production.ERROR: pbx CDR StartTime 2025-03-06 19:21:05 - End Time 2025-03-06 22:21:05 [2025-03-06 22:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623497', 'tblTempUsageDetail_20' ) start [2025-03-06 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623497', 'tblTempUsageDetail_20' ) end [2025-03-06 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623497', 'tblTempVendorCDR_20' ) start [2025-03-06 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623497', 'tblTempVendorCDR_20' ) end [2025-03-06 22:21:18] Production.INFO: ProcessCDR(1,14623497,1,1,2) [2025-03-06 22:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14623497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 22:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14623497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 22:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14623497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 22:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14623497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 22:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623497', 'tblTempUsageDetail_20' ) start [2025-03-06 22:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623497', 'tblTempUsageDetail_20' ) end [2025-03-06 22:21:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 22:21:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 22:21:21] Production.INFO: ==8943== Releasing lock... [2025-03-06 22:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 22:21:21] Production.INFO: 36 MB #Memory Used# [2025-03-06 22:22:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 19:22:07 [end_date_ymd] => 2025-03-06 22:22:07 [RateCDR] => 1 ) [2025-03-06 22:22: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-03-06 19:22:07' and `end` < '2025-03-06 22:22: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-03-06 22:22:19] Production.INFO: count ==1088 [2025-03-06 22:22:19] Production.ERROR: pbx CDR StartTime 2025-03-06 19:22:07 - End Time 2025-03-06 22:22:07 [2025-03-06 22:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 22:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623502', 'tblTempUsageDetail_20' ) start [2025-03-06 22:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623502', 'tblTempUsageDetail_20' ) end [2025-03-06 22:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623502', 'tblTempVendorCDR_20' ) start [2025-03-06 22:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623502', 'tblTempVendorCDR_20' ) end [2025-03-06 22:22:19] Production.INFO: ProcessCDR(1,14623502,1,1,2) [2025-03-06 22:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14623502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 22:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14623502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 22:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14623502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 22:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14623502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 22:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623502', 'tblTempUsageDetail_20' ) start [2025-03-06 22:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623502', 'tblTempUsageDetail_20' ) end [2025-03-06 22:22:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 22:22:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 22:22:22] Production.INFO: ==9015== Releasing lock... [2025-03-06 22:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 22:22:22] Production.INFO: 36 MB #Memory Used# [2025-03-06 22:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 19:23:05 [end_date_ymd] => 2025-03-06 22:23:05 [RateCDR] => 1 ) [2025-03-06 22:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 19:23:05' and `end` < '2025-03-06 22:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 22:23:17] Production.INFO: count ==1084 [2025-03-06 22:23:18] Production.ERROR: pbx CDR StartTime 2025-03-06 19:23:05 - End Time 2025-03-06 22:23:05 [2025-03-06 22:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 22:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623507', 'tblTempUsageDetail_20' ) start [2025-03-06 22:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623507', 'tblTempUsageDetail_20' ) end [2025-03-06 22:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623507', 'tblTempVendorCDR_20' ) start [2025-03-06 22:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623507', 'tblTempVendorCDR_20' ) end [2025-03-06 22:23:18] Production.INFO: ProcessCDR(1,14623507,1,1,2) [2025-03-06 22:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14623507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 22:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14623507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 22:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14623507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 22:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14623507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 22:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623507', 'tblTempUsageDetail_20' ) start [2025-03-06 22:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623507', 'tblTempUsageDetail_20' ) end [2025-03-06 22:23:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 22:23:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 22:23:21] Production.INFO: ==9086== Releasing lock... [2025-03-06 22:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 22:23:21] Production.INFO: 35.75 MB #Memory Used# [2025-03-06 22:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 19:24:05 [end_date_ymd] => 2025-03-06 22:24:05 [RateCDR] => 1 ) [2025-03-06 22:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 19:24:05' and `end` < '2025-03-06 22:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 22:24:17] Production.INFO: count ==1083 [2025-03-06 22:24:17] Production.ERROR: pbx CDR StartTime 2025-03-06 19:24:05 - End Time 2025-03-06 22:24:05 [2025-03-06 22:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 22:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623512', 'tblTempUsageDetail_20' ) start [2025-03-06 22:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623512', 'tblTempUsageDetail_20' ) end [2025-03-06 22:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623512', 'tblTempVendorCDR_20' ) start [2025-03-06 22:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623512', 'tblTempVendorCDR_20' ) end [2025-03-06 22:24:17] Production.INFO: ProcessCDR(1,14623512,1,1,2) [2025-03-06 22:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14623512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 22:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14623512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 22:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14623512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 22:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14623512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 22:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623512', 'tblTempUsageDetail_20' ) start [2025-03-06 22:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623512', 'tblTempUsageDetail_20' ) end [2025-03-06 22:24:20] Production.ERROR: pbx prc_insertCDR start [2025-03-06 22:24:20] Production.ERROR: pbx prc_insertCDR end [2025-03-06 22:24:20] Production.INFO: ==9157== Releasing lock... [2025-03-06 22:24:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 22:24:20] Production.INFO: 36 MB #Memory Used# [2025-03-06 22:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 19:25:05 [end_date_ymd] => 2025-03-06 22:25:05 [RateCDR] => 1 ) [2025-03-06 22:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 19:25:05' and `end` < '2025-03-06 22:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 22:25:17] Production.INFO: count ==1079 [2025-03-06 22:25:17] Production.ERROR: pbx CDR StartTime 2025-03-06 19:25:05 - End Time 2025-03-06 22:25:05 [2025-03-06 22:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 22:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623517', 'tblTempUsageDetail_20' ) start [2025-03-06 22:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623517', 'tblTempUsageDetail_20' ) end [2025-03-06 22:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623517', 'tblTempVendorCDR_20' ) start [2025-03-06 22:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623517', 'tblTempVendorCDR_20' ) end [2025-03-06 22:25:17] Production.INFO: ProcessCDR(1,14623517,1,1,2) [2025-03-06 22:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14623517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 22:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14623517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 22:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14623517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 22:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14623517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 22:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623517', 'tblTempUsageDetail_20' ) start [2025-03-06 22:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623517', 'tblTempUsageDetail_20' ) end [2025-03-06 22:25:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 22:25:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 22:25:22] Production.INFO: ==9228== Releasing lock... [2025-03-06 22:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 22:25:22] Production.INFO: 35.75 MB #Memory Used# [2025-03-06 22:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 19:26:05 [end_date_ymd] => 2025-03-06 22:26:05 [RateCDR] => 1 ) [2025-03-06 22:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 19:26:05' and `end` < '2025-03-06 22:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 22:26:18] Production.INFO: count ==1073 [2025-03-06 22:26:18] Production.ERROR: pbx CDR StartTime 2025-03-06 19:26:05 - End Time 2025-03-06 22:26:05 [2025-03-06 22:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623522', 'tblTempUsageDetail_20' ) start [2025-03-06 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623522', 'tblTempUsageDetail_20' ) end [2025-03-06 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623522', 'tblTempVendorCDR_20' ) start [2025-03-06 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623522', 'tblTempVendorCDR_20' ) end [2025-03-06 22:26:18] Production.INFO: ProcessCDR(1,14623522,1,1,2) [2025-03-06 22:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14623522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 22:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14623522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 22:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14623522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 22:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14623522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 22:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623522', 'tblTempUsageDetail_20' ) start [2025-03-06 22:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623522', 'tblTempUsageDetail_20' ) end [2025-03-06 22:26:23] Production.ERROR: pbx prc_insertCDR start [2025-03-06 22:26:23] Production.ERROR: pbx prc_insertCDR end [2025-03-06 22:26:23] Production.INFO: ==9303== Releasing lock... [2025-03-06 22:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 22:26:23] Production.INFO: 35.75 MB #Memory Used# [2025-03-06 22:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 19:27:05 [end_date_ymd] => 2025-03-06 22:27:05 [RateCDR] => 1 ) [2025-03-06 22:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 19:27:05' and `end` < '2025-03-06 22:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 22:27:17] Production.INFO: count ==1077 [2025-03-06 22:27:17] Production.ERROR: pbx CDR StartTime 2025-03-06 19:27:05 - End Time 2025-03-06 22:27:05 [2025-03-06 22:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 22:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623527', 'tblTempUsageDetail_20' ) start [2025-03-06 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623527', 'tblTempUsageDetail_20' ) end [2025-03-06 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623527', 'tblTempVendorCDR_20' ) start [2025-03-06 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623527', 'tblTempVendorCDR_20' ) end [2025-03-06 22:27:18] Production.INFO: ProcessCDR(1,14623527,1,1,2) [2025-03-06 22:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14623527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 22:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14623527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 22:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14623527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 22:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14623527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 22:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623527', 'tblTempUsageDetail_20' ) start [2025-03-06 22:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623527', 'tblTempUsageDetail_20' ) end [2025-03-06 22:27:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 22:27:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 22:27:21] Production.INFO: ==9417== Releasing lock... [2025-03-06 22:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 22:27:21] Production.INFO: 35.75 MB #Memory Used# [2025-03-06 22:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 19:28:06 [end_date_ymd] => 2025-03-06 22:28:06 [RateCDR] => 1 ) [2025-03-06 22:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 19:28:06' and `end` < '2025-03-06 22:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 22:28:18] Production.INFO: count ==1079 [2025-03-06 22:28:18] Production.ERROR: pbx CDR StartTime 2025-03-06 19:28:06 - End Time 2025-03-06 22:28:06 [2025-03-06 22:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623532', 'tblTempUsageDetail_20' ) start [2025-03-06 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623532', 'tblTempUsageDetail_20' ) end [2025-03-06 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623532', 'tblTempVendorCDR_20' ) start [2025-03-06 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623532', 'tblTempVendorCDR_20' ) end [2025-03-06 22:28:18] Production.INFO: ProcessCDR(1,14623532,1,1,2) [2025-03-06 22:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14623532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 22:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14623532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 22:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14623532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 22:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14623532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 22:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623532', 'tblTempUsageDetail_20' ) start [2025-03-06 22:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623532', 'tblTempUsageDetail_20' ) end [2025-03-06 22:28:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 22:28:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 22:28:22] Production.INFO: ==9488== Releasing lock... [2025-03-06 22:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 22:28:22] Production.INFO: 35.75 MB #Memory Used# [2025-03-06 22:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 19:29:05 [end_date_ymd] => 2025-03-06 22:29:05 [RateCDR] => 1 ) [2025-03-06 22:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 19:29:05' and `end` < '2025-03-06 22:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 22:29:17] Production.INFO: count ==1078 [2025-03-06 22:29:17] Production.ERROR: pbx CDR StartTime 2025-03-06 19:29:05 - End Time 2025-03-06 22:29:05 [2025-03-06 22:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 22:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623537', 'tblTempUsageDetail_20' ) start [2025-03-06 22:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623537', 'tblTempUsageDetail_20' ) end [2025-03-06 22:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623537', 'tblTempVendorCDR_20' ) start [2025-03-06 22:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623537', 'tblTempVendorCDR_20' ) end [2025-03-06 22:29:18] Production.INFO: ProcessCDR(1,14623537,1,1,2) [2025-03-06 22:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14623537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 22:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14623537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 22:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14623537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 22:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14623537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 22:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623537', 'tblTempUsageDetail_20' ) start [2025-03-06 22:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623537', 'tblTempUsageDetail_20' ) end [2025-03-06 22:29:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 22:29:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 22:29:21] Production.INFO: ==9559== Releasing lock... [2025-03-06 22:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 22:29:21] Production.INFO: 35.75 MB #Memory Used# [2025-03-06 22:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 19:30:06 [end_date_ymd] => 2025-03-06 22:30:06 [RateCDR] => 1 ) [2025-03-06 22:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 19:30:06' and `end` < '2025-03-06 22:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 22:30:18] Production.INFO: count ==1081 [2025-03-06 22:30:19] Production.ERROR: pbx CDR StartTime 2025-03-06 19:30:06 - End Time 2025-03-06 22:30:06 [2025-03-06 22:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623543', 'tblTempUsageDetail_20' ) start [2025-03-06 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623543', 'tblTempUsageDetail_20' ) end [2025-03-06 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623543', 'tblTempVendorCDR_20' ) start [2025-03-06 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623543', 'tblTempVendorCDR_20' ) end [2025-03-06 22:30:19] Production.INFO: ProcessCDR(1,14623543,1,1,2) [2025-03-06 22:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14623543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 22:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14623543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 22:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14623543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 22:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14623543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 22:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623543', 'tblTempUsageDetail_20' ) start [2025-03-06 22:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623543', 'tblTempUsageDetail_20' ) end [2025-03-06 22:30:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 22:30:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 22:30:22] Production.INFO: ==9634== Releasing lock... [2025-03-06 22:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 22:30:22] Production.INFO: 35.75 MB #Memory Used# [2025-03-06 22:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 19:31:05 [end_date_ymd] => 2025-03-06 22:31:05 [RateCDR] => 1 ) [2025-03-06 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-03-06 19:31:05' and `end` < '2025-03-06 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-03-06 22:31:17] Production.INFO: count ==1053 [2025-03-06 22:31:17] Production.ERROR: pbx CDR StartTime 2025-03-06 19:31:05 - End Time 2025-03-06 22:31:05 [2025-03-06 22:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 22:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623548', 'tblTempUsageDetail_20' ) start [2025-03-06 22:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623548', 'tblTempUsageDetail_20' ) end [2025-03-06 22:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623548', 'tblTempVendorCDR_20' ) start [2025-03-06 22:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623548', 'tblTempVendorCDR_20' ) end [2025-03-06 22:31:17] Production.INFO: ProcessCDR(1,14623548,1,1,2) [2025-03-06 22:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14623548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 22:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14623548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 22:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14623548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 22:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14623548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 22:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623548', 'tblTempUsageDetail_20' ) start [2025-03-06 22:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623548', 'tblTempUsageDetail_20' ) end [2025-03-06 22:31:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 22:31:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 22:31:21] Production.INFO: ==9705== Releasing lock... [2025-03-06 22:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 22:31:21] Production.INFO: 35.75 MB #Memory Used# [2025-03-06 22:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 19:32:06 [end_date_ymd] => 2025-03-06 22:32:06 [RateCDR] => 1 ) [2025-03-06 22: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-03-06 19:32:06' and `end` < '2025-03-06 22: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-03-06 22:32:18] Production.INFO: count ==1052 [2025-03-06 22:32:18] Production.ERROR: pbx CDR StartTime 2025-03-06 19:32:06 - End Time 2025-03-06 22:32:06 [2025-03-06 22:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623553', 'tblTempUsageDetail_20' ) start [2025-03-06 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623553', 'tblTempUsageDetail_20' ) end [2025-03-06 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623553', 'tblTempVendorCDR_20' ) start [2025-03-06 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623553', 'tblTempVendorCDR_20' ) end [2025-03-06 22:32:18] Production.INFO: ProcessCDR(1,14623553,1,1,2) [2025-03-06 22:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14623553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 22:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14623553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 22:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14623553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 22:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14623553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 22:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623553', 'tblTempUsageDetail_20' ) start [2025-03-06 22:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623553', 'tblTempUsageDetail_20' ) end [2025-03-06 22:32:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 22:32:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 22:32:22] Production.INFO: ==9782== Releasing lock... [2025-03-06 22:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 22:32:22] Production.INFO: 35.75 MB #Memory Used# [2025-03-06 22:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 19:33:05 [end_date_ymd] => 2025-03-06 22:33:05 [RateCDR] => 1 ) [2025-03-06 22:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 19:33:05' and `end` < '2025-03-06 22:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 22:33:17] Production.INFO: count ==1042 [2025-03-06 22:33:18] Production.ERROR: pbx CDR StartTime 2025-03-06 19:33:05 - End Time 2025-03-06 22:33:05 [2025-03-06 22:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623558', 'tblTempUsageDetail_20' ) start [2025-03-06 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623558', 'tblTempUsageDetail_20' ) end [2025-03-06 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623558', 'tblTempVendorCDR_20' ) start [2025-03-06 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623558', 'tblTempVendorCDR_20' ) end [2025-03-06 22:33:18] Production.INFO: ProcessCDR(1,14623558,1,1,2) [2025-03-06 22:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14623558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 22:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14623558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 22:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14623558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 22:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14623558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 22:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623558', 'tblTempUsageDetail_20' ) start [2025-03-06 22:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623558', 'tblTempUsageDetail_20' ) end [2025-03-06 22:33:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 22:33:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 22:33:21] Production.INFO: ==9852== Releasing lock... [2025-03-06 22:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 22:33:21] Production.INFO: 35.5 MB #Memory Used# [2025-03-06 22:34:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 19:34:07 [end_date_ymd] => 2025-03-06 22:34:07 [RateCDR] => 1 ) [2025-03-06 22:34: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-03-06 19:34:07' and `end` < '2025-03-06 22:34: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-03-06 22:34:19] Production.INFO: count ==1039 [2025-03-06 22:34:19] Production.ERROR: pbx CDR StartTime 2025-03-06 19:34:07 - End Time 2025-03-06 22:34:07 [2025-03-06 22:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 22:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623563', 'tblTempUsageDetail_20' ) start [2025-03-06 22:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623563', 'tblTempUsageDetail_20' ) end [2025-03-06 22:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623563', 'tblTempVendorCDR_20' ) start [2025-03-06 22:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623563', 'tblTempVendorCDR_20' ) end [2025-03-06 22:34:19] Production.INFO: ProcessCDR(1,14623563,1,1,2) [2025-03-06 22:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14623563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 22:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14623563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 22:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14623563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 22:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14623563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 22:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623563', 'tblTempUsageDetail_20' ) start [2025-03-06 22:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623563', 'tblTempUsageDetail_20' ) end [2025-03-06 22:34:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 22:34:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 22:34:22] Production.INFO: ==9925== Releasing lock... [2025-03-06 22:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 22:34:22] Production.INFO: 35.5 MB #Memory Used# [2025-03-06 22:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 19:35:05 [end_date_ymd] => 2025-03-06 22:35:05 [RateCDR] => 1 ) [2025-03-06 22:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 19:35:05' and `end` < '2025-03-06 22:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 22:35:17] Production.INFO: count ==1039 [2025-03-06 22:35:17] Production.ERROR: pbx CDR StartTime 2025-03-06 19:35:05 - End Time 2025-03-06 22:35:05 [2025-03-06 22:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 22:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623568', 'tblTempUsageDetail_20' ) start [2025-03-06 22:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623568', 'tblTempUsageDetail_20' ) end [2025-03-06 22:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623568', 'tblTempVendorCDR_20' ) start [2025-03-06 22:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623568', 'tblTempVendorCDR_20' ) end [2025-03-06 22:35:17] Production.INFO: ProcessCDR(1,14623568,1,1,2) [2025-03-06 22:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14623568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 22:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14623568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 22:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14623568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 22:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14623568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 22:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623568', 'tblTempUsageDetail_20' ) start [2025-03-06 22:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623568', 'tblTempUsageDetail_20' ) end [2025-03-06 22:35:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 22:35:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 22:35:21] Production.INFO: ==9995== Releasing lock... [2025-03-06 22:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 22:35:21] Production.INFO: 35.5 MB #Memory Used# [2025-03-06 22:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 19:36:06 [end_date_ymd] => 2025-03-06 22:36:06 [RateCDR] => 1 ) [2025-03-06 22: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-03-06 19:36:06' and `end` < '2025-03-06 22: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-03-06 22:36:18] Production.INFO: count ==1034 [2025-03-06 22:36:18] Production.ERROR: pbx CDR StartTime 2025-03-06 19:36:06 - End Time 2025-03-06 22:36:06 [2025-03-06 22:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 22:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623573', 'tblTempUsageDetail_20' ) start [2025-03-06 22:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623573', 'tblTempUsageDetail_20' ) end [2025-03-06 22:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623573', 'tblTempVendorCDR_20' ) start [2025-03-06 22:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623573', 'tblTempVendorCDR_20' ) end [2025-03-06 22:36:18] Production.INFO: ProcessCDR(1,14623573,1,1,2) [2025-03-06 22:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14623573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 22:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14623573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 22:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14623573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 22:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14623573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 22:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623573', 'tblTempUsageDetail_20' ) start [2025-03-06 22:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623573', 'tblTempUsageDetail_20' ) end [2025-03-06 22:36:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 22:36:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 22:36:22] Production.INFO: ==10066== Releasing lock... [2025-03-06 22:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 22:36:22] Production.INFO: 35.5 MB #Memory Used# [2025-03-06 22:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 19:37:05 [end_date_ymd] => 2025-03-06 22:37:05 [RateCDR] => 1 ) [2025-03-06 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-03-06 19:37:05' and `end` < '2025-03-06 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-03-06 22:37:18] Production.INFO: count ==1032 [2025-03-06 22:37:18] Production.ERROR: pbx CDR StartTime 2025-03-06 19:37:05 - End Time 2025-03-06 22:37:05 [2025-03-06 22:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623578', 'tblTempUsageDetail_20' ) start [2025-03-06 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623578', 'tblTempUsageDetail_20' ) end [2025-03-06 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623578', 'tblTempVendorCDR_20' ) start [2025-03-06 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623578', 'tblTempVendorCDR_20' ) end [2025-03-06 22:37:18] Production.INFO: ProcessCDR(1,14623578,1,1,2) [2025-03-06 22:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14623578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 22:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14623578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 22:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14623578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 22:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14623578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 22:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623578', 'tblTempUsageDetail_20' ) start [2025-03-06 22:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623578', 'tblTempUsageDetail_20' ) end [2025-03-06 22:37:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 22:37:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 22:37:21] Production.INFO: ==10142== Releasing lock... [2025-03-06 22:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 22:37:21] Production.INFO: 35.25 MB #Memory Used# [2025-03-06 22:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 19:38:06 [end_date_ymd] => 2025-03-06 22:38:06 [RateCDR] => 1 ) [2025-03-06 22: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-03-06 19:38:06' and `end` < '2025-03-06 22: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-03-06 22:38:18] Production.INFO: count ==1034 [2025-03-06 22:38:18] Production.ERROR: pbx CDR StartTime 2025-03-06 19:38:06 - End Time 2025-03-06 22:38:06 [2025-03-06 22:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623583', 'tblTempUsageDetail_20' ) start [2025-03-06 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623583', 'tblTempUsageDetail_20' ) end [2025-03-06 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623583', 'tblTempVendorCDR_20' ) start [2025-03-06 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623583', 'tblTempVendorCDR_20' ) end [2025-03-06 22:38:18] Production.INFO: ProcessCDR(1,14623583,1,1,2) [2025-03-06 22:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14623583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 22:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14623583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 22:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14623583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 22:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14623583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 22:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623583', 'tblTempUsageDetail_20' ) start [2025-03-06 22:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623583', 'tblTempUsageDetail_20' ) end [2025-03-06 22:38:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 22:38:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 22:38:21] Production.INFO: ==10214== Releasing lock... [2025-03-06 22:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 22:38:21] Production.INFO: 35.25 MB #Memory Used# [2025-03-06 22:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 19:39:05 [end_date_ymd] => 2025-03-06 22:39:05 [RateCDR] => 1 ) [2025-03-06 22: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-03-06 19:39:05' and `end` < '2025-03-06 22: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-03-06 22:39:17] Production.INFO: count ==1036 [2025-03-06 22:39:17] Production.ERROR: pbx CDR StartTime 2025-03-06 19:39:05 - End Time 2025-03-06 22:39:05 [2025-03-06 22:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 22:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623588', 'tblTempUsageDetail_20' ) start [2025-03-06 22:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623588', 'tblTempUsageDetail_20' ) end [2025-03-06 22:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623588', 'tblTempVendorCDR_20' ) start [2025-03-06 22:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623588', 'tblTempVendorCDR_20' ) end [2025-03-06 22:39:17] Production.INFO: ProcessCDR(1,14623588,1,1,2) [2025-03-06 22:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14623588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 22:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14623588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 22:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14623588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 22:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14623588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 22:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623588', 'tblTempUsageDetail_20' ) start [2025-03-06 22:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623588', 'tblTempUsageDetail_20' ) end [2025-03-06 22:39:20] Production.ERROR: pbx prc_insertCDR start [2025-03-06 22:39:20] Production.ERROR: pbx prc_insertCDR end [2025-03-06 22:39:20] Production.INFO: ==10288== Releasing lock... [2025-03-06 22:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 22:39:20] Production.INFO: 35.25 MB #Memory Used# [2025-03-06 22:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 19:40:07 [end_date_ymd] => 2025-03-06 22:40:07 [RateCDR] => 1 ) [2025-03-06 22:40:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 19:40:07' and `end` < '2025-03-06 22:40:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 22:40:19] Production.INFO: count ==1036 [2025-03-06 22:40:19] Production.ERROR: pbx CDR StartTime 2025-03-06 19:40:07 - End Time 2025-03-06 22:40:07 [2025-03-06 22:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623594', 'tblTempUsageDetail_20' ) start [2025-03-06 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623594', 'tblTempUsageDetail_20' ) end [2025-03-06 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623594', 'tblTempVendorCDR_20' ) start [2025-03-06 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623594', 'tblTempVendorCDR_20' ) end [2025-03-06 22:40:19] Production.INFO: ProcessCDR(1,14623594,1,1,2) [2025-03-06 22:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14623594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 22:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14623594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 22:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14623594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 22:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14623594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 22:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623594', 'tblTempUsageDetail_20' ) start [2025-03-06 22:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623594', 'tblTempUsageDetail_20' ) end [2025-03-06 22:40:24] Production.ERROR: pbx prc_insertCDR start [2025-03-06 22:40:24] Production.ERROR: pbx prc_insertCDR end [2025-03-06 22:40:24] Production.INFO: ==10361== Releasing lock... [2025-03-06 22:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 22:40:24] Production.INFO: 35.25 MB #Memory Used# [2025-03-06 22:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 19:41:05 [end_date_ymd] => 2025-03-06 22:41:05 [RateCDR] => 1 ) [2025-03-06 22:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 19:41:05' and `end` < '2025-03-06 22:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 22:41:17] Production.INFO: count ==1027 [2025-03-06 22:41:17] Production.ERROR: pbx CDR StartTime 2025-03-06 19:41:05 - End Time 2025-03-06 22:41:05 [2025-03-06 22:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 22:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623599', 'tblTempUsageDetail_20' ) start [2025-03-06 22:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623599', 'tblTempUsageDetail_20' ) end [2025-03-06 22:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623599', 'tblTempVendorCDR_20' ) start [2025-03-06 22:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623599', 'tblTempVendorCDR_20' ) end [2025-03-06 22:41:17] Production.INFO: ProcessCDR(1,14623599,1,1,2) [2025-03-06 22:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14623599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 22:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14623599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 22:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14623599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 22:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14623599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 22:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623599', 'tblTempUsageDetail_20' ) start [2025-03-06 22:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623599', 'tblTempUsageDetail_20' ) end [2025-03-06 22:41:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 22:41:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 22:41:21] Production.INFO: ==10434== Releasing lock... [2025-03-06 22:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 22:41:21] Production.INFO: 35.25 MB #Memory Used# [2025-03-06 22:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 19:42:06 [end_date_ymd] => 2025-03-06 22:42:06 [RateCDR] => 1 ) [2025-03-06 22: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-03-06 19:42:06' and `end` < '2025-03-06 22: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-03-06 22:42:18] Production.INFO: count ==1026 [2025-03-06 22:42:18] Production.ERROR: pbx CDR StartTime 2025-03-06 19:42:06 - End Time 2025-03-06 22:42:06 [2025-03-06 22:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 22:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623604', 'tblTempUsageDetail_20' ) start [2025-03-06 22:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623604', 'tblTempUsageDetail_20' ) end [2025-03-06 22:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623604', 'tblTempVendorCDR_20' ) start [2025-03-06 22:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623604', 'tblTempVendorCDR_20' ) end [2025-03-06 22:42:18] Production.INFO: ProcessCDR(1,14623604,1,1,2) [2025-03-06 22:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14623604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 22:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14623604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 22:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14623604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 22:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14623604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 22:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623604', 'tblTempUsageDetail_20' ) start [2025-03-06 22:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623604', 'tblTempUsageDetail_20' ) end [2025-03-06 22:42:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 22:42:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 22:42:22] Production.INFO: ==10544== Releasing lock... [2025-03-06 22:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 22:42:22] Production.INFO: 35.25 MB #Memory Used# [2025-03-06 22:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 19:43:05 [end_date_ymd] => 2025-03-06 22:43:05 [RateCDR] => 1 ) [2025-03-06 22:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 19:43:05' and `end` < '2025-03-06 22:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 22:43:17] Production.INFO: count ==1026 [2025-03-06 22:43:17] Production.ERROR: pbx CDR StartTime 2025-03-06 19:43:05 - End Time 2025-03-06 22:43:05 [2025-03-06 22:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 22:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623609', 'tblTempUsageDetail_20' ) start [2025-03-06 22:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623609', 'tblTempUsageDetail_20' ) end [2025-03-06 22:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623609', 'tblTempVendorCDR_20' ) start [2025-03-06 22:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623609', 'tblTempVendorCDR_20' ) end [2025-03-06 22:43:17] Production.INFO: ProcessCDR(1,14623609,1,1,2) [2025-03-06 22:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14623609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 22:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14623609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 22:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14623609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 22:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14623609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 22:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623609', 'tblTempUsageDetail_20' ) start [2025-03-06 22:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623609', 'tblTempUsageDetail_20' ) end [2025-03-06 22:43:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 22:43:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 22:43:22] Production.INFO: ==10613== Releasing lock... [2025-03-06 22:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 22:43:22] Production.INFO: 35.25 MB #Memory Used# [2025-03-06 22:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 19:44:06 [end_date_ymd] => 2025-03-06 22:44:06 [RateCDR] => 1 ) [2025-03-06 22:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 19:44:06' and `end` < '2025-03-06 22:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 22:44:18] Production.INFO: count ==1022 [2025-03-06 22:44:18] Production.ERROR: pbx CDR StartTime 2025-03-06 19:44:06 - End Time 2025-03-06 22:44:06 [2025-03-06 22:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623614', 'tblTempUsageDetail_20' ) start [2025-03-06 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623614', 'tblTempUsageDetail_20' ) end [2025-03-06 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623614', 'tblTempVendorCDR_20' ) start [2025-03-06 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623614', 'tblTempVendorCDR_20' ) end [2025-03-06 22:44:18] Production.INFO: ProcessCDR(1,14623614,1,1,2) [2025-03-06 22:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14623614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 22:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14623614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 22:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14623614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 22:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14623614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 22:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623614', 'tblTempUsageDetail_20' ) start [2025-03-06 22:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623614', 'tblTempUsageDetail_20' ) end [2025-03-06 22:44:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 22:44:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 22:44:22] Production.INFO: ==10685== Releasing lock... [2025-03-06 22:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 22:44:22] Production.INFO: 35.25 MB #Memory Used# [2025-03-06 22:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 19:45:05 [end_date_ymd] => 2025-03-06 22:45:05 [RateCDR] => 1 ) [2025-03-06 22:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 19:45:05' and `end` < '2025-03-06 22:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 22:45:17] Production.INFO: count ==1037 [2025-03-06 22:45:17] Production.ERROR: pbx CDR StartTime 2025-03-06 19:45:05 - End Time 2025-03-06 22:45:05 [2025-03-06 22:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 22:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623619', 'tblTempUsageDetail_20' ) start [2025-03-06 22:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623619', 'tblTempUsageDetail_20' ) end [2025-03-06 22:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623619', 'tblTempVendorCDR_20' ) start [2025-03-06 22:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623619', 'tblTempVendorCDR_20' ) end [2025-03-06 22:45:17] Production.INFO: ProcessCDR(1,14623619,1,1,2) [2025-03-06 22:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14623619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 22:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14623619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 22:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14623619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 22:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14623619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 22:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623619', 'tblTempUsageDetail_20' ) start [2025-03-06 22:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623619', 'tblTempUsageDetail_20' ) end [2025-03-06 22:45:20] Production.ERROR: pbx prc_insertCDR start [2025-03-06 22:45:20] Production.ERROR: pbx prc_insertCDR end [2025-03-06 22:45:20] Production.INFO: ==10758== Releasing lock... [2025-03-06 22:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 22:45:20] Production.INFO: 35.5 MB #Memory Used# [2025-03-06 22:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 19:46:05 [end_date_ymd] => 2025-03-06 22:46:05 [RateCDR] => 1 ) [2025-03-06 22:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 19:46:05' and `end` < '2025-03-06 22:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 22:46:18] Production.INFO: count ==1039 [2025-03-06 22:46:18] Production.ERROR: pbx CDR StartTime 2025-03-06 19:46:05 - End Time 2025-03-06 22:46:05 [2025-03-06 22:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623624', 'tblTempUsageDetail_20' ) start [2025-03-06 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623624', 'tblTempUsageDetail_20' ) end [2025-03-06 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623624', 'tblTempVendorCDR_20' ) start [2025-03-06 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623624', 'tblTempVendorCDR_20' ) end [2025-03-06 22:46:18] Production.INFO: ProcessCDR(1,14623624,1,1,2) [2025-03-06 22:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14623624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 22:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14623624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 22:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14623624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 22:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14623624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 22:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623624', 'tblTempUsageDetail_20' ) start [2025-03-06 22:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623624', 'tblTempUsageDetail_20' ) end [2025-03-06 22:46:23] Production.ERROR: pbx prc_insertCDR start [2025-03-06 22:46:23] Production.ERROR: pbx prc_insertCDR end [2025-03-06 22:46:23] Production.INFO: ==10833== Releasing lock... [2025-03-06 22:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 22:46:23] Production.INFO: 35.5 MB #Memory Used# [2025-03-06 22:47:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 19:47:04 [end_date_ymd] => 2025-03-06 22:47:04 [RateCDR] => 1 ) [2025-03-06 22: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-03-06 19:47:04' and `end` < '2025-03-06 22: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-03-06 22:47:17] Production.INFO: count ==1036 [2025-03-06 22:47:17] Production.ERROR: pbx CDR StartTime 2025-03-06 19:47:04 - End Time 2025-03-06 22:47:04 [2025-03-06 22:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 22:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623629', 'tblTempUsageDetail_20' ) start [2025-03-06 22:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623629', 'tblTempUsageDetail_20' ) end [2025-03-06 22:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623629', 'tblTempVendorCDR_20' ) start [2025-03-06 22:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623629', 'tblTempVendorCDR_20' ) end [2025-03-06 22:47:17] Production.INFO: ProcessCDR(1,14623629,1,1,2) [2025-03-06 22:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14623629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 22:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14623629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 22:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14623629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 22:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14623629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 22:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623629', 'tblTempUsageDetail_20' ) start [2025-03-06 22:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623629', 'tblTempUsageDetail_20' ) end [2025-03-06 22:47:20] Production.ERROR: pbx prc_insertCDR start [2025-03-06 22:47:20] Production.ERROR: pbx prc_insertCDR end [2025-03-06 22:47:20] Production.INFO: ==10910== Releasing lock... [2025-03-06 22:47:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 22:47:20] Production.INFO: 35.5 MB #Memory Used# [2025-03-06 22:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 19:48:05 [end_date_ymd] => 2025-03-06 22:48:05 [RateCDR] => 1 ) [2025-03-06 22:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 19:48:05' and `end` < '2025-03-06 22:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 22:48:18] Production.INFO: count ==1036 [2025-03-06 22:48:18] Production.ERROR: pbx CDR StartTime 2025-03-06 19:48:05 - End Time 2025-03-06 22:48:05 [2025-03-06 22:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 22:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623634', 'tblTempUsageDetail_20' ) start [2025-03-06 22:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623634', 'tblTempUsageDetail_20' ) end [2025-03-06 22:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623634', 'tblTempVendorCDR_20' ) start [2025-03-06 22:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623634', 'tblTempVendorCDR_20' ) end [2025-03-06 22:48:18] Production.INFO: ProcessCDR(1,14623634,1,1,2) [2025-03-06 22:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14623634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 22:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14623634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 22:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14623634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 22:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14623634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 22:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623634', 'tblTempUsageDetail_20' ) start [2025-03-06 22:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623634', 'tblTempUsageDetail_20' ) end [2025-03-06 22:48:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 22:48:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 22:48:21] Production.INFO: ==10983== Releasing lock... [2025-03-06 22:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 22:48:21] Production.INFO: 35.5 MB #Memory Used# [2025-03-06 22:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 19:49:05 [end_date_ymd] => 2025-03-06 22:49:05 [RateCDR] => 1 ) [2025-03-06 22:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 19:49:05' and `end` < '2025-03-06 22:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 22:49:17] Production.INFO: count ==1036 [2025-03-06 22:49:17] Production.ERROR: pbx CDR StartTime 2025-03-06 19:49:05 - End Time 2025-03-06 22:49:05 [2025-03-06 22:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 22:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623639', 'tblTempUsageDetail_20' ) start [2025-03-06 22:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623639', 'tblTempUsageDetail_20' ) end [2025-03-06 22:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623639', 'tblTempVendorCDR_20' ) start [2025-03-06 22:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623639', 'tblTempVendorCDR_20' ) end [2025-03-06 22:49:17] Production.INFO: ProcessCDR(1,14623639,1,1,2) [2025-03-06 22:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14623639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 22:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14623639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 22:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14623639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 22:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14623639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 22:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623639', 'tblTempUsageDetail_20' ) start [2025-03-06 22:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623639', 'tblTempUsageDetail_20' ) end [2025-03-06 22:49:20] Production.ERROR: pbx prc_insertCDR start [2025-03-06 22:49:20] Production.ERROR: pbx prc_insertCDR end [2025-03-06 22:49:20] Production.INFO: ==11052== Releasing lock... [2025-03-06 22:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 22:49:20] Production.INFO: 35.5 MB #Memory Used# [2025-03-06 22:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 19:50:06 [end_date_ymd] => 2025-03-06 22:50:06 [RateCDR] => 1 ) [2025-03-06 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-03-06 19:50:06' and `end` < '2025-03-06 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-03-06 22:50:18] Production.INFO: count ==1032 [2025-03-06 22:50:18] Production.ERROR: pbx CDR StartTime 2025-03-06 19:50:06 - End Time 2025-03-06 22:50:06 [2025-03-06 22:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 22:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623645', 'tblTempUsageDetail_20' ) start [2025-03-06 22:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623645', 'tblTempUsageDetail_20' ) end [2025-03-06 22:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623645', 'tblTempVendorCDR_20' ) start [2025-03-06 22:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623645', 'tblTempVendorCDR_20' ) end [2025-03-06 22:50:18] Production.INFO: ProcessCDR(1,14623645,1,1,2) [2025-03-06 22:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14623645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 22:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14623645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 22:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14623645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 22:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14623645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 22:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623645', 'tblTempUsageDetail_20' ) start [2025-03-06 22:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623645', 'tblTempUsageDetail_20' ) end [2025-03-06 22:50:23] Production.ERROR: pbx prc_insertCDR start [2025-03-06 22:50:23] Production.ERROR: pbx prc_insertCDR end [2025-03-06 22:50:23] Production.INFO: ==11127== Releasing lock... [2025-03-06 22:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 22:50:23] Production.INFO: 35.5 MB #Memory Used# [2025-03-06 22:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 19:51:05 [end_date_ymd] => 2025-03-06 22:51:05 [RateCDR] => 1 ) [2025-03-06 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-03-06 19:51:05' and `end` < '2025-03-06 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-03-06 22:51:18] Production.INFO: count ==1013 [2025-03-06 22:51:18] Production.ERROR: pbx CDR StartTime 2025-03-06 19:51:05 - End Time 2025-03-06 22:51:05 [2025-03-06 22:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623650', 'tblTempUsageDetail_20' ) start [2025-03-06 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623650', 'tblTempUsageDetail_20' ) end [2025-03-06 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623650', 'tblTempVendorCDR_20' ) start [2025-03-06 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623650', 'tblTempVendorCDR_20' ) end [2025-03-06 22:51:18] Production.INFO: ProcessCDR(1,14623650,1,1,2) [2025-03-06 22:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14623650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 22:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14623650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 22:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14623650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 22:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14623650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 22:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623650', 'tblTempUsageDetail_20' ) start [2025-03-06 22:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623650', 'tblTempUsageDetail_20' ) end [2025-03-06 22:51:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 22:51:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 22:51:22] Production.INFO: ==11204== Releasing lock... [2025-03-06 22:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 22:51:22] Production.INFO: 35.25 MB #Memory Used# [2025-03-06 22:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 19:52:06 [end_date_ymd] => 2025-03-06 22:52:06 [RateCDR] => 1 ) [2025-03-06 22: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-03-06 19:52:06' and `end` < '2025-03-06 22: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-03-06 22:52:18] Production.INFO: count ==1007 [2025-03-06 22:52:18] Production.ERROR: pbx CDR StartTime 2025-03-06 19:52:06 - End Time 2025-03-06 22:52:06 [2025-03-06 22:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623655', 'tblTempUsageDetail_20' ) start [2025-03-06 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623655', 'tblTempUsageDetail_20' ) end [2025-03-06 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623655', 'tblTempVendorCDR_20' ) start [2025-03-06 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623655', 'tblTempVendorCDR_20' ) end [2025-03-06 22:52:18] Production.INFO: ProcessCDR(1,14623655,1,1,2) [2025-03-06 22:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14623655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 22:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14623655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 22:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14623655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 22:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14623655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 22:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623655', 'tblTempUsageDetail_20' ) start [2025-03-06 22:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623655', 'tblTempUsageDetail_20' ) end [2025-03-06 22:52:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 22:52:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 22:52:21] Production.INFO: ==11276== Releasing lock... [2025-03-06 22:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 22:52:21] Production.INFO: 35 MB #Memory Used# [2025-03-06 22:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 19:53:05 [end_date_ymd] => 2025-03-06 22:53:05 [RateCDR] => 1 ) [2025-03-06 22:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 19:53:05' and `end` < '2025-03-06 22:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 22:53:17] Production.INFO: count ==1007 [2025-03-06 22:53:17] Production.ERROR: pbx CDR StartTime 2025-03-06 19:53:05 - End Time 2025-03-06 22:53:05 [2025-03-06 22:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 22:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623660', 'tblTempUsageDetail_20' ) start [2025-03-06 22:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623660', 'tblTempUsageDetail_20' ) end [2025-03-06 22:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623660', 'tblTempVendorCDR_20' ) start [2025-03-06 22:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623660', 'tblTempVendorCDR_20' ) end [2025-03-06 22:53:18] Production.INFO: ProcessCDR(1,14623660,1,1,2) [2025-03-06 22:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14623660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 22:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14623660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 22:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14623660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 22:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14623660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 22:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623660', 'tblTempUsageDetail_20' ) start [2025-03-06 22:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623660', 'tblTempUsageDetail_20' ) end [2025-03-06 22:53:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 22:53:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 22:53:21] Production.INFO: ==11350== Releasing lock... [2025-03-06 22:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 22:53:21] Production.INFO: 35 MB #Memory Used# [2025-03-06 22:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 19:54:06 [end_date_ymd] => 2025-03-06 22:54:06 [RateCDR] => 1 ) [2025-03-06 22: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-03-06 19:54:06' and `end` < '2025-03-06 22: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-03-06 22:54:18] Production.INFO: count ==1003 [2025-03-06 22:54:18] Production.ERROR: pbx CDR StartTime 2025-03-06 19:54:06 - End Time 2025-03-06 22:54:06 [2025-03-06 22:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623665', 'tblTempUsageDetail_20' ) start [2025-03-06 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623665', 'tblTempUsageDetail_20' ) end [2025-03-06 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623665', 'tblTempVendorCDR_20' ) start [2025-03-06 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623665', 'tblTempVendorCDR_20' ) end [2025-03-06 22:54:18] Production.INFO: ProcessCDR(1,14623665,1,1,2) [2025-03-06 22:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14623665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 22:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14623665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 22:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14623665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 22:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14623665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 22:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623665', 'tblTempUsageDetail_20' ) start [2025-03-06 22:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623665', 'tblTempUsageDetail_20' ) end [2025-03-06 22:54:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 22:54:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 22:54:21] Production.INFO: ==11425== Releasing lock... [2025-03-06 22:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 22:54:21] Production.INFO: 35 MB #Memory Used# [2025-03-06 22:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 19:55:06 [end_date_ymd] => 2025-03-06 22:55:06 [RateCDR] => 1 ) [2025-03-06 22: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-03-06 19:55:06' and `end` < '2025-03-06 22: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-03-06 22:55:18] Production.INFO: count ==1002 [2025-03-06 22:55:18] Production.ERROR: pbx CDR StartTime 2025-03-06 19:55:06 - End Time 2025-03-06 22:55:06 [2025-03-06 22:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623670', 'tblTempUsageDetail_20' ) start [2025-03-06 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623670', 'tblTempUsageDetail_20' ) end [2025-03-06 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623670', 'tblTempVendorCDR_20' ) start [2025-03-06 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623670', 'tblTempVendorCDR_20' ) end [2025-03-06 22:55:18] Production.INFO: ProcessCDR(1,14623670,1,1,2) [2025-03-06 22:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14623670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 22:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14623670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 22:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14623670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 22:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14623670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 22:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623670', 'tblTempUsageDetail_20' ) start [2025-03-06 22:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623670', 'tblTempUsageDetail_20' ) end [2025-03-06 22:55:23] Production.ERROR: pbx prc_insertCDR start [2025-03-06 22:55:23] Production.ERROR: pbx prc_insertCDR end [2025-03-06 22:55:23] Production.INFO: ==11499== Releasing lock... [2025-03-06 22:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 22:55:23] Production.INFO: 35 MB #Memory Used# [2025-03-06 22:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 19:56:05 [end_date_ymd] => 2025-03-06 22:56:05 [RateCDR] => 1 ) [2025-03-06 22:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 19:56:05' and `end` < '2025-03-06 22:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 22:56:17] Production.INFO: count ==1002 [2025-03-06 22:56:17] Production.ERROR: pbx CDR StartTime 2025-03-06 19:56:05 - End Time 2025-03-06 22:56:05 [2025-03-06 22:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 22:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623675', 'tblTempUsageDetail_20' ) start [2025-03-06 22:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623675', 'tblTempUsageDetail_20' ) end [2025-03-06 22:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623675', 'tblTempVendorCDR_20' ) start [2025-03-06 22:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623675', 'tblTempVendorCDR_20' ) end [2025-03-06 22:56:17] Production.INFO: ProcessCDR(1,14623675,1,1,2) [2025-03-06 22:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14623675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 22:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14623675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 22:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14623675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 22:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14623675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 22:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623675', 'tblTempUsageDetail_20' ) start [2025-03-06 22:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623675', 'tblTempUsageDetail_20' ) end [2025-03-06 22:56:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 22:56:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 22:56:22] Production.INFO: ==11573== Releasing lock... [2025-03-06 22:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 22:56:22] Production.INFO: 35 MB #Memory Used# [2025-03-06 22:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 19:57:06 [end_date_ymd] => 2025-03-06 22:57:06 [RateCDR] => 1 ) [2025-03-06 22: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-03-06 19:57:06' and `end` < '2025-03-06 22: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-03-06 22:57:18] Production.INFO: count ==999 [2025-03-06 22:57:18] Production.ERROR: pbx CDR StartTime 2025-03-06 19:57:06 - End Time 2025-03-06 22:57:06 [2025-03-06 22:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 22:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623680', 'tblTempUsageDetail_20' ) start [2025-03-06 22:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623680', 'tblTempUsageDetail_20' ) end [2025-03-06 22:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623680', 'tblTempVendorCDR_20' ) start [2025-03-06 22:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623680', 'tblTempVendorCDR_20' ) end [2025-03-06 22:57:18] Production.INFO: ProcessCDR(1,14623680,1,1,2) [2025-03-06 22:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14623680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 22:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14623680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 22:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14623680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 22:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14623680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 22:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623680', 'tblTempUsageDetail_20' ) start [2025-03-06 22:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623680', 'tblTempUsageDetail_20' ) end [2025-03-06 22:57:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 22:57:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 22:57:21] Production.INFO: ==11684== Releasing lock... [2025-03-06 22:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 22:57:21] Production.INFO: 35 MB #Memory Used# [2025-03-06 22:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 19:58:05 [end_date_ymd] => 2025-03-06 22:58:05 [RateCDR] => 1 ) [2025-03-06 22: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-03-06 19:58:05' and `end` < '2025-03-06 22: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-03-06 22:58:17] Production.INFO: count ==998 [2025-03-06 22:58:17] Production.ERROR: pbx CDR StartTime 2025-03-06 19:58:05 - End Time 2025-03-06 22:58:05 [2025-03-06 22:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 22:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623685', 'tblTempUsageDetail_20' ) start [2025-03-06 22:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623685', 'tblTempUsageDetail_20' ) end [2025-03-06 22:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623685', 'tblTempVendorCDR_20' ) start [2025-03-06 22:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623685', 'tblTempVendorCDR_20' ) end [2025-03-06 22:58:17] Production.INFO: ProcessCDR(1,14623685,1,1,2) [2025-03-06 22:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14623685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 22:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14623685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 22:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14623685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 22:58:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14623685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 22:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623685', 'tblTempUsageDetail_20' ) start [2025-03-06 22:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623685', 'tblTempUsageDetail_20' ) end [2025-03-06 22:58:20] Production.ERROR: pbx prc_insertCDR start [2025-03-06 22:58:20] Production.ERROR: pbx prc_insertCDR end [2025-03-06 22:58:20] Production.INFO: ==11760== Releasing lock... [2025-03-06 22:58:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 22:58:20] Production.INFO: 35.25 MB #Memory Used# [2025-03-06 22:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 19:59:06 [end_date_ymd] => 2025-03-06 22:59:06 [RateCDR] => 1 ) [2025-03-06 22: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-03-06 19:59:06' and `end` < '2025-03-06 22: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-03-06 22:59:18] Production.INFO: count ==995 [2025-03-06 22:59:18] Production.ERROR: pbx CDR StartTime 2025-03-06 19:59:06 - End Time 2025-03-06 22:59:06 [2025-03-06 22:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623690', 'tblTempUsageDetail_20' ) start [2025-03-06 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623690', 'tblTempUsageDetail_20' ) end [2025-03-06 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623690', 'tblTempVendorCDR_20' ) start [2025-03-06 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623690', 'tblTempVendorCDR_20' ) end [2025-03-06 22:59:18] Production.INFO: ProcessCDR(1,14623690,1,1,2) [2025-03-06 22:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14623690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 22:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14623690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 22:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14623690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 22:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14623690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 22:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623690', 'tblTempUsageDetail_20' ) start [2025-03-06 22:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623690', 'tblTempUsageDetail_20' ) end [2025-03-06 22:59:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 22:59:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 22:59:21] Production.INFO: ==11834== Releasing lock... [2025-03-06 22:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 22:59:21] Production.INFO: 35.25 MB #Memory Used# [2025-03-06 23:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 20:00:06 [end_date_ymd] => 2025-03-06 23:00:06 [RateCDR] => 1 ) [2025-03-06 23:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 20:00:06' and `end` < '2025-03-06 23:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 23:00:18] Production.INFO: count ==994 [2025-03-06 23:00:18] Production.ERROR: pbx CDR StartTime 2025-03-06 20:00:06 - End Time 2025-03-06 23:00:06 [2025-03-06 23:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623695', 'tblTempUsageDetail_20' ) start [2025-03-06 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623695', 'tblTempUsageDetail_20' ) end [2025-03-06 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623695', 'tblTempVendorCDR_20' ) start [2025-03-06 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623695', 'tblTempVendorCDR_20' ) end [2025-03-06 23:00:18] Production.INFO: ProcessCDR(1,14623695,1,1,2) [2025-03-06 23:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14623695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 23:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14623695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 23:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14623695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 23:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14623695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 23:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623695', 'tblTempUsageDetail_20' ) start [2025-03-06 23:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623695', 'tblTempUsageDetail_20' ) end [2025-03-06 23:00:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 23:00:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 23:00:21] Production.INFO: ==11915== Releasing lock... [2025-03-06 23:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 23:00:21] Production.INFO: 35 MB #Memory Used# [2025-03-06 23:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 20:01:05 [end_date_ymd] => 2025-03-06 23:01:05 [RateCDR] => 1 ) [2025-03-06 23:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 20:01:05' and `end` < '2025-03-06 23:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 23:01:17] Production.INFO: count ==999 [2025-03-06 23:01:17] Production.ERROR: pbx CDR StartTime 2025-03-06 20:01:05 - End Time 2025-03-06 23:01:05 [2025-03-06 23:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 23:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623701', 'tblTempUsageDetail_20' ) start [2025-03-06 23:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623701', 'tblTempUsageDetail_20' ) end [2025-03-06 23:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623701', 'tblTempVendorCDR_20' ) start [2025-03-06 23:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623701', 'tblTempVendorCDR_20' ) end [2025-03-06 23:01:17] Production.INFO: ProcessCDR(1,14623701,1,1,2) [2025-03-06 23:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14623701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 23:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14623701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 23:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14623701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 23:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14623701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 23:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623701', 'tblTempUsageDetail_20' ) start [2025-03-06 23:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623701', 'tblTempUsageDetail_20' ) end [2025-03-06 23:01:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 23:01:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 23:01:22] Production.INFO: ==12003== Releasing lock... [2025-03-06 23:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 23:01:22] Production.INFO: 35 MB #Memory Used# [2025-03-06 23:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 20:02:05 [end_date_ymd] => 2025-03-06 23:02:05 [RateCDR] => 1 ) [2025-03-06 23:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 20:02:05' and `end` < '2025-03-06 23:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 23:02:18] Production.INFO: count ==1000 [2025-03-06 23:02:18] Production.ERROR: pbx CDR StartTime 2025-03-06 20:02:05 - End Time 2025-03-06 23:02:05 [2025-03-06 23:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623706', 'tblTempUsageDetail_20' ) start [2025-03-06 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623706', 'tblTempUsageDetail_20' ) end [2025-03-06 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623706', 'tblTempVendorCDR_20' ) start [2025-03-06 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623706', 'tblTempVendorCDR_20' ) end [2025-03-06 23:02:18] Production.INFO: ProcessCDR(1,14623706,1,1,2) [2025-03-06 23:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14623706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 23:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14623706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 23:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14623706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 23:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14623706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 23:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623706', 'tblTempUsageDetail_20' ) start [2025-03-06 23:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623706', 'tblTempUsageDetail_20' ) end [2025-03-06 23:02:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 23:02:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 23:02:21] Production.INFO: ==12154== Releasing lock... [2025-03-06 23:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 23:02:21] Production.INFO: 35 MB #Memory Used# [2025-03-06 23:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 20:03:05 [end_date_ymd] => 2025-03-06 23:03:05 [RateCDR] => 1 ) [2025-03-06 23:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 20:03:05' and `end` < '2025-03-06 23:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 23:03:17] Production.INFO: count ==999 [2025-03-06 23:03:17] Production.ERROR: pbx CDR StartTime 2025-03-06 20:03:05 - End Time 2025-03-06 23:03:05 [2025-03-06 23:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 23:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623711', 'tblTempUsageDetail_20' ) start [2025-03-06 23:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623711', 'tblTempUsageDetail_20' ) end [2025-03-06 23:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623711', 'tblTempVendorCDR_20' ) start [2025-03-06 23:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623711', 'tblTempVendorCDR_20' ) end [2025-03-06 23:03:17] Production.INFO: ProcessCDR(1,14623711,1,1,2) [2025-03-06 23:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14623711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 23:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14623711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 23:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14623711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 23:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14623711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 23:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623711', 'tblTempUsageDetail_20' ) start [2025-03-06 23:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623711', 'tblTempUsageDetail_20' ) end [2025-03-06 23:03:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 23:03:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 23:03:21] Production.INFO: ==12225== Releasing lock... [2025-03-06 23:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 23:03:21] Production.INFO: 35 MB #Memory Used# [2025-03-06 23:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 20:04:05 [end_date_ymd] => 2025-03-06 23:04:05 [RateCDR] => 1 ) [2025-03-06 23:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 20:04:05' and `end` < '2025-03-06 23:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 23:04:17] Production.INFO: count ==995 [2025-03-06 23:04:17] Production.ERROR: pbx CDR StartTime 2025-03-06 20:04:05 - End Time 2025-03-06 23:04:05 [2025-03-06 23:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 23:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623716', 'tblTempUsageDetail_20' ) start [2025-03-06 23:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623716', 'tblTempUsageDetail_20' ) end [2025-03-06 23:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623716', 'tblTempVendorCDR_20' ) start [2025-03-06 23:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623716', 'tblTempVendorCDR_20' ) end [2025-03-06 23:04:17] Production.INFO: ProcessCDR(1,14623716,1,1,2) [2025-03-06 23:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14623716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 23:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14623716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 23:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14623716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 23:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14623716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 23:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623716', 'tblTempUsageDetail_20' ) start [2025-03-06 23:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623716', 'tblTempUsageDetail_20' ) end [2025-03-06 23:04:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 23:04:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 23:04:21] Production.INFO: ==12299== Releasing lock... [2025-03-06 23:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 23:04:21] Production.INFO: 35 MB #Memory Used# [2025-03-06 23:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 20:05:06 [end_date_ymd] => 2025-03-06 23:05:06 [RateCDR] => 1 ) [2025-03-06 23:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 20:05:06' and `end` < '2025-03-06 23:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 23:05:18] Production.INFO: count ==993 [2025-03-06 23:05:18] Production.ERROR: pbx CDR StartTime 2025-03-06 20:05:06 - End Time 2025-03-06 23:05:06 [2025-03-06 23:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623721', 'tblTempUsageDetail_20' ) start [2025-03-06 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623721', 'tblTempUsageDetail_20' ) end [2025-03-06 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623721', 'tblTempVendorCDR_20' ) start [2025-03-06 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623721', 'tblTempVendorCDR_20' ) end [2025-03-06 23:05:18] Production.INFO: ProcessCDR(1,14623721,1,1,2) [2025-03-06 23:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14623721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 23:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14623721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 23:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14623721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 23:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14623721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 23:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623721', 'tblTempUsageDetail_20' ) start [2025-03-06 23:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623721', 'tblTempUsageDetail_20' ) end [2025-03-06 23:05:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 23:05:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 23:05:21] Production.INFO: ==12452== Releasing lock... [2025-03-06 23:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 23:05:21] Production.INFO: 35 MB #Memory Used# [2025-03-06 23:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 20:06:05 [end_date_ymd] => 2025-03-06 23:06:05 [RateCDR] => 1 ) [2025-03-06 23:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 20:06:05' and `end` < '2025-03-06 23:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 23:06:17] Production.INFO: count ==992 [2025-03-06 23:06:17] Production.ERROR: pbx CDR StartTime 2025-03-06 20:06:05 - End Time 2025-03-06 23:06:05 [2025-03-06 23:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 23:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623726', 'tblTempUsageDetail_20' ) start [2025-03-06 23:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623726', 'tblTempUsageDetail_20' ) end [2025-03-06 23:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623726', 'tblTempVendorCDR_20' ) start [2025-03-06 23:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623726', 'tblTempVendorCDR_20' ) end [2025-03-06 23:06:17] Production.INFO: ProcessCDR(1,14623726,1,1,2) [2025-03-06 23:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14623726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 23:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14623726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 23:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14623726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 23:06:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14623726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 23:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623726', 'tblTempUsageDetail_20' ) start [2025-03-06 23:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623726', 'tblTempUsageDetail_20' ) end [2025-03-06 23:06:20] Production.ERROR: pbx prc_insertCDR start [2025-03-06 23:06:20] Production.ERROR: pbx prc_insertCDR end [2025-03-06 23:06:20] Production.INFO: ==12525== Releasing lock... [2025-03-06 23:06:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 23:06:20] Production.INFO: 35 MB #Memory Used# [2025-03-06 23:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 20:07:06 [end_date_ymd] => 2025-03-06 23:07:06 [RateCDR] => 1 ) [2025-03-06 23: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-03-06 20:07:06' and `end` < '2025-03-06 23: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-03-06 23:07:18] Production.INFO: count ==992 [2025-03-06 23:07:18] Production.ERROR: pbx CDR StartTime 2025-03-06 20:07:06 - End Time 2025-03-06 23:07:06 [2025-03-06 23:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 23:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623731', 'tblTempUsageDetail_20' ) start [2025-03-06 23:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623731', 'tblTempUsageDetail_20' ) end [2025-03-06 23:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623731', 'tblTempVendorCDR_20' ) start [2025-03-06 23:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623731', 'tblTempVendorCDR_20' ) end [2025-03-06 23:07:18] Production.INFO: ProcessCDR(1,14623731,1,1,2) [2025-03-06 23:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14623731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 23:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14623731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 23:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14623731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 23:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14623731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 23:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623731', 'tblTempUsageDetail_20' ) start [2025-03-06 23:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623731', 'tblTempUsageDetail_20' ) end [2025-03-06 23:07:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 23:07:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 23:07:21] Production.INFO: ==12597== Releasing lock... [2025-03-06 23:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 23:07:21] Production.INFO: 35 MB #Memory Used# [2025-03-06 23:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 20:08:05 [end_date_ymd] => 2025-03-06 23:08:05 [RateCDR] => 1 ) [2025-03-06 23:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 20:08:05' and `end` < '2025-03-06 23:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 23:08:17] Production.INFO: count ==1002 [2025-03-06 23:08:18] Production.ERROR: pbx CDR StartTime 2025-03-06 20:08:05 - End Time 2025-03-06 23:08:05 [2025-03-06 23:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623736', 'tblTempUsageDetail_20' ) start [2025-03-06 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623736', 'tblTempUsageDetail_20' ) end [2025-03-06 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623736', 'tblTempVendorCDR_20' ) start [2025-03-06 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623736', 'tblTempVendorCDR_20' ) end [2025-03-06 23:08:18] Production.INFO: ProcessCDR(1,14623736,1,1,2) [2025-03-06 23:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14623736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 23:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14623736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 23:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14623736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 23:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14623736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 23:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623736', 'tblTempUsageDetail_20' ) start [2025-03-06 23:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623736', 'tblTempUsageDetail_20' ) end [2025-03-06 23:08:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 23:08:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 23:08:22] Production.INFO: ==12698== Releasing lock... [2025-03-06 23:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 23:08:22] Production.INFO: 35 MB #Memory Used# [2025-03-06 23:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 20:09:05 [end_date_ymd] => 2025-03-06 23:09:05 [RateCDR] => 1 ) [2025-03-06 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-03-06 20:09:05' and `end` < '2025-03-06 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-03-06 23:09:17] Production.INFO: count ==1012 [2025-03-06 23:09:17] Production.ERROR: pbx CDR StartTime 2025-03-06 20:09:05 - End Time 2025-03-06 23:09:05 [2025-03-06 23:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 23:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623741', 'tblTempUsageDetail_20' ) start [2025-03-06 23:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623741', 'tblTempUsageDetail_20' ) end [2025-03-06 23:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623741', 'tblTempVendorCDR_20' ) start [2025-03-06 23:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623741', 'tblTempVendorCDR_20' ) end [2025-03-06 23:09:17] Production.INFO: ProcessCDR(1,14623741,1,1,2) [2025-03-06 23:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14623741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 23:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14623741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 23:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14623741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 23:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14623741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 23:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623741', 'tblTempUsageDetail_20' ) start [2025-03-06 23:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623741', 'tblTempUsageDetail_20' ) end [2025-03-06 23:09:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 23:09:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 23:09:21] Production.INFO: ==12817== Releasing lock... [2025-03-06 23:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 23:09:21] Production.INFO: 35.25 MB #Memory Used# [2025-03-06 23:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 20:10:07 [end_date_ymd] => 2025-03-06 23:10:07 [RateCDR] => 1 ) [2025-03-06 23:10: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-03-06 20:10:07' and `end` < '2025-03-06 23:10: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-03-06 23:10:19] Production.INFO: count ==1017 [2025-03-06 23:10:19] Production.ERROR: pbx CDR StartTime 2025-03-06 20:10:07 - End Time 2025-03-06 23:10:07 [2025-03-06 23:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623747', 'tblTempUsageDetail_20' ) start [2025-03-06 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623747', 'tblTempUsageDetail_20' ) end [2025-03-06 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623747', 'tblTempVendorCDR_20' ) start [2025-03-06 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623747', 'tblTempVendorCDR_20' ) end [2025-03-06 23:10:19] Production.INFO: ProcessCDR(1,14623747,1,1,2) [2025-03-06 23:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14623747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 23:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14623747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 23:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14623747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 23:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14623747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 23:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623747', 'tblTempUsageDetail_20' ) start [2025-03-06 23:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623747', 'tblTempUsageDetail_20' ) end [2025-03-06 23:10:23] Production.ERROR: pbx prc_insertCDR start [2025-03-06 23:10:23] Production.ERROR: pbx prc_insertCDR end [2025-03-06 23:10:23] Production.INFO: ==12895== Releasing lock... [2025-03-06 23:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 23:10:23] Production.INFO: 35.25 MB #Memory Used# [2025-03-06 23:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 20:11:06 [end_date_ymd] => 2025-03-06 23:11:06 [RateCDR] => 1 ) [2025-03-06 23:11:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 20:11:06' and `end` < '2025-03-06 23:11:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 23:11:18] Production.INFO: count ==1030 [2025-03-06 23:11:18] Production.ERROR: pbx CDR StartTime 2025-03-06 20:11:06 - End Time 2025-03-06 23:11:06 [2025-03-06 23:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623752', 'tblTempUsageDetail_20' ) start [2025-03-06 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623752', 'tblTempUsageDetail_20' ) end [2025-03-06 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623752', 'tblTempVendorCDR_20' ) start [2025-03-06 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623752', 'tblTempVendorCDR_20' ) end [2025-03-06 23:11:18] Production.INFO: ProcessCDR(1,14623752,1,1,2) [2025-03-06 23:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14623752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 23:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14623752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 23:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14623752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 23:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14623752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 23:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623752', 'tblTempUsageDetail_20' ) start [2025-03-06 23:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623752', 'tblTempUsageDetail_20' ) end [2025-03-06 23:11:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 23:11:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 23:11:21] Production.INFO: ==12970== Releasing lock... [2025-03-06 23:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 23:11:21] Production.INFO: 35.25 MB #Memory Used# [2025-03-06 23:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 20:12:06 [end_date_ymd] => 2025-03-06 23:12:06 [RateCDR] => 1 ) [2025-03-06 23: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-03-06 20:12:06' and `end` < '2025-03-06 23: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-03-06 23:12:18] Production.INFO: count ==1030 [2025-03-06 23:12:18] Production.ERROR: pbx CDR StartTime 2025-03-06 20:12:06 - End Time 2025-03-06 23:12:06 [2025-03-06 23:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623757', 'tblTempUsageDetail_20' ) start [2025-03-06 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623757', 'tblTempUsageDetail_20' ) end [2025-03-06 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623757', 'tblTempVendorCDR_20' ) start [2025-03-06 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623757', 'tblTempVendorCDR_20' ) end [2025-03-06 23:12:18] Production.INFO: ProcessCDR(1,14623757,1,1,2) [2025-03-06 23:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14623757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 23:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14623757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 23:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14623757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 23:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14623757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 23:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623757', 'tblTempUsageDetail_20' ) start [2025-03-06 23:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623757', 'tblTempUsageDetail_20' ) end [2025-03-06 23:12:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 23:12:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 23:12:22] Production.INFO: ==13120== Releasing lock... [2025-03-06 23:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 23:12:22] Production.INFO: 35.25 MB #Memory Used# [2025-03-06 23:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 20:13:05 [end_date_ymd] => 2025-03-06 23:13:05 [RateCDR] => 1 ) [2025-03-06 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-03-06 20:13:05' and `end` < '2025-03-06 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-03-06 23:13:17] Production.INFO: count ==1029 [2025-03-06 23:13:17] Production.ERROR: pbx CDR StartTime 2025-03-06 20:13:05 - End Time 2025-03-06 23:13:05 [2025-03-06 23:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 23:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623762', 'tblTempUsageDetail_20' ) start [2025-03-06 23:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623762', 'tblTempUsageDetail_20' ) end [2025-03-06 23:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623762', 'tblTempVendorCDR_20' ) start [2025-03-06 23:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623762', 'tblTempVendorCDR_20' ) end [2025-03-06 23:13:17] Production.INFO: ProcessCDR(1,14623762,1,1,2) [2025-03-06 23:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14623762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 23:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14623762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 23:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14623762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 23:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14623762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 23:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623762', 'tblTempUsageDetail_20' ) start [2025-03-06 23:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623762', 'tblTempUsageDetail_20' ) end [2025-03-06 23:13:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 23:13:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 23:13:21] Production.INFO: ==13229== Releasing lock... [2025-03-06 23:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 23:13:21] Production.INFO: 35.25 MB #Memory Used# [2025-03-06 23:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 20:14:06 [end_date_ymd] => 2025-03-06 23:14:06 [RateCDR] => 1 ) [2025-03-06 23: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-03-06 20:14:06' and `end` < '2025-03-06 23: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-03-06 23:14:18] Production.INFO: count ==1032 [2025-03-06 23:14:18] Production.ERROR: pbx CDR StartTime 2025-03-06 20:14:06 - End Time 2025-03-06 23:14:06 [2025-03-06 23:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623767', 'tblTempUsageDetail_20' ) start [2025-03-06 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623767', 'tblTempUsageDetail_20' ) end [2025-03-06 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623767', 'tblTempVendorCDR_20' ) start [2025-03-06 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623767', 'tblTempVendorCDR_20' ) end [2025-03-06 23:14:18] Production.INFO: ProcessCDR(1,14623767,1,1,2) [2025-03-06 23:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14623767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 23:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14623767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 23:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14623767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 23:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14623767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 23:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623767', 'tblTempUsageDetail_20' ) start [2025-03-06 23:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623767', 'tblTempUsageDetail_20' ) end [2025-03-06 23:14:23] Production.ERROR: pbx prc_insertCDR start [2025-03-06 23:14:23] Production.ERROR: pbx prc_insertCDR end [2025-03-06 23:14:23] Production.INFO: ==13303== Releasing lock... [2025-03-06 23:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 23:14:23] Production.INFO: 35.25 MB #Memory Used# [2025-03-06 23:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 20:15:05 [end_date_ymd] => 2025-03-06 23:15:05 [RateCDR] => 1 ) [2025-03-06 23:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 20:15:05' and `end` < '2025-03-06 23:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 23:15:17] Production.INFO: count ==1030 [2025-03-06 23:15:17] Production.ERROR: pbx CDR StartTime 2025-03-06 20:15:05 - End Time 2025-03-06 23:15:05 [2025-03-06 23:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 23:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623771', 'tblTempUsageDetail_20' ) start [2025-03-06 23:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623771', 'tblTempUsageDetail_20' ) end [2025-03-06 23:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623771', 'tblTempVendorCDR_20' ) start [2025-03-06 23:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623771', 'tblTempVendorCDR_20' ) end [2025-03-06 23:15:17] Production.INFO: ProcessCDR(1,14623771,1,1,2) [2025-03-06 23:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14623771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 23:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14623771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 23:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14623771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 23:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14623771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 23:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623771', 'tblTempUsageDetail_20' ) start [2025-03-06 23:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623771', 'tblTempUsageDetail_20' ) end [2025-03-06 23:15:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 23:15:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 23:15:22] Production.INFO: ==13431== Releasing lock... [2025-03-06 23:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 23:15:22] Production.INFO: 35.25 MB #Memory Used# [2025-03-06 23:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 20:16:06 [end_date_ymd] => 2025-03-06 23:16:06 [RateCDR] => 1 ) [2025-03-06 23: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-03-06 20:16:06' and `end` < '2025-03-06 23: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-03-06 23:16:18] Production.INFO: count ==1030 [2025-03-06 23:16:18] Production.ERROR: pbx CDR StartTime 2025-03-06 20:16:06 - End Time 2025-03-06 23:16:06 [2025-03-06 23:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623777', 'tblTempUsageDetail_20' ) start [2025-03-06 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623777', 'tblTempUsageDetail_20' ) end [2025-03-06 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623777', 'tblTempVendorCDR_20' ) start [2025-03-06 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623777', 'tblTempVendorCDR_20' ) end [2025-03-06 23:16:18] Production.INFO: ProcessCDR(1,14623777,1,1,2) [2025-03-06 23:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14623777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 23:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14623777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 23:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14623777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 23:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14623777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 23:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623777', 'tblTempUsageDetail_20' ) start [2025-03-06 23:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623777', 'tblTempUsageDetail_20' ) end [2025-03-06 23:16:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 23:16:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 23:16:22] Production.INFO: ==13531== Releasing lock... [2025-03-06 23:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 23:16:22] Production.INFO: 35.25 MB #Memory Used# [2025-03-06 23:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 20:17:05 [end_date_ymd] => 2025-03-06 23:17:05 [RateCDR] => 1 ) [2025-03-06 23:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 20:17:05' and `end` < '2025-03-06 23:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 23:17:18] Production.INFO: count ==1027 [2025-03-06 23:17:18] Production.ERROR: pbx CDR StartTime 2025-03-06 20:17:05 - End Time 2025-03-06 23:17:05 [2025-03-06 23:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623782', 'tblTempUsageDetail_20' ) start [2025-03-06 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623782', 'tblTempUsageDetail_20' ) end [2025-03-06 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623782', 'tblTempVendorCDR_20' ) start [2025-03-06 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623782', 'tblTempVendorCDR_20' ) end [2025-03-06 23:17:18] Production.INFO: ProcessCDR(1,14623782,1,1,2) [2025-03-06 23:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14623782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 23:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14623782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 23:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14623782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 23:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14623782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 23:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623782', 'tblTempUsageDetail_20' ) start [2025-03-06 23:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623782', 'tblTempUsageDetail_20' ) end [2025-03-06 23:17:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 23:17:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 23:17:21] Production.INFO: ==13604== Releasing lock... [2025-03-06 23:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 23:17:21] Production.INFO: 35.25 MB #Memory Used# [2025-03-06 23:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 20:18:06 [end_date_ymd] => 2025-03-06 23:18:06 [RateCDR] => 1 ) [2025-03-06 23: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-03-06 20:18:06' and `end` < '2025-03-06 23: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-03-06 23:18:18] Production.INFO: count ==1024 [2025-03-06 23:18:18] Production.ERROR: pbx CDR StartTime 2025-03-06 20:18:06 - End Time 2025-03-06 23:18:06 [2025-03-06 23:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623787', 'tblTempUsageDetail_20' ) start [2025-03-06 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623787', 'tblTempUsageDetail_20' ) end [2025-03-06 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623787', 'tblTempVendorCDR_20' ) start [2025-03-06 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623787', 'tblTempVendorCDR_20' ) end [2025-03-06 23:18:18] Production.INFO: ProcessCDR(1,14623787,1,1,2) [2025-03-06 23:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14623787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 23:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14623787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 23:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14623787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 23:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14623787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 23:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623787', 'tblTempUsageDetail_20' ) start [2025-03-06 23:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623787', 'tblTempUsageDetail_20' ) end [2025-03-06 23:18:23] Production.ERROR: pbx prc_insertCDR start [2025-03-06 23:18:23] Production.ERROR: pbx prc_insertCDR end [2025-03-06 23:18:23] Production.INFO: ==13683== Releasing lock... [2025-03-06 23:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 23:18:23] Production.INFO: 35.25 MB #Memory Used# [2025-03-06 23:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 20:19:05 [end_date_ymd] => 2025-03-06 23:19:05 [RateCDR] => 1 ) [2025-03-06 23:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 20:19:05' and `end` < '2025-03-06 23:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 23:19:17] Production.INFO: count ==1024 [2025-03-06 23:19:17] Production.ERROR: pbx CDR StartTime 2025-03-06 20:19:05 - End Time 2025-03-06 23:19:05 [2025-03-06 23:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 23:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623792', 'tblTempUsageDetail_20' ) start [2025-03-06 23:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623792', 'tblTempUsageDetail_20' ) end [2025-03-06 23:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623792', 'tblTempVendorCDR_20' ) start [2025-03-06 23:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623792', 'tblTempVendorCDR_20' ) end [2025-03-06 23:19:18] Production.INFO: ProcessCDR(1,14623792,1,1,2) [2025-03-06 23:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14623792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 23:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14623792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 23:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14623792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 23:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14623792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 23:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623792', 'tblTempUsageDetail_20' ) start [2025-03-06 23:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623792', 'tblTempUsageDetail_20' ) end [2025-03-06 23:19:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 23:19:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 23:19:21] Production.INFO: ==13756== Releasing lock... [2025-03-06 23:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 23:19:21] Production.INFO: 35.25 MB #Memory Used# [2025-03-06 23:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 20:20:06 [end_date_ymd] => 2025-03-06 23:20:06 [RateCDR] => 1 ) [2025-03-06 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-03-06 20:20:06' and `end` < '2025-03-06 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-03-06 23:20:18] Production.INFO: count ==1023 [2025-03-06 23:20:18] Production.ERROR: pbx CDR StartTime 2025-03-06 20:20:06 - End Time 2025-03-06 23:20:06 [2025-03-06 23:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 23:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623797', 'tblTempUsageDetail_20' ) start [2025-03-06 23:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623797', 'tblTempUsageDetail_20' ) end [2025-03-06 23:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623797', 'tblTempVendorCDR_20' ) start [2025-03-06 23:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623797', 'tblTempVendorCDR_20' ) end [2025-03-06 23:20:18] Production.INFO: ProcessCDR(1,14623797,1,1,2) [2025-03-06 23:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14623797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 23:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14623797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 23:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14623797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 23:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14623797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 23:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623797', 'tblTempUsageDetail_20' ) start [2025-03-06 23:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623797', 'tblTempUsageDetail_20' ) end [2025-03-06 23:20:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 23:20:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 23:20:22] Production.INFO: ==13830== Releasing lock... [2025-03-06 23:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 23:20:22] Production.INFO: 35.25 MB #Memory Used# [2025-03-06 23:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 20:21:05 [end_date_ymd] => 2025-03-06 23:21:05 [RateCDR] => 1 ) [2025-03-06 23:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 20:21:05' and `end` < '2025-03-06 23:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 23:21:17] Production.INFO: count ==969 [2025-03-06 23:21:17] Production.ERROR: pbx CDR StartTime 2025-03-06 20:21:05 - End Time 2025-03-06 23:21:05 [2025-03-06 23:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 23:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623803', 'tblTempUsageDetail_20' ) start [2025-03-06 23:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623803', 'tblTempUsageDetail_20' ) end [2025-03-06 23:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623803', 'tblTempVendorCDR_20' ) start [2025-03-06 23:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623803', 'tblTempVendorCDR_20' ) end [2025-03-06 23:21:17] Production.INFO: ProcessCDR(1,14623803,1,1,2) [2025-03-06 23:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14623803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 23:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14623803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 23:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14623803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 23:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14623803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 23:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623803', 'tblTempUsageDetail_20' ) start [2025-03-06 23:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623803', 'tblTempUsageDetail_20' ) end [2025-03-06 23:21:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 23:21:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 23:21:21] Production.INFO: ==13903== Releasing lock... [2025-03-06 23:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 23:21:21] Production.INFO: 35 MB #Memory Used# [2025-03-06 23:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 20:22:06 [end_date_ymd] => 2025-03-06 23:22:06 [RateCDR] => 1 ) [2025-03-06 23:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 20:22:06' and `end` < '2025-03-06 23:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 23:22:18] Production.INFO: count ==962 [2025-03-06 23:22:18] Production.ERROR: pbx CDR StartTime 2025-03-06 20:22:06 - End Time 2025-03-06 23:22:06 [2025-03-06 23:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623808', 'tblTempUsageDetail_20' ) start [2025-03-06 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623808', 'tblTempUsageDetail_20' ) end [2025-03-06 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623808', 'tblTempVendorCDR_20' ) start [2025-03-06 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623808', 'tblTempVendorCDR_20' ) end [2025-03-06 23:22:18] Production.INFO: ProcessCDR(1,14623808,1,1,2) [2025-03-06 23:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14623808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 23:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14623808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 23:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14623808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 23:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14623808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 23:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623808', 'tblTempUsageDetail_20' ) start [2025-03-06 23:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623808', 'tblTempUsageDetail_20' ) end [2025-03-06 23:22:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 23:22:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 23:22:21] Production.INFO: ==13975== Releasing lock... [2025-03-06 23:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 23:22:21] Production.INFO: 34.75 MB #Memory Used# [2025-03-06 23:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 20:23:05 [end_date_ymd] => 2025-03-06 23:23:05 [RateCDR] => 1 ) [2025-03-06 23:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 20:23:05' and `end` < '2025-03-06 23:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 23:23:18] Production.INFO: count ==961 [2025-03-06 23:23:18] Production.ERROR: pbx CDR StartTime 2025-03-06 20:23:05 - End Time 2025-03-06 23:23:05 [2025-03-06 23:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623813', 'tblTempUsageDetail_20' ) start [2025-03-06 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623813', 'tblTempUsageDetail_20' ) end [2025-03-06 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623813', 'tblTempVendorCDR_20' ) start [2025-03-06 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623813', 'tblTempVendorCDR_20' ) end [2025-03-06 23:23:18] Production.INFO: ProcessCDR(1,14623813,1,1,2) [2025-03-06 23:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14623813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 23:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14623813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 23:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14623813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 23:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14623813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 23:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623813', 'tblTempUsageDetail_20' ) start [2025-03-06 23:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623813', 'tblTempUsageDetail_20' ) end [2025-03-06 23:23:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 23:23:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 23:23:21] Production.INFO: ==14049== Releasing lock... [2025-03-06 23:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 23:23:21] Production.INFO: 34.75 MB #Memory Used# [2025-03-06 23:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 20:24:06 [end_date_ymd] => 2025-03-06 23:24:06 [RateCDR] => 1 ) [2025-03-06 23: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-03-06 20:24:06' and `end` < '2025-03-06 23: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-03-06 23:24:18] Production.INFO: count ==959 [2025-03-06 23:24:18] Production.ERROR: pbx CDR StartTime 2025-03-06 20:24:06 - End Time 2025-03-06 23:24:06 [2025-03-06 23:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623818', 'tblTempUsageDetail_20' ) start [2025-03-06 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623818', 'tblTempUsageDetail_20' ) end [2025-03-06 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623818', 'tblTempVendorCDR_20' ) start [2025-03-06 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623818', 'tblTempVendorCDR_20' ) end [2025-03-06 23:24:18] Production.INFO: ProcessCDR(1,14623818,1,1,2) [2025-03-06 23:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14623818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 23:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14623818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 23:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14623818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 23:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14623818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 23:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623818', 'tblTempUsageDetail_20' ) start [2025-03-06 23:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623818', 'tblTempUsageDetail_20' ) end [2025-03-06 23:24:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 23:24:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 23:24:22] Production.INFO: ==14119== Releasing lock... [2025-03-06 23:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 23:24:22] Production.INFO: 34.75 MB #Memory Used# [2025-03-06 23:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 20:25:05 [end_date_ymd] => 2025-03-06 23:25:05 [RateCDR] => 1 ) [2025-03-06 23:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 20:25:05' and `end` < '2025-03-06 23:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 23:25:17] Production.INFO: count ==959 [2025-03-06 23:25:17] Production.ERROR: pbx CDR StartTime 2025-03-06 20:25:05 - End Time 2025-03-06 23:25:05 [2025-03-06 23:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 23:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623823', 'tblTempUsageDetail_20' ) start [2025-03-06 23:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623823', 'tblTempUsageDetail_20' ) end [2025-03-06 23:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623823', 'tblTempVendorCDR_20' ) start [2025-03-06 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623823', 'tblTempVendorCDR_20' ) end [2025-03-06 23:25:18] Production.INFO: ProcessCDR(1,14623823,1,1,2) [2025-03-06 23:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14623823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 23:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14623823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 23:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14623823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 23:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14623823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 23:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623823', 'tblTempUsageDetail_20' ) start [2025-03-06 23:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623823', 'tblTempUsageDetail_20' ) end [2025-03-06 23:25:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 23:25:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 23:25:21] Production.INFO: ==14192== Releasing lock... [2025-03-06 23:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 23:25:21] Production.INFO: 34.75 MB #Memory Used# [2025-03-06 23:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 20:26:06 [end_date_ymd] => 2025-03-06 23:26:06 [RateCDR] => 1 ) [2025-03-06 23: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-03-06 20:26:06' and `end` < '2025-03-06 23: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-03-06 23:26:18] Production.INFO: count ==962 [2025-03-06 23:26:18] Production.ERROR: pbx CDR StartTime 2025-03-06 20:26:06 - End Time 2025-03-06 23:26:06 [2025-03-06 23:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623828', 'tblTempUsageDetail_20' ) start [2025-03-06 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623828', 'tblTempUsageDetail_20' ) end [2025-03-06 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623828', 'tblTempVendorCDR_20' ) start [2025-03-06 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623828', 'tblTempVendorCDR_20' ) end [2025-03-06 23:26:18] Production.INFO: ProcessCDR(1,14623828,1,1,2) [2025-03-06 23:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14623828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 23:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14623828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 23:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14623828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 23:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14623828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 23:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623828', 'tblTempUsageDetail_20' ) start [2025-03-06 23:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623828', 'tblTempUsageDetail_20' ) end [2025-03-06 23:26:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 23:26:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 23:26:21] Production.INFO: ==14265== Releasing lock... [2025-03-06 23:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 23:26:21] Production.INFO: 34.75 MB #Memory Used# [2025-03-06 23:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 20:27:05 [end_date_ymd] => 2025-03-06 23:27:05 [RateCDR] => 1 ) [2025-03-06 23:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 20:27:05' and `end` < '2025-03-06 23:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 23:27:17] Production.INFO: count ==960 [2025-03-06 23:27:17] Production.ERROR: pbx CDR StartTime 2025-03-06 20:27:05 - End Time 2025-03-06 23:27:05 [2025-03-06 23:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 23:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623833', 'tblTempUsageDetail_20' ) start [2025-03-06 23:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623833', 'tblTempUsageDetail_20' ) end [2025-03-06 23:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623833', 'tblTempVendorCDR_20' ) start [2025-03-06 23:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623833', 'tblTempVendorCDR_20' ) end [2025-03-06 23:27:17] Production.INFO: ProcessCDR(1,14623833,1,1,2) [2025-03-06 23:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14623833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 23:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14623833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 23:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14623833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 23:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14623833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 23:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623833', 'tblTempUsageDetail_20' ) start [2025-03-06 23:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623833', 'tblTempUsageDetail_20' ) end [2025-03-06 23:27:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 23:27:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 23:27:21] Production.INFO: ==14338== Releasing lock... [2025-03-06 23:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 23:27:21] Production.INFO: 34.75 MB #Memory Used# [2025-03-06 23:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 20:28:05 [end_date_ymd] => 2025-03-06 23:28:05 [RateCDR] => 1 ) [2025-03-06 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-03-06 20:28:05' and `end` < '2025-03-06 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-03-06 23:28:18] Production.INFO: count ==954 [2025-03-06 23:28:18] Production.ERROR: pbx CDR StartTime 2025-03-06 20:28:05 - End Time 2025-03-06 23:28:05 [2025-03-06 23:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623838', 'tblTempUsageDetail_20' ) start [2025-03-06 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623838', 'tblTempUsageDetail_20' ) end [2025-03-06 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623838', 'tblTempVendorCDR_20' ) start [2025-03-06 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623838', 'tblTempVendorCDR_20' ) end [2025-03-06 23:28:18] Production.INFO: ProcessCDR(1,14623838,1,1,2) [2025-03-06 23:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14623838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 23:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14623838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 23:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14623838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 23:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14623838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 23:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623838', 'tblTempUsageDetail_20' ) start [2025-03-06 23:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623838', 'tblTempUsageDetail_20' ) end [2025-03-06 23:28:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 23:28:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 23:28:21] Production.INFO: ==14447== Releasing lock... [2025-03-06 23:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 23:28:21] Production.INFO: 34.75 MB #Memory Used# [2025-03-06 23:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 20:29:05 [end_date_ymd] => 2025-03-06 23:29:05 [RateCDR] => 1 ) [2025-03-06 23:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 20:29:05' and `end` < '2025-03-06 23:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 23:29:17] Production.INFO: count ==953 [2025-03-06 23:29:17] Production.ERROR: pbx CDR StartTime 2025-03-06 20:29:05 - End Time 2025-03-06 23:29:05 [2025-03-06 23:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 23:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623843', 'tblTempUsageDetail_20' ) start [2025-03-06 23:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623843', 'tblTempUsageDetail_20' ) end [2025-03-06 23:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623843', 'tblTempVendorCDR_20' ) start [2025-03-06 23:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623843', 'tblTempVendorCDR_20' ) end [2025-03-06 23:29:17] Production.INFO: ProcessCDR(1,14623843,1,1,2) [2025-03-06 23:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14623843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 23:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14623843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 23:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14623843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 23:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14623843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 23:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623843', 'tblTempUsageDetail_20' ) start [2025-03-06 23:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623843', 'tblTempUsageDetail_20' ) end [2025-03-06 23:29:20] Production.ERROR: pbx prc_insertCDR start [2025-03-06 23:29:20] Production.ERROR: pbx prc_insertCDR end [2025-03-06 23:29:20] Production.INFO: ==14524== Releasing lock... [2025-03-06 23:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 23:29:20] Production.INFO: 34.75 MB #Memory Used# [2025-03-06 23:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 20:30:06 [end_date_ymd] => 2025-03-06 23:30:06 [RateCDR] => 1 ) [2025-03-06 23:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 20:30:06' and `end` < '2025-03-06 23:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 23:30:18] Production.INFO: count ==955 [2025-03-06 23:30:18] Production.ERROR: pbx CDR StartTime 2025-03-06 20:30:06 - End Time 2025-03-06 23:30:06 [2025-03-06 23:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 23:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623848', 'tblTempUsageDetail_20' ) start [2025-03-06 23:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623848', 'tblTempUsageDetail_20' ) end [2025-03-06 23:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623848', 'tblTempVendorCDR_20' ) start [2025-03-06 23:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623848', 'tblTempVendorCDR_20' ) end [2025-03-06 23:30:18] Production.INFO: ProcessCDR(1,14623848,1,1,2) [2025-03-06 23:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14623848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 23:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14623848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 23:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14623848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 23:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14623848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 23:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623848', 'tblTempUsageDetail_20' ) start [2025-03-06 23:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623848', 'tblTempUsageDetail_20' ) end [2025-03-06 23:30:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 23:30:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 23:30:21] Production.INFO: ==14596== Releasing lock... [2025-03-06 23:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 23:30:21] Production.INFO: 34.75 MB #Memory Used# [2025-03-06 23:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 20:31:05 [end_date_ymd] => 2025-03-06 23:31:05 [RateCDR] => 1 ) [2025-03-06 23:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 20:31:05' and `end` < '2025-03-06 23:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 23:31:17] Production.INFO: count ==944 [2025-03-06 23:31:17] Production.ERROR: pbx CDR StartTime 2025-03-06 20:31:05 - End Time 2025-03-06 23:31:05 [2025-03-06 23:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 23:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623854', 'tblTempUsageDetail_20' ) start [2025-03-06 23:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623854', 'tblTempUsageDetail_20' ) end [2025-03-06 23:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623854', 'tblTempVendorCDR_20' ) start [2025-03-06 23:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623854', 'tblTempVendorCDR_20' ) end [2025-03-06 23:31:17] Production.INFO: ProcessCDR(1,14623854,1,1,2) [2025-03-06 23:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14623854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 23:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14623854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 23:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14623854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 23:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14623854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 23:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623854', 'tblTempUsageDetail_20' ) start [2025-03-06 23:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623854', 'tblTempUsageDetail_20' ) end [2025-03-06 23:31:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 23:31:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 23:31:21] Production.INFO: ==14669== Releasing lock... [2025-03-06 23:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 23:31:21] Production.INFO: 34.75 MB #Memory Used# [2025-03-06 23:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 20:32:05 [end_date_ymd] => 2025-03-06 23:32:05 [RateCDR] => 1 ) [2025-03-06 23:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 20:32:05' and `end` < '2025-03-06 23:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 23:32:18] Production.INFO: count ==944 [2025-03-06 23:32:18] Production.ERROR: pbx CDR StartTime 2025-03-06 20:32:05 - End Time 2025-03-06 23:32:05 [2025-03-06 23:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 23:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623859', 'tblTempUsageDetail_20' ) start [2025-03-06 23:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623859', 'tblTempUsageDetail_20' ) end [2025-03-06 23:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623859', 'tblTempVendorCDR_20' ) start [2025-03-06 23:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623859', 'tblTempVendorCDR_20' ) end [2025-03-06 23:32:18] Production.INFO: ProcessCDR(1,14623859,1,1,2) [2025-03-06 23:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14623859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 23:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14623859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 23:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14623859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 23:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14623859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 23:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623859', 'tblTempUsageDetail_20' ) start [2025-03-06 23:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623859', 'tblTempUsageDetail_20' ) end [2025-03-06 23:32:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 23:32:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 23:32:21] Production.INFO: ==14740== Releasing lock... [2025-03-06 23:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 23:32:21] Production.INFO: 34.75 MB #Memory Used# [2025-03-06 23:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 20:33:05 [end_date_ymd] => 2025-03-06 23:33:05 [RateCDR] => 1 ) [2025-03-06 23:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 20:33:05' and `end` < '2025-03-06 23:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 23:33:17] Production.INFO: count ==942 [2025-03-06 23:33:17] Production.ERROR: pbx CDR StartTime 2025-03-06 20:33:05 - End Time 2025-03-06 23:33:05 [2025-03-06 23:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 23:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623864', 'tblTempUsageDetail_20' ) start [2025-03-06 23:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623864', 'tblTempUsageDetail_20' ) end [2025-03-06 23:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623864', 'tblTempVendorCDR_20' ) start [2025-03-06 23:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623864', 'tblTempVendorCDR_20' ) end [2025-03-06 23:33:17] Production.INFO: ProcessCDR(1,14623864,1,1,2) [2025-03-06 23:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14623864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 23:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14623864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 23:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14623864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 23:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14623864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 23:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623864', 'tblTempUsageDetail_20' ) start [2025-03-06 23:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623864', 'tblTempUsageDetail_20' ) end [2025-03-06 23:33:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 23:33:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 23:33:21] Production.INFO: ==14810== Releasing lock... [2025-03-06 23:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 23:33:21] Production.INFO: 34.75 MB #Memory Used# [2025-03-06 23:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 20:34:06 [end_date_ymd] => 2025-03-06 23:34:06 [RateCDR] => 1 ) [2025-03-06 23:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 20:34:06' and `end` < '2025-03-06 23:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 23:34:18] Production.INFO: count ==944 [2025-03-06 23:34:18] Production.ERROR: pbx CDR StartTime 2025-03-06 20:34:06 - End Time 2025-03-06 23:34:06 [2025-03-06 23:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 23:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623869', 'tblTempUsageDetail_20' ) start [2025-03-06 23:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623869', 'tblTempUsageDetail_20' ) end [2025-03-06 23:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623869', 'tblTempVendorCDR_20' ) start [2025-03-06 23:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623869', 'tblTempVendorCDR_20' ) end [2025-03-06 23:34:18] Production.INFO: ProcessCDR(1,14623869,1,1,2) [2025-03-06 23:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14623869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 23:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14623869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 23:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14623869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 23:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14623869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 23:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623869', 'tblTempUsageDetail_20' ) start [2025-03-06 23:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623869', 'tblTempUsageDetail_20' ) end [2025-03-06 23:34:23] Production.ERROR: pbx prc_insertCDR start [2025-03-06 23:34:23] Production.ERROR: pbx prc_insertCDR end [2025-03-06 23:34:23] Production.INFO: ==14883== Releasing lock... [2025-03-06 23:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 23:34:23] Production.INFO: 34.75 MB #Memory Used# [2025-03-06 23:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 20:35:05 [end_date_ymd] => 2025-03-06 23:35:05 [RateCDR] => 1 ) [2025-03-06 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-03-06 20:35:05' and `end` < '2025-03-06 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-03-06 23:35:17] Production.INFO: count ==944 [2025-03-06 23:35:17] Production.ERROR: pbx CDR StartTime 2025-03-06 20:35:05 - End Time 2025-03-06 23:35:05 [2025-03-06 23:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 23:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623874', 'tblTempUsageDetail_20' ) start [2025-03-06 23:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623874', 'tblTempUsageDetail_20' ) end [2025-03-06 23:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623874', 'tblTempVendorCDR_20' ) start [2025-03-06 23:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623874', 'tblTempVendorCDR_20' ) end [2025-03-06 23:35:17] Production.INFO: ProcessCDR(1,14623874,1,1,2) [2025-03-06 23:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14623874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 23:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14623874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 23:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14623874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 23:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14623874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 23:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623874', 'tblTempUsageDetail_20' ) start [2025-03-06 23:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623874', 'tblTempUsageDetail_20' ) end [2025-03-06 23:35:20] Production.ERROR: pbx prc_insertCDR start [2025-03-06 23:35:20] Production.ERROR: pbx prc_insertCDR end [2025-03-06 23:35:20] Production.INFO: ==14955== Releasing lock... [2025-03-06 23:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 23:35:20] Production.INFO: 34.75 MB #Memory Used# [2025-03-06 23:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 20:36:05 [end_date_ymd] => 2025-03-06 23:36:05 [RateCDR] => 1 ) [2025-03-06 23: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-03-06 20:36:05' and `end` < '2025-03-06 23: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-03-06 23:36:17] Production.INFO: count ==939 [2025-03-06 23:36:17] Production.ERROR: pbx CDR StartTime 2025-03-06 20:36:05 - End Time 2025-03-06 23:36:05 [2025-03-06 23:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 23:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623879', 'tblTempUsageDetail_20' ) start [2025-03-06 23:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623879', 'tblTempUsageDetail_20' ) end [2025-03-06 23:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623879', 'tblTempVendorCDR_20' ) start [2025-03-06 23:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623879', 'tblTempVendorCDR_20' ) end [2025-03-06 23:36:17] Production.INFO: ProcessCDR(1,14623879,1,1,2) [2025-03-06 23:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14623879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 23:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14623879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 23:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14623879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 23:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14623879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 23:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623879', 'tblTempUsageDetail_20' ) start [2025-03-06 23:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623879', 'tblTempUsageDetail_20' ) end [2025-03-06 23:36:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 23:36:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 23:36:21] Production.INFO: ==15028== Releasing lock... [2025-03-06 23:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 23:36:21] Production.INFO: 34.75 MB #Memory Used# [2025-03-06 23:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 20:37:06 [end_date_ymd] => 2025-03-06 23:37:06 [RateCDR] => 1 ) [2025-03-06 23:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 20:37:06' and `end` < '2025-03-06 23:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 23:37:18] Production.INFO: count ==936 [2025-03-06 23:37:18] Production.ERROR: pbx CDR StartTime 2025-03-06 20:37:06 - End Time 2025-03-06 23:37:06 [2025-03-06 23:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 23:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623884', 'tblTempUsageDetail_20' ) start [2025-03-06 23:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623884', 'tblTempUsageDetail_20' ) end [2025-03-06 23:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623884', 'tblTempVendorCDR_20' ) start [2025-03-06 23:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623884', 'tblTempVendorCDR_20' ) end [2025-03-06 23:37:18] Production.INFO: ProcessCDR(1,14623884,1,1,2) [2025-03-06 23:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14623884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 23:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14623884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 23:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14623884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 23:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14623884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 23:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623884', 'tblTempUsageDetail_20' ) start [2025-03-06 23:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623884', 'tblTempUsageDetail_20' ) end [2025-03-06 23:37:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 23:37:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 23:37:21] Production.INFO: ==15106== Releasing lock... [2025-03-06 23:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 23:37:21] Production.INFO: 34.5 MB #Memory Used# [2025-03-06 23:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 20:38:05 [end_date_ymd] => 2025-03-06 23:38:05 [RateCDR] => 1 ) [2025-03-06 23:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 20:38:05' and `end` < '2025-03-06 23:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 23:38:17] Production.INFO: count ==935 [2025-03-06 23:38:18] Production.ERROR: pbx CDR StartTime 2025-03-06 20:38:05 - End Time 2025-03-06 23:38:05 [2025-03-06 23:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 23:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623889', 'tblTempUsageDetail_20' ) start [2025-03-06 23:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623889', 'tblTempUsageDetail_20' ) end [2025-03-06 23:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623889', 'tblTempVendorCDR_20' ) start [2025-03-06 23:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623889', 'tblTempVendorCDR_20' ) end [2025-03-06 23:38:18] Production.INFO: ProcessCDR(1,14623889,1,1,2) [2025-03-06 23:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14623889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 23:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14623889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 23:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14623889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 23:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14623889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 23:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623889', 'tblTempUsageDetail_20' ) start [2025-03-06 23:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623889', 'tblTempUsageDetail_20' ) end [2025-03-06 23:38:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 23:38:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 23:38:22] Production.INFO: ==15176== Releasing lock... [2025-03-06 23:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 23:38:22] Production.INFO: 34.5 MB #Memory Used# [2025-03-06 23:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 20:39:06 [end_date_ymd] => 2025-03-06 23:39:06 [RateCDR] => 1 ) [2025-03-06 23:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 20:39:06' and `end` < '2025-03-06 23:39:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 23:39:18] Production.INFO: count ==934 [2025-03-06 23:39:18] Production.ERROR: pbx CDR StartTime 2025-03-06 20:39:06 - End Time 2025-03-06 23:39:06 [2025-03-06 23:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 23:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623894', 'tblTempUsageDetail_20' ) start [2025-03-06 23:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623894', 'tblTempUsageDetail_20' ) end [2025-03-06 23:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623894', 'tblTempVendorCDR_20' ) start [2025-03-06 23:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623894', 'tblTempVendorCDR_20' ) end [2025-03-06 23:39:18] Production.INFO: ProcessCDR(1,14623894,1,1,2) [2025-03-06 23:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14623894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 23:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14623894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 23:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14623894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 23:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14623894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 23:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623894', 'tblTempUsageDetail_20' ) start [2025-03-06 23:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623894', 'tblTempUsageDetail_20' ) end [2025-03-06 23:39:23] Production.ERROR: pbx prc_insertCDR start [2025-03-06 23:39:23] Production.ERROR: pbx prc_insertCDR end [2025-03-06 23:39:23] Production.INFO: ==15247== Releasing lock... [2025-03-06 23:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 23:39:23] Production.INFO: 34.5 MB #Memory Used# [2025-03-06 23:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 20:40:06 [end_date_ymd] => 2025-03-06 23:40:06 [RateCDR] => 1 ) [2025-03-06 23:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 20:40:06' and `end` < '2025-03-06 23:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 23:40:18] Production.INFO: count ==934 [2025-03-06 23:40:18] Production.ERROR: pbx CDR StartTime 2025-03-06 20:40:06 - End Time 2025-03-06 23:40:06 [2025-03-06 23:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 23:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623899', 'tblTempUsageDetail_20' ) start [2025-03-06 23:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623899', 'tblTempUsageDetail_20' ) end [2025-03-06 23:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623899', 'tblTempVendorCDR_20' ) start [2025-03-06 23:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623899', 'tblTempVendorCDR_20' ) end [2025-03-06 23:40:18] Production.INFO: ProcessCDR(1,14623899,1,1,2) [2025-03-06 23:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14623899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 23:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14623899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 23:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14623899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 23:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14623899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 23:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623899', 'tblTempUsageDetail_20' ) start [2025-03-06 23:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623899', 'tblTempUsageDetail_20' ) end [2025-03-06 23:40:23] Production.ERROR: pbx prc_insertCDR start [2025-03-06 23:40:23] Production.ERROR: pbx prc_insertCDR end [2025-03-06 23:40:23] Production.INFO: ==15322== Releasing lock... [2025-03-06 23:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 23:40:23] Production.INFO: 34.5 MB #Memory Used# [2025-03-06 23:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 20:41:05 [end_date_ymd] => 2025-03-06 23:41:05 [RateCDR] => 1 ) [2025-03-06 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-03-06 20:41:05' and `end` < '2025-03-06 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-03-06 23:41:17] Production.INFO: count ==928 [2025-03-06 23:41:18] Production.ERROR: pbx CDR StartTime 2025-03-06 20:41:05 - End Time 2025-03-06 23:41:05 [2025-03-06 23:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 23:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623905', 'tblTempUsageDetail_20' ) start [2025-03-06 23:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623905', 'tblTempUsageDetail_20' ) end [2025-03-06 23:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623905', 'tblTempVendorCDR_20' ) start [2025-03-06 23:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623905', 'tblTempVendorCDR_20' ) end [2025-03-06 23:41:18] Production.INFO: ProcessCDR(1,14623905,1,1,2) [2025-03-06 23:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14623905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 23:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14623905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 23:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14623905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 23:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14623905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 23:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623905', 'tblTempUsageDetail_20' ) start [2025-03-06 23:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623905', 'tblTempUsageDetail_20' ) end [2025-03-06 23:41:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 23:41:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 23:41:21] Production.INFO: ==15399== Releasing lock... [2025-03-06 23:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 23:41:21] Production.INFO: 34.25 MB #Memory Used# [2025-03-06 23:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 20:42:06 [end_date_ymd] => 2025-03-06 23:42:06 [RateCDR] => 1 ) [2025-03-06 23: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-03-06 20:42:06' and `end` < '2025-03-06 23: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-03-06 23:42:18] Production.INFO: count ==928 [2025-03-06 23:42:18] Production.ERROR: pbx CDR StartTime 2025-03-06 20:42:06 - End Time 2025-03-06 23:42:06 [2025-03-06 23:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623910', 'tblTempUsageDetail_20' ) start [2025-03-06 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623910', 'tblTempUsageDetail_20' ) end [2025-03-06 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623910', 'tblTempVendorCDR_20' ) start [2025-03-06 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623910', 'tblTempVendorCDR_20' ) end [2025-03-06 23:42:18] Production.INFO: ProcessCDR(1,14623910,1,1,2) [2025-03-06 23:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14623910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 23:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14623910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 23:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14623910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 23:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14623910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 23:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623910', 'tblTempUsageDetail_20' ) start [2025-03-06 23:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623910', 'tblTempUsageDetail_20' ) end [2025-03-06 23:42:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 23:42:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 23:42:21] Production.INFO: ==15472== Releasing lock... [2025-03-06 23:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 23:42:21] Production.INFO: 34.25 MB #Memory Used# [2025-03-06 23:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 20:43:06 [end_date_ymd] => 2025-03-06 23:43:06 [RateCDR] => 1 ) [2025-03-06 23: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-03-06 20:43:06' and `end` < '2025-03-06 23: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-03-06 23:43:18] Production.INFO: count ==925 [2025-03-06 23:43:18] Production.ERROR: pbx CDR StartTime 2025-03-06 20:43:06 - End Time 2025-03-06 23:43:06 [2025-03-06 23:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623915', 'tblTempUsageDetail_20' ) start [2025-03-06 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623915', 'tblTempUsageDetail_20' ) end [2025-03-06 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623915', 'tblTempVendorCDR_20' ) start [2025-03-06 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623915', 'tblTempVendorCDR_20' ) end [2025-03-06 23:43:18] Production.INFO: ProcessCDR(1,14623915,1,1,2) [2025-03-06 23:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14623915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 23:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14623915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 23:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14623915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 23:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14623915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 23:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623915', 'tblTempUsageDetail_20' ) start [2025-03-06 23:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623915', 'tblTempUsageDetail_20' ) end [2025-03-06 23:43:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 23:43:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 23:43:21] Production.INFO: ==15554== Releasing lock... [2025-03-06 23:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 23:43:21] Production.INFO: 34.25 MB #Memory Used# [2025-03-06 23:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 20:44:05 [end_date_ymd] => 2025-03-06 23:44:05 [RateCDR] => 1 ) [2025-03-06 23:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 20:44:05' and `end` < '2025-03-06 23:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 23:44:17] Production.INFO: count ==923 [2025-03-06 23:44:17] Production.ERROR: pbx CDR StartTime 2025-03-06 20:44:05 - End Time 2025-03-06 23:44:05 [2025-03-06 23:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 23:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623920', 'tblTempUsageDetail_20' ) start [2025-03-06 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623920', 'tblTempUsageDetail_20' ) end [2025-03-06 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623920', 'tblTempVendorCDR_20' ) start [2025-03-06 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623920', 'tblTempVendorCDR_20' ) end [2025-03-06 23:44:18] Production.INFO: ProcessCDR(1,14623920,1,1,2) [2025-03-06 23:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14623920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 23:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14623920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 23:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14623920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 23:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14623920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 23:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623920', 'tblTempUsageDetail_20' ) start [2025-03-06 23:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623920', 'tblTempUsageDetail_20' ) end [2025-03-06 23:44:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 23:44:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 23:44:21] Production.INFO: ==15670== Releasing lock... [2025-03-06 23:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 23:44:21] Production.INFO: 34.25 MB #Memory Used# [2025-03-06 23:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 20:45:06 [end_date_ymd] => 2025-03-06 23:45:06 [RateCDR] => 1 ) [2025-03-06 23:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 20:45:06' and `end` < '2025-03-06 23:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 23:45:18] Production.INFO: count ==922 [2025-03-06 23:45:18] Production.ERROR: pbx CDR StartTime 2025-03-06 20:45:06 - End Time 2025-03-06 23:45:06 [2025-03-06 23:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623925', 'tblTempUsageDetail_20' ) start [2025-03-06 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623925', 'tblTempUsageDetail_20' ) end [2025-03-06 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623925', 'tblTempVendorCDR_20' ) start [2025-03-06 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623925', 'tblTempVendorCDR_20' ) end [2025-03-06 23:45:18] Production.INFO: ProcessCDR(1,14623925,1,1,2) [2025-03-06 23:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14623925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 23:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14623925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 23:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14623925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 23:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14623925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 23:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623925', 'tblTempUsageDetail_20' ) start [2025-03-06 23:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623925', 'tblTempUsageDetail_20' ) end [2025-03-06 23:45:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 23:45:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 23:45:21] Production.INFO: ==15746== Releasing lock... [2025-03-06 23:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 23:45:21] Production.INFO: 34.25 MB #Memory Used# [2025-03-06 23:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 20:46:06 [end_date_ymd] => 2025-03-06 23:46:06 [RateCDR] => 1 ) [2025-03-06 23: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-03-06 20:46:06' and `end` < '2025-03-06 23: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-03-06 23:46:18] Production.INFO: count ==924 [2025-03-06 23:46:18] Production.ERROR: pbx CDR StartTime 2025-03-06 20:46:06 - End Time 2025-03-06 23:46:06 [2025-03-06 23:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623930', 'tblTempUsageDetail_20' ) start [2025-03-06 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623930', 'tblTempUsageDetail_20' ) end [2025-03-06 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623930', 'tblTempVendorCDR_20' ) start [2025-03-06 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623930', 'tblTempVendorCDR_20' ) end [2025-03-06 23:46:18] Production.INFO: ProcessCDR(1,14623930,1,1,2) [2025-03-06 23:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14623930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 23:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14623930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 23:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14623930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 23:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14623930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 23:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623930', 'tblTempUsageDetail_20' ) start [2025-03-06 23:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623930', 'tblTempUsageDetail_20' ) end [2025-03-06 23:46:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 23:46:23] Production.ERROR: pbx prc_insertCDR end [2025-03-06 23:46:23] Production.INFO: ==15827== Releasing lock... [2025-03-06 23:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 23:46:23] Production.INFO: 34.25 MB #Memory Used# [2025-03-06 23:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 20:47:05 [end_date_ymd] => 2025-03-06 23:47:05 [RateCDR] => 1 ) [2025-03-06 23:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 20:47:05' and `end` < '2025-03-06 23:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 23:47:18] Production.INFO: count ==923 [2025-03-06 23:47:18] Production.ERROR: pbx CDR StartTime 2025-03-06 20:47:05 - End Time 2025-03-06 23:47:05 [2025-03-06 23:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623935', 'tblTempUsageDetail_20' ) start [2025-03-06 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623935', 'tblTempUsageDetail_20' ) end [2025-03-06 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623935', 'tblTempVendorCDR_20' ) start [2025-03-06 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623935', 'tblTempVendorCDR_20' ) end [2025-03-06 23:47:18] Production.INFO: ProcessCDR(1,14623935,1,1,2) [2025-03-06 23:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14623935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 23:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14623935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 23:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14623935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 23:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14623935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 23:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623935', 'tblTempUsageDetail_20' ) start [2025-03-06 23:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623935', 'tblTempUsageDetail_20' ) end [2025-03-06 23:47:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 23:47:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 23:47:21] Production.INFO: ==15902== Releasing lock... [2025-03-06 23:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 23:47:21] Production.INFO: 34.25 MB #Memory Used# [2025-03-06 23:48:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 20:48:04 [end_date_ymd] => 2025-03-06 23:48:04 [RateCDR] => 1 ) [2025-03-06 23: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-03-06 20:48:04' and `end` < '2025-03-06 23: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-03-06 23:48:17] Production.INFO: count ==923 [2025-03-06 23:48:17] Production.ERROR: pbx CDR StartTime 2025-03-06 20:48:04 - End Time 2025-03-06 23:48:04 [2025-03-06 23:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 23:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623940', 'tblTempUsageDetail_20' ) start [2025-03-06 23:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623940', 'tblTempUsageDetail_20' ) end [2025-03-06 23:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623940', 'tblTempVendorCDR_20' ) start [2025-03-06 23:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623940', 'tblTempVendorCDR_20' ) end [2025-03-06 23:48:17] Production.INFO: ProcessCDR(1,14623940,1,1,2) [2025-03-06 23:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14623940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 23:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14623940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 23:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14623940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 23:48:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14623940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 23:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623940', 'tblTempUsageDetail_20' ) start [2025-03-06 23:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623940', 'tblTempUsageDetail_20' ) end [2025-03-06 23:48:20] Production.ERROR: pbx prc_insertCDR start [2025-03-06 23:48:20] Production.ERROR: pbx prc_insertCDR end [2025-03-06 23:48:20] Production.INFO: ==15975== Releasing lock... [2025-03-06 23:48:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 23:48:20] Production.INFO: 34.25 MB #Memory Used# [2025-03-06 23:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 20:49:05 [end_date_ymd] => 2025-03-06 23:49:05 [RateCDR] => 1 ) [2025-03-06 23:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 20:49:05' and `end` < '2025-03-06 23:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 23:49:17] Production.INFO: count ==934 [2025-03-06 23:49:17] Production.ERROR: pbx CDR StartTime 2025-03-06 20:49:05 - End Time 2025-03-06 23:49:05 [2025-03-06 23:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 23:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623945', 'tblTempUsageDetail_20' ) start [2025-03-06 23:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623945', 'tblTempUsageDetail_20' ) end [2025-03-06 23:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623945', 'tblTempVendorCDR_20' ) start [2025-03-06 23:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623945', 'tblTempVendorCDR_20' ) end [2025-03-06 23:49:17] Production.INFO: ProcessCDR(1,14623945,1,1,2) [2025-03-06 23:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14623945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 23:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14623945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 23:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14623945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 23:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14623945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 23:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623945', 'tblTempUsageDetail_20' ) start [2025-03-06 23:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623945', 'tblTempUsageDetail_20' ) end [2025-03-06 23:49:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 23:49:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 23:49:22] Production.INFO: ==16051== Releasing lock... [2025-03-06 23:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 23:49:22] Production.INFO: 34.5 MB #Memory Used# [2025-03-06 23:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 20:50:06 [end_date_ymd] => 2025-03-06 23:50:06 [RateCDR] => 1 ) [2025-03-06 23: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-03-06 20:50:06' and `end` < '2025-03-06 23: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-03-06 23:50:18] Production.INFO: count ==936 [2025-03-06 23:50:18] Production.ERROR: pbx CDR StartTime 2025-03-06 20:50:06 - End Time 2025-03-06 23:50:06 [2025-03-06 23:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 23:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623951', 'tblTempUsageDetail_20' ) start [2025-03-06 23:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623951', 'tblTempUsageDetail_20' ) end [2025-03-06 23:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623951', 'tblTempVendorCDR_20' ) start [2025-03-06 23:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623951', 'tblTempVendorCDR_20' ) end [2025-03-06 23:50:18] Production.INFO: ProcessCDR(1,14623951,1,1,2) [2025-03-06 23:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14623951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 23:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14623951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 23:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14623951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 23:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14623951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 23:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623951', 'tblTempUsageDetail_20' ) start [2025-03-06 23:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623951', 'tblTempUsageDetail_20' ) end [2025-03-06 23:50:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 23:50:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 23:50:22] Production.INFO: ==16129== Releasing lock... [2025-03-06 23:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 23:50:22] Production.INFO: 34.5 MB #Memory Used# [2025-03-06 23:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 20:51:05 [end_date_ymd] => 2025-03-06 23:51:05 [RateCDR] => 1 ) [2025-03-06 23:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 20:51:05' and `end` < '2025-03-06 23:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 23:51:18] Production.INFO: count ==932 [2025-03-06 23:51:18] Production.ERROR: pbx CDR StartTime 2025-03-06 20:51:05 - End Time 2025-03-06 23:51:05 [2025-03-06 23:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623956', 'tblTempUsageDetail_20' ) start [2025-03-06 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623956', 'tblTempUsageDetail_20' ) end [2025-03-06 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623956', 'tblTempVendorCDR_20' ) start [2025-03-06 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623956', 'tblTempVendorCDR_20' ) end [2025-03-06 23:51:18] Production.INFO: ProcessCDR(1,14623956,1,1,2) [2025-03-06 23:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14623956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 23:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14623956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 23:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14623956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 23:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14623956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 23:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623956', 'tblTempUsageDetail_20' ) start [2025-03-06 23:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623956', 'tblTempUsageDetail_20' ) end [2025-03-06 23:51:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 23:51:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 23:51:21] Production.INFO: ==16208== Releasing lock... [2025-03-06 23:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 23:51:21] Production.INFO: 34.75 MB #Memory Used# [2025-03-06 23:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 20:52:06 [end_date_ymd] => 2025-03-06 23:52:06 [RateCDR] => 1 ) [2025-03-06 23: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-03-06 20:52:06' and `end` < '2025-03-06 23: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-03-06 23:52:18] Production.INFO: count ==932 [2025-03-06 23:52:18] Production.ERROR: pbx CDR StartTime 2025-03-06 20:52:06 - End Time 2025-03-06 23:52:06 [2025-03-06 23:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623961', 'tblTempUsageDetail_20' ) start [2025-03-06 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623961', 'tblTempUsageDetail_20' ) end [2025-03-06 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623961', 'tblTempVendorCDR_20' ) start [2025-03-06 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623961', 'tblTempVendorCDR_20' ) end [2025-03-06 23:52:18] Production.INFO: ProcessCDR(1,14623961,1,1,2) [2025-03-06 23:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14623961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 23:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14623961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 23:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14623961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 23:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14623961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 23:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623961', 'tblTempUsageDetail_20' ) start [2025-03-06 23:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623961', 'tblTempUsageDetail_20' ) end [2025-03-06 23:52:22] Production.ERROR: pbx prc_insertCDR start [2025-03-06 23:52:22] Production.ERROR: pbx prc_insertCDR end [2025-03-06 23:52:22] Production.INFO: ==16289== Releasing lock... [2025-03-06 23:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 23:52:22] Production.INFO: 34.75 MB #Memory Used# [2025-03-06 23:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 20:53:05 [end_date_ymd] => 2025-03-06 23:53:05 [RateCDR] => 1 ) [2025-03-06 23:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 20:53:05' and `end` < '2025-03-06 23:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 23:53:17] Production.INFO: count ==930 [2025-03-06 23:53:17] Production.ERROR: pbx CDR StartTime 2025-03-06 20:53:05 - End Time 2025-03-06 23:53:05 [2025-03-06 23:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 23:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623966', 'tblTempUsageDetail_20' ) start [2025-03-06 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623966', 'tblTempUsageDetail_20' ) end [2025-03-06 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623966', 'tblTempVendorCDR_20' ) start [2025-03-06 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623966', 'tblTempVendorCDR_20' ) end [2025-03-06 23:53:18] Production.INFO: ProcessCDR(1,14623966,1,1,2) [2025-03-06 23:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14623966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 23:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14623966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 23:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14623966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 23:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14623966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 23:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623966', 'tblTempUsageDetail_20' ) start [2025-03-06 23:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623966', 'tblTempUsageDetail_20' ) end [2025-03-06 23:53:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 23:53:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 23:53:21] Production.INFO: ==16363== Releasing lock... [2025-03-06 23:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 23:53:21] Production.INFO: 34.25 MB #Memory Used# [2025-03-06 23:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 20:54:06 [end_date_ymd] => 2025-03-06 23:54:06 [RateCDR] => 1 ) [2025-03-06 23: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-03-06 20:54:06' and `end` < '2025-03-06 23: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-03-06 23:54:18] Production.INFO: count ==930 [2025-03-06 23:54:18] Production.ERROR: pbx CDR StartTime 2025-03-06 20:54:06 - End Time 2025-03-06 23:54:06 [2025-03-06 23:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 23:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623971', 'tblTempUsageDetail_20' ) start [2025-03-06 23:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623971', 'tblTempUsageDetail_20' ) end [2025-03-06 23:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623971', 'tblTempVendorCDR_20' ) start [2025-03-06 23:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623971', 'tblTempVendorCDR_20' ) end [2025-03-06 23:54:18] Production.INFO: ProcessCDR(1,14623971,1,1,2) [2025-03-06 23:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14623971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 23:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14623971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 23:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14623971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 23:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14623971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 23:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623971', 'tblTempUsageDetail_20' ) start [2025-03-06 23:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623971', 'tblTempUsageDetail_20' ) end [2025-03-06 23:54:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 23:54:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 23:54:21] Production.INFO: ==16439== Releasing lock... [2025-03-06 23:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 23:54:21] Production.INFO: 34.25 MB #Memory Used# [2025-03-06 23:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 20:55:05 [end_date_ymd] => 2025-03-06 23:55:05 [RateCDR] => 1 ) [2025-03-06 23:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 20:55:05' and `end` < '2025-03-06 23:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 23:55:17] Production.INFO: count ==930 [2025-03-06 23:55:17] Production.ERROR: pbx CDR StartTime 2025-03-06 20:55:05 - End Time 2025-03-06 23:55:05 [2025-03-06 23:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 23:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623976', 'tblTempUsageDetail_20' ) start [2025-03-06 23:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623976', 'tblTempUsageDetail_20' ) end [2025-03-06 23:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623976', 'tblTempVendorCDR_20' ) start [2025-03-06 23:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623976', 'tblTempVendorCDR_20' ) end [2025-03-06 23:55:17] Production.INFO: ProcessCDR(1,14623976,1,1,2) [2025-03-06 23:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14623976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 23:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14623976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 23:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14623976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 23:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14623976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 23:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623976', 'tblTempUsageDetail_20' ) start [2025-03-06 23:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623976', 'tblTempUsageDetail_20' ) end [2025-03-06 23:55:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 23:55:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 23:55:21] Production.INFO: ==16521== Releasing lock... [2025-03-06 23:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 23:55:21] Production.INFO: 34.25 MB #Memory Used# [2025-03-06 23:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 20:56:06 [end_date_ymd] => 2025-03-06 23:56:06 [RateCDR] => 1 ) [2025-03-06 23: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-03-06 20:56:06' and `end` < '2025-03-06 23: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-03-06 23:56:18] Production.INFO: count ==926 [2025-03-06 23:56:18] Production.ERROR: pbx CDR StartTime 2025-03-06 20:56:06 - End Time 2025-03-06 23:56:06 [2025-03-06 23:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623981', 'tblTempUsageDetail_20' ) start [2025-03-06 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623981', 'tblTempUsageDetail_20' ) end [2025-03-06 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623981', 'tblTempVendorCDR_20' ) start [2025-03-06 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623981', 'tblTempVendorCDR_20' ) end [2025-03-06 23:56:18] Production.INFO: ProcessCDR(1,14623981,1,1,2) [2025-03-06 23:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14623981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 23:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14623981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 23:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14623981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 23:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14623981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 23:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623981', 'tblTempUsageDetail_20' ) start [2025-03-06 23:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623981', 'tblTempUsageDetail_20' ) end [2025-03-06 23:56:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 23:56:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 23:56:21] Production.INFO: ==16599== Releasing lock... [2025-03-06 23:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 23:56:21] Production.INFO: 34.25 MB #Memory Used# [2025-03-06 23:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 20:57:05 [end_date_ymd] => 2025-03-06 23:57:05 [RateCDR] => 1 ) [2025-03-06 23: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-03-06 20:57:05' and `end` < '2025-03-06 23: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-03-06 23:57:18] Production.INFO: count ==928 [2025-03-06 23:57:18] Production.ERROR: pbx CDR StartTime 2025-03-06 20:57:05 - End Time 2025-03-06 23:57:05 [2025-03-06 23:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623986', 'tblTempUsageDetail_20' ) start [2025-03-06 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623986', 'tblTempUsageDetail_20' ) end [2025-03-06 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623986', 'tblTempVendorCDR_20' ) start [2025-03-06 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623986', 'tblTempVendorCDR_20' ) end [2025-03-06 23:57:18] Production.INFO: ProcessCDR(1,14623986,1,1,2) [2025-03-06 23:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14623986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 23:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14623986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 23:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14623986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 23:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14623986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 23:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623986', 'tblTempUsageDetail_20' ) start [2025-03-06 23:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623986', 'tblTempUsageDetail_20' ) end [2025-03-06 23:57:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 23:57:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 23:57:21] Production.INFO: ==16677== Releasing lock... [2025-03-06 23:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 23:57:21] Production.INFO: 34.25 MB #Memory Used# [2025-03-06 23:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 20:58:05 [end_date_ymd] => 2025-03-06 23:58:05 [RateCDR] => 1 ) [2025-03-06 23:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 20:58:05' and `end` < '2025-03-06 23:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 23:58:17] Production.INFO: count ==928 [2025-03-06 23:58:17] Production.ERROR: pbx CDR StartTime 2025-03-06 20:58:05 - End Time 2025-03-06 23:58:05 [2025-03-06 23:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 23:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623991', 'tblTempUsageDetail_20' ) start [2025-03-06 23:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623991', 'tblTempUsageDetail_20' ) end [2025-03-06 23:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623991', 'tblTempVendorCDR_20' ) start [2025-03-06 23:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623991', 'tblTempVendorCDR_20' ) end [2025-03-06 23:58:17] Production.INFO: ProcessCDR(1,14623991,1,1,2) [2025-03-06 23:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14623991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 23:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14623991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 23:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14623991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 23:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14623991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 23:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623991', 'tblTempUsageDetail_20' ) start [2025-03-06 23:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623991', 'tblTempUsageDetail_20' ) end [2025-03-06 23:58:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 23:58:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 23:58:21] Production.INFO: ==16755== Releasing lock... [2025-03-06 23:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 23:58:21] Production.INFO: 34.25 MB #Memory Used# [2025-03-06 23:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-06 20:59:05 [end_date_ymd] => 2025-03-06 23:59:05 [RateCDR] => 1 ) [2025-03-06 23:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-06 20:59:05' and `end` < '2025-03-06 23:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-06 23:59:17] Production.INFO: count ==928 [2025-03-06 23:59:18] Production.ERROR: pbx CDR StartTime 2025-03-06 20:59:05 - End Time 2025-03-06 23:59:05 [2025-03-06 23:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-06 23:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623996', 'tblTempUsageDetail_20' ) start [2025-03-06 23:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14623996', 'tblTempUsageDetail_20' ) end [2025-03-06 23:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623996', 'tblTempVendorCDR_20' ) start [2025-03-06 23:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14623996', 'tblTempVendorCDR_20' ) end [2025-03-06 23:59:18] Production.INFO: ProcessCDR(1,14623996,1,1,2) [2025-03-06 23:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14623996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 23:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14623996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-06 23:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14623996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 23:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14623996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-06 23:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623996', 'tblTempUsageDetail_20' ) start [2025-03-06 23:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14623996', 'tblTempUsageDetail_20' ) end [2025-03-06 23:59:21] Production.ERROR: pbx prc_insertCDR start [2025-03-06 23:59:21] Production.ERROR: pbx prc_insertCDR end [2025-03-06 23:59:21] Production.INFO: ==16869== Releasing lock... [2025-03-06 23:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-06 23:59:21] Production.INFO: 34.25 MB #Memory Used#